mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-02 19:50:02 +00:00
gm: add gm mode module
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user