-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_options.lua
More file actions
24 lines (19 loc) · 878 Bytes
/
debug_options.lua
File metadata and controls
24 lines (19 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- Temporary debug file to diagnose Options GUI issue
-- Run in-game with: /run LoadAddOn("SimpleUnitFrames"); dofile("d:\\Games\\World of Warcraft\\_retail_\\Interface\\_Working\\SimpleUnitFrames\\debug_options.lua")
local SUF = LibStub("AceAddon-3.0"):GetAddon("SimpleUnitFrames")
print("=== Debugging SUF Options ===")
print("optionsFrame exists:", SUF.optionsFrame ~= nil)
if SUF.optionsFrame then
print("Destroying cached frame...")
SUF.optionsFrame:Hide()
SUF.optionsFrame = nil
end
print("Opening fresh options...")
SUF:ShowOptions()
print("=== After ShowOptions ===")
print("optionsFrame exists:", SUF.optionsFrame ~= nil)
if SUF.optionsFrame then
print("BuildTab function exists:", type(SUF.optionsFrame.BuildTab))
print("currentTab:", SUF.optionsFrame.currentTab)
print("RebuildSidebar exists:", type(SUF.optionsFrame.RebuildSidebar))
end