misc chatmenu position

This commit is contained in:
Crum
2017-12-20 01:21:22 -06:00
parent 21775bf505
commit 2283e209f6
@@ -32,6 +32,7 @@ local function LoadSkin()
E:SetTemplate(_G[skins[i]], "Transparent") E:SetTemplate(_G[skins[i]], "Transparent")
end end
-- ChatMenus
local ChatMenus = { local ChatMenus = {
"ChatMenu", "ChatMenu",
"EmoteMenu", "EmoteMenu",
@@ -45,7 +46,7 @@ local function LoadSkin()
E:SetTemplate(this, "Transparent", true) E:SetTemplate(this, "Transparent", true)
this:SetBackdropColor(unpack(E["media"].backdropfadecolor)) this:SetBackdropColor(unpack(E["media"].backdropfadecolor))
this:ClearAllPoints() this:ClearAllPoints()
this:SetPoint("BOTTOMLEFT", ChatFrame1, "TOPLEFT", 0, 30) this:SetPoint("BOTTOMLEFT", ChatFrame1, "TOPLEFT", 0, 35)
end) end)
else else
HookScript(_G[ChatMenus[i]], "OnShow", function() HookScript(_G[ChatMenus[i]], "OnShow", function()
@@ -55,15 +56,6 @@ local function LoadSkin()
end end
end end
for i = 1, OptionsFrame:GetNumRegions() do
local region = select(i, OptionsFrame:GetRegions())
if region:GetObjectType() == "Texture" then
if i == 3 then
E:Kill(region) -- Kill the nVidia logo
end
end
end
local function StyleButton(f) local function StyleButton(f)
local width, height = (f:GetWidth() * .54), f:GetHeight() local width, height = (f:GetWidth() * .54), f:GetHeight()
@@ -89,6 +81,15 @@ local function LoadSkin()
StyleButton(_G["VoiceMacroMenuButton"..i]) StyleButton(_G["VoiceMacroMenuButton"..i])
end end
for i = 1, OptionsFrame:GetNumRegions() do
local region = select(i, OptionsFrame:GetRegions())
if region:GetObjectType() == "Texture" then
if i == 3 then
E:Kill(region) -- Kill the nVidia logo
end
end
end
-- Static Popups -- Static Popups
for i = 1, STATICPOPUP_NUMDIALOGS do for i = 1, STATICPOPUP_NUMDIALOGS do
local staticPopup = _G["StaticPopup"..i] local staticPopup = _G["StaticPopup"..i]