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:
+7
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user