diff --git a/DialogKey.toc b/DialogKey.toc index 352d0ab..f14dca2 100644 --- a/DialogKey.toc +++ b/DialogKey.toc @@ -2,7 +2,7 @@ ## Title: DialogKey DF ## Notes: Lets you hit a key to confirm loot/purchase dialogs, accept/complete quests, select quest rewards, etc. Hit 2 to select a reward then spacebar to complete quests? Easy! ## Author: N01ch & FuriousProgrammer -## Version: 1.5.7 +## Version: 1.6.3 ## SavedVariables: DialogKeyDFDB ## OptionalDeps: Immersion embeds.xml diff --git a/DialogKey_Classic.toc b/DialogKey_Classic.toc index c0803cb..f081e12 100644 --- a/DialogKey_Classic.toc +++ b/DialogKey_Classic.toc @@ -2,7 +2,7 @@ ## Title: DialogKey DF ## Notes: Lets you hit a key to confirm loot/purchase dialogs, accept/complete quests, select quest rewards, etc. Hit 2 to select a reward then spacebar to complete quests? Easy! ## Author: N01ch & FuriousProgrammer -## Version: 1.5.7 +## Version: 1.6.3 ## SavedVariables: DialogKeyDFDB ## OptionalDeps: Immersion embeds.xml diff --git a/DialogKey_Wrath.toc b/DialogKey_Wrath.toc index 4a11e7a..64bbf9d 100644 --- a/DialogKey_Wrath.toc +++ b/DialogKey_Wrath.toc @@ -2,7 +2,7 @@ ## Title: DialogKey DF ## Notes: Lets you hit a key to confirm loot/purchase dialogs, accept/complete quests, select quest rewards, etc. Hit 2 to select a reward then spacebar to complete quests? Easy! ## Author: N01ch & FuriousProgrammer -## Version: 1.5.7 +## Version: 1.6.3 ## SavedVariables: DialogKeyDFDB ## OptionalDeps: Immersion embeds.xml diff --git a/main.lua b/main.lua index dd395a8..2f1163f 100644 --- a/main.lua +++ b/main.lua @@ -65,8 +65,14 @@ function DialogKey:OnInitialize() self.frame:RegisterEvent("QUEST_GREETING") self.frame:RegisterEvent("QUEST_COMPLETE") self.frame:RegisterEvent("PLAYER_REGEN_DISABLED") + self.frame:RegisterEvent("ADDON_LOADED") + local printed = false self.frame:SetScript("OnEvent", function(__, event, ...) - if event == "QUEST_COMPLETE" then + if event == "ADDON_LOADED" and printed == false then + printed = true + self:print("DialogKey default binding has been changed to G") + self:print("If you wish to keep using SPACE, go to Options > Addons > DialogKey") + elseif event == "QUEST_COMPLETE" then DialogKey.itemChoice = (GetNumQuestChoices() > 1 and -1 or 1) elseif event == "PLAYER_REGEN_DISABLED" then -- Disable DialogKey fully upon entering combat @@ -98,6 +104,7 @@ function DialogKey:OnInitialize() -- Slash command to open the options menu _G.SLASH_DIALOGKEY1 = '/dialogkey' SlashCmdList['DIALOGKEY'] = function() Settings.OpenToCategory("DialogKey") end + end -- Internal/Private Functions --