Skip to content

Commit

Permalink
Support TWW
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Jun 11, 2024
1 parent 4bf0e6b commit 23f7863
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Myslot.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100207
## Interface: 100207, 110000
## Interface-Classic: 11502
## Interface-Cata: 40400
## Interface-Wrath: 30403
Expand Down
4 changes: 1 addition & 3 deletions gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,7 @@ SlashCmdList["MYSLOT"] = function(msg, editbox)
end

elseif cmd == "clear" then
-- MySlot:Clear(what)
InterfaceOptionsFrame_OpenToCategory(L["Myslot"])
InterfaceOptionsFrame_OpenToCategory(L["Myslot"])
Settings.OpenToCategory(MySlot.settingcategory.ID)
elseif cmd == "trim" then
if not MyslotExports then
MyslotExports = {}
Expand Down
5 changes: 4 additions & 1 deletion options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ local RegEvent = MySlot.regevent

local f = CreateFrame("Frame", nil, UIParent)
f.name = L["Myslot"]
InterfaceOptions_AddCategory(f)

local category = Settings.RegisterCanvasLayoutCategory(f, L["Myslot"])
MySlot.settingcategory = category
Settings.RegisterAddOnCategory(category)

RegEvent("ADDON_LOADED", function()
do
Expand Down

0 comments on commit 23f7863

Please sign in to comment.