Skip to content

Commit 23f7863

Browse files
committed
Support TWW
1 parent 4bf0e6b commit 23f7863

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Myslot.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Interface: 100207
1+
## Interface: 100207, 110000
22
## Interface-Classic: 11502
33
## Interface-Cata: 40400
44
## Interface-Wrath: 30403

gui.lua

+1-3
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,7 @@ SlashCmdList["MYSLOT"] = function(msg, editbox)
528528
end
529529

530530
elseif cmd == "clear" then
531-
-- MySlot:Clear(what)
532-
InterfaceOptionsFrame_OpenToCategory(L["Myslot"])
533-
InterfaceOptionsFrame_OpenToCategory(L["Myslot"])
531+
Settings.OpenToCategory(MySlot.settingcategory.ID)
534532
elseif cmd == "trim" then
535533
if not MyslotExports then
536534
MyslotExports = {}

options.lua

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ local RegEvent = MySlot.regevent
55

66
local f = CreateFrame("Frame", nil, UIParent)
77
f.name = L["Myslot"]
8-
InterfaceOptions_AddCategory(f)
8+
9+
local category = Settings.RegisterCanvasLayoutCategory(f, L["Myslot"])
10+
MySlot.settingcategory = category
11+
Settings.RegisterAddOnCategory(category)
912

1013
RegEvent("ADDON_LOADED", function()
1114
do

0 commit comments

Comments
 (0)