add a list of available panel fields

this list will be used later for combo-box
dropdown menu in the options menu.
This commit is contained in:
Eric Mauser
2016-05-21 13:10:49 +02:00
parent dba2b7cb2d
commit ce29efaf7d
+5 -1
View File
@@ -11,7 +11,11 @@ pfUI:RegisterModule("panel", function ()
pfUI.panel:RegisterEvent("PLAYER_DEAD")
pfUI.panel:RegisterEvent("MINIMAP_ZONE_CHANGED")
pfUI.panel:SetScript("OnEvent", function()
-- list of available panel fields
pfUI.panel.options = { "time", "fps", "exp", "gold", "friends",
"guild", "durability", "zone" }
pfUI.panel:SetScript("OnEvent", function()
if event == "PLAYER_ENTERING_WORLD" then
pfUI.panel:UpdateGold()
pfUI.panel:UpdateRepair();