mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 05:20:49 +00:00
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:
+5
-1
@@ -11,7 +11,11 @@ pfUI:RegisterModule("panel", function ()
|
|||||||
pfUI.panel:RegisterEvent("PLAYER_DEAD")
|
pfUI.panel:RegisterEvent("PLAYER_DEAD")
|
||||||
pfUI.panel:RegisterEvent("MINIMAP_ZONE_CHANGED")
|
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
|
if event == "PLAYER_ENTERING_WORLD" then
|
||||||
pfUI.panel:UpdateGold()
|
pfUI.panel:UpdateGold()
|
||||||
pfUI.panel:UpdateRepair();
|
pfUI.panel:UpdateRepair();
|
||||||
|
|||||||
Reference in New Issue
Block a user