Allow for theme to be toggleable in-game

Refactored UI code to run after variables are loaded so that this information can be retrieved before the UI is constructed
This commit is contained in:
OldManAlpha
2025-06-25 20:37:21 -07:00
parent f412bad657
commit 1ea4a114fa
8 changed files with 1048 additions and 1015 deletions
+7 -1
View File
@@ -107,8 +107,14 @@ do
end
end
local using_blizzard_theme = false
function M.set_global_theme(theme)
using_blizzard_theme = theme == 'blizzard'
end
function M.is_blizzard()
return aux.USE_BLIZZARD_THEME
return using_blizzard_theme
end
function M.set_size(frame, width, height)