Add /omen show and /omen hide slash commands.
This commit is contained in:
@@ -201,6 +201,7 @@ L["Toggle Omen"] = true
|
||||
L["Center Omen"] = true
|
||||
L["Configure"] = true
|
||||
L["Open the configuration dialog"] = true
|
||||
L["Show Omen"] = true
|
||||
|
||||
-- Config strings, warning settings section
|
||||
L["Warning Settings"] = true
|
||||
|
||||
@@ -706,7 +706,7 @@ end
|
||||
|
||||
-- For public use
|
||||
function Omen:Toggle(setting)
|
||||
-- Don't set the manualToggle flag is "Hide Omen on 0 bars" option is active
|
||||
-- Don't set the manualToggle flag if "Hide Omen on 0 bars" option is active
|
||||
if not (db.Autocollapse and db.CollapseHide) then
|
||||
manualToggle = true
|
||||
end
|
||||
@@ -1911,6 +1911,18 @@ Omen.OptionsSlash = {
|
||||
func = function() Omen:ShowConfig() end,
|
||||
guiHidden = true,
|
||||
},
|
||||
show = {
|
||||
type = "execute",
|
||||
name = L["Show Omen"],
|
||||
desc = L["Show Omen"].." ( /omen show )",
|
||||
func = function() Omen:Toggle(true) end,
|
||||
},
|
||||
hide = {
|
||||
type = "execute",
|
||||
name = L["Hide Omen"],
|
||||
desc = L["Hide Omen"].." ( /omen hide )",
|
||||
func = function() Omen:Toggle(false) end,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user