Skip to content

Commit 20274c1

Browse files
committed
refactor(GM): Update FunctionInit for GM generics
1 parent 545ca3f commit 20274c1

9 files changed

Lines changed: 2194 additions & 646 deletions

File tree

AzerothCoreAdmin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,7 @@ function MangAdmin:InitCheckButtons()
25882588
else
25892589
ma_checktransparencybutton:SetChecked(false)
25902590
end
2591-
ma_instantkillbutton:SetChecked(self.db.char.instantKillMode)
2591+
GM_instantKillModeCheckBox:SetChecked(self.db.char.instantKillMode)
25922592
ma_checklocalsearchstringsbutton:SetChecked(self.db.account.localesearchstring)
25932593
ma_showminimenubutton:SetChecked(self.db.account.style.showminimenu)
25942594
ma_showtooltipsbutton:SetChecked(self.db.account.style.showtooltips)

Commands/Commands_Generics.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
--
1616
-------------------------------------------------------------------------------------------------------------
1717

18-
function clearParametersBox(caller)
18+
function genericClearParametersBox(caller)
1919
if (caller == "GM") then
2020
ma_gmParametersInput:SetText("")
2121
end
2222
end
2323

24-
function ShowBag(caller)
24+
function genericBagCommand(caller)
2525
local player = UnitName("player") or UnitName("target")
2626
local param = nil
2727
if (caller == "GM") then
2828
param = ma_gmParametersInput:GetText()
2929
end
3030
MangAdmin:ChatMsg(".character check bag " .. param)
31-
MangAdmin:LogAction(Locale["ma_gmBagOutput"] .. player .. " " .. param)
31+
MangAdmin:LogAction(Locale["log_bag"] .. player .. " " .. param)
3232
end
3333

3434
function genericCaller(dictionaryID, callID, value)

0 commit comments

Comments
 (0)