Skip to content

Commit 94debf6

Browse files
authored
Bump Interface-Classic version and enhance clear command functionality (#79)
* bump Interface-Classic version to 11506 for compatibility updates * feat: enhance clear command to support multiple options for action, macro, and binding
1 parent 951dfc5 commit 94debf6

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

Myslot.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Interface: 110007
2-
## Interface-Classic: 11505
2+
## Interface-Classic: 11506
33
## Interface-Cata: 40401
44
## Interface-Wrath: 30403
55
## X-Curse-Project-ID: 48863

gui.lua

+28-1
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,34 @@ SlashCmdList["MYSLOT"] = function(msg, editbox)
873873
end
874874

875875
elseif cmd == "clear" then
876-
Settings.OpenToCategory(MySlot.settingcategory.ID)
876+
opt = {
877+
[1] = true,
878+
[2] = true,
879+
[3] = true,
880+
[4] = true,
881+
[5] = true,
882+
[6] = true,
883+
[7] = true,
884+
[8] = true,
885+
[9] = true,
886+
[10] = true,
887+
[11] = true,
888+
[12] = true,
889+
[13] = true,
890+
[14] = true,
891+
[15] = true,
892+
["ACCOUNT"] = true,
893+
["CHARACTOR"] = true,
894+
}
895+
if what == "action" then
896+
MySlot:Clear("ACTION", opt)
897+
elseif what == "macro" then
898+
MySlot:Clear("MACRO", opt)
899+
elseif what == "binding" then
900+
MySlot:Clear("BINDING", opt)
901+
else
902+
Settings.OpenToCategory(MySlot.settingcategory.ID)
903+
end
877904
elseif cmd == "trim" then
878905
if not MyslotExports then
879906
MyslotExports = {}

0 commit comments

Comments
 (0)