mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
cleanup
This commit is contained in:
@@ -38,11 +38,11 @@ E.PopupDialogs["ELVUI_UPDATE_AVAILABLE"] = {
|
||||
button1 = OKAY,
|
||||
OnAccept = E.noop,
|
||||
EditBoxOnEnterPressed = function()
|
||||
ChatEdit_FocusActiveWindow()
|
||||
-- ChatEdit_FocusActiveWindow()
|
||||
this:GetParent():Hide()
|
||||
end,
|
||||
EditBoxOnEscapePressed = function()
|
||||
ChatEdit_FocusActiveWindow()
|
||||
-- ChatEdit_FocusActiveWindow()
|
||||
this:GetParent():Hide()
|
||||
end,
|
||||
EditBoxOnTextChanged = function()
|
||||
@@ -51,7 +51,7 @@ E.PopupDialogs["ELVUI_UPDATE_AVAILABLE"] = {
|
||||
end
|
||||
this:HighlightText()
|
||||
this:ClearFocus()
|
||||
ChatEdit_FocusActiveWindow()
|
||||
-- ChatEdit_FocusActiveWindow()
|
||||
end,
|
||||
OnEditFocusGained = function()
|
||||
this:HighlightText()
|
||||
@@ -62,6 +62,7 @@ E.PopupDialogs["ELVUI_UPDATE_AVAILABLE"] = {
|
||||
E.PopupDialogs["CLIQUE_ADVERT"] = {
|
||||
text = L["Using the healer layout it is highly recommended you download the addon Clique if you wish to have the click-to-heal function."],
|
||||
button1 = YES,
|
||||
button2 = "", -- Temporary until further fix
|
||||
OnAccept = E.noop,
|
||||
showAlert = 1
|
||||
}
|
||||
@@ -809,7 +810,7 @@ function E:StaticPopup_Show(which, text_arg1, text_arg2, data)
|
||||
local button2 = _G[name.."Button2"]
|
||||
|
||||
do
|
||||
-- assert(getn(tempButtonLocs == 0))
|
||||
-- assert(getn(tempButtonLocs == 0))
|
||||
|
||||
tinsert(tempButtonLocs, button1)
|
||||
tinsert(tempButtonLocs, button2)
|
||||
|
||||
@@ -25,13 +25,13 @@ local ERR_NOT_IN_COMBAT = ERR_NOT_IN_COMBAT
|
||||
local MAX_TALENT_TABS = MAX_TALENT_TABS
|
||||
local RAID_CLASS_COLORS = RAID_CLASS_COLORS
|
||||
|
||||
E.myclass = UnitClass("player") -- Constants
|
||||
E.myrace = UnitRace("player")
|
||||
E.myfaction = UnitFactionGroup("player")
|
||||
_, E.myclass = UnitClass("player") -- Constants
|
||||
_, E.myrace = UnitRace("player")
|
||||
_, E.myfaction = UnitFactionGroup("player")
|
||||
E.myname = UnitName("player")
|
||||
E.version = GetAddOnMetadata("ElvUI", "Version")
|
||||
E.myrealm = GetRealmName()
|
||||
E.wowbuild = GetBuildInfo() E.wowbuild = tonumber(E.wowbuild)
|
||||
_, E.wowbuild = GetBuildInfo() E.wowbuild = tonumber(E.wowbuild)
|
||||
E.resolution = GetCVar("gxResolution")
|
||||
E.screenheight = tonumber(match(E.resolution, "%d+x(%d+)"));
|
||||
E.screenwidth = tonumber(match(E.resolution, "(%d+)x+%d"));
|
||||
|
||||
Reference in New Issue
Block a user