Version 0.7.1-beta

- user reporting capabilities
- ignore Battle.net contacts
- screenshots

- graphical move arrows
This commit is contained in:
2020-06-07 14:29:49 +02:00
parent cb2c995a82
commit 8e179692ee
18 changed files with 98 additions and 18 deletions

View File

@@ -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