-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy patheditbox.lua
30 lines (24 loc) · 903 Bytes
/
editbox.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--[[ EditBox Module ]]--
local _, BCM = ...
BCM.modules[#BCM.modules+1] = function()
if bcmDB.BCM_EditBox then return end
--Classic mode hides the editbox when not in use, IM mode fades it out
--since we move the editbox above the chat tabs, we don't want it always showing
SetCVar("chatStyle", "classic")
BCM.chatFuncsPerFrame[#BCM.chatFuncsPerFrame+1] = function(cF, n)
local eb_text = n.."EditBox"
local eb = _G[eb_text]
if not bcmDB.editBoxOnBottom then
eb:ClearAllPoints()
eb:SetPoint("BOTTOMLEFT", cF, "TOPLEFT", -5, -2.0000002384186)
eb:SetPoint("BOTTOMRIGHT", cF, "TOPRIGHT", 5, -2.0000002384186)
end
eb:Hide() --call this incase we're just changing to classic mode for the first time
if bcmDB.noEditBoxBG then
_G[eb_text.."Left"]:Hide()
_G[eb_text.."Mid"]:Hide()
_G[eb_text.."Right"]:Hide()
end
eb:SetScale(bcmDB.editBoxScale or 1)
end
end