Skip to content

Commit

Permalink
Fixes for Dragonflight
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Sep 11, 2022
1 parent 34a04c4 commit d84e718
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
14 changes: 7 additions & 7 deletions BasicConfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ BCM.modules[#BCM.modules+1] = function()
local cF = _G[format("%s%d", "ChatFrame", i)]
local cFE = _G[format("%s%d%s", "ChatFrame", i, "EditBox")]
local _, size = cF:GetFont()
cF:SetFont(v.value, bcmDB.fontsize or size, bcmDB.fontflag)
cFE:SetFont(v.value, bcmDB.fontsize or size, bcmDB.fontflag)
cF:SetFont(v.value, bcmDB.fontsize or size, bcmDB.fontflag or "")
cFE:SetFont(v.value, bcmDB.fontsize or size, bcmDB.fontflag or "")
end
end
local lsm = LibStub and LibStub("LibSharedMedia-3.0", true)
Expand Down Expand Up @@ -502,8 +502,8 @@ BCM.modules[#BCM.modules+1] = function()
local cF = _G[format("%s%d", "ChatFrame", i)]
local cFE = _G[format("%s%d%s", "ChatFrame", i, "EditBox")]
local fName = cF:GetFont()
cF:SetFont(bcmDB.fontname or fName, v, bcmDB.fontflag)
cFE:SetFont(bcmDB.fontname or fName, v, bcmDB.fontflag)
cF:SetFont(bcmDB.fontname or fName, v, bcmDB.fontflag or "")
cFE:SetFont(bcmDB.fontname or fName, v, bcmDB.fontflag or "")
end
end)
BCM_FontSizeHigh:SetText(20)
Expand All @@ -518,7 +518,7 @@ BCM.modules[#BCM.modules+1] = function()
fontFlag.initialize = function()
local selected, info = BCM_FontFlagText:GetText(), wipe(BCM.info)
info.func = function(v) BCM_FontFlagText:SetText(v:GetText())
if v.value == NONE then
if v.value == NONE then
bcmDB.fontflag = nil
else
bcmDB.fontflag = v.value
Expand All @@ -527,8 +527,8 @@ BCM.modules[#BCM.modules+1] = function()
local cF = _G[format("%s%d", "ChatFrame", i)]
local cFE = _G[format("%s%d%s", "ChatFrame", i, "EditBox")]
local fName, size = cF:GetFont()
cF:SetFont(bcmDB.fontname or fName, bcmDB.fontsize or size, bcmDB.fontflag)
cFE:SetFont(bcmDB.fontname or fName, bcmDB.fontsize or size, bcmDB.fontflag)
cF:SetFont(bcmDB.fontname or fName, bcmDB.fontsize or size, bcmDB.fontflag or "")
cFE:SetFont(bcmDB.fontname or fName, bcmDB.fontsize or size, bcmDB.fontflag or "")
end
end
local tbl = {NONE, "OUTLINE", "THICKOUTLINE", "MONOCHROME"}
Expand Down
4 changes: 2 additions & 2 deletions font.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ BCM.modules[#BCM.modules+1] = function()
if bcmDB.fontsize and (tostring(size)):find(bcmDB.fontsize..".", nil, true) then bcmDB.fontsize = nil end
end

cF:SetFont(bcmDB.fontname or name, bcmDB.fontsize or size, bcmDB.fontflag)
cFE:SetFont(bcmDB.fontname or name, bcmDB.fontsize or size, bcmDB.fontflag)
cF:SetFont(bcmDB.fontname or name, bcmDB.fontsize or size, bcmDB.fontflag or "")
cFE:SetFont(bcmDB.fontname or name, bcmDB.fontsize or size, bcmDB.fontflag or "")
end
end

8 changes: 6 additions & 2 deletions resize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ BCM.modules[#BCM.modules+1] = function()

BCM.chatFuncsPerFrame[#BCM.chatFuncsPerFrame+1] = function(cF)
--Allow resizing chatframes to whatever size you wish!
cF:SetMinResize(100,10)
cF:SetMaxResize(0,0)
if cF.SetResizeBounds then -- XXX Dragonflight compat
cF:SetResizeBounds(100, 10, 0, 0)
else
cF:SetMinResize(100,10)
cF:SetMaxResize(0,0)
end
end
end

0 comments on commit d84e718

Please sign in to comment.