Version 0.7.1-beta
- user reporting capabilities - ignore Battle.net contacts - screenshots - graphical move arrows
This commit is contained in:
@@ -56,16 +56,22 @@ end
|
||||
|
||||
--- Register slash commands 'gri' and 'grichelde'
|
||||
function Grichelde:SetupSlashCommands()
|
||||
local function HandleSlashCommand(input)
|
||||
-- Show the GUI if no input is supplied, otherwise handle the chat input.
|
||||
if self.functions.nilOrEmpty(input) then
|
||||
LibStub("AceConfigDialog-3.0"):Open(self.name)
|
||||
else
|
||||
-- handle slash ourselves
|
||||
self:Print("Handle slash command: " .. input)
|
||||
self:RegisterChatCommand("grichelde", "HandleSlashCommand")
|
||||
self:RegisterChatCommand("gri", "HandleSlashCommand")
|
||||
end
|
||||
|
||||
function Grichelde:HandleSlashCommand(input)
|
||||
-- Show the GUI if no input is supplied, otherwise handle the chat input.
|
||||
if self.functions.nilOrEmpty(input) then
|
||||
LibStub("AceConfigDialog-3.0"):Open(self.name)
|
||||
else
|
||||
-- handle slash ourselves
|
||||
self:DebugPrint("Handle slash command: " .. input)
|
||||
if input == "mappings" then
|
||||
self:ShowMappings()
|
||||
end
|
||||
if input == "options" then
|
||||
self:PrintOptions()
|
||||
end
|
||||
end
|
||||
|
||||
self:RegisterChatCommand("grichelde", HandleSlashCommand)
|
||||
self:RegisterChatCommand("gri", HandleSlashCommand)
|
||||
end
|
||||
Reference in New Issue
Block a user