gm: add gm mode module

This commit is contained in:
shagu
2017-07-24 14:14:44 +02:00
parent 11e938ac5e
commit e91bec058f
4 changed files with 128 additions and 0 deletions
+15
View File
@@ -664,6 +664,10 @@ pfUI:RegisterModule("gui", function ()
"tukui:TukUI"
}
local dropdown_gmserver_text = {
"elysium:" .. T["Elysium Based Core"],
}
local dropdown_num_actionbar_buttons = BarLayoutOptions(NUM_ACTIONBAR_BUTTONS)
local dropdown_num_shapeshift_slots = BarLayoutOptions(NUM_SHAPESHIFT_SLOTS)
local dropdown_num_pet_action_slots = BarLayoutOptions(NUM_PET_ACTION_SLOTS)
@@ -843,6 +847,17 @@ pfUI:RegisterModule("gui", function ()
end
end)
-- >> GM-Mode
pfUI.gui.tabs.settings.tabs.gm = pfUI.gui.tabs.settings.tabs:CreateChildFrame(T["GM-Mode"], 70)
pfUI.gui.tabs.settings.tabs.gm:SetScript("OnShow", function()
if not this.setup then
CreateConfig(this, T["Disable GM-Mode"], C.gm, "disable", "checkbox")
CreateConfig(this, T["Selected Core"], C.gm, "server", "dropdown", dropdown_gmserver_text)
this.setup = true
end
end)
-- [[ UnitFrames ]]
pfUI.gui.tabs.uf = pfUI.gui.tabs:CreateChildFrame(T["Unit Frames"], nil, nil, nil, true)