mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
gui: add function to handle global variables
This commit is contained in:
@@ -59,6 +59,22 @@ pfUI:RegisterModule("gui", function ()
|
||||
end
|
||||
end
|
||||
|
||||
if category == "GVAR" then
|
||||
category = {}
|
||||
category[config] = tostring(_G[config] or 0)
|
||||
|
||||
ufunc = function()
|
||||
_G[config] = this:GetChecked() and 1 or nil
|
||||
UIOptionsFrame_Save()
|
||||
|
||||
-- refresh elements
|
||||
MultiActionBar_Update()
|
||||
MultiActionBar_UpdateGridVisibility();
|
||||
UIParent_ManageFramePositions();
|
||||
UpdateMicroButtons()
|
||||
end
|
||||
end
|
||||
|
||||
frame.category = category
|
||||
frame.config = config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user