Skip to content

Commit

Permalink
Added warning at load
Browse files Browse the repository at this point in the history
  • Loading branch information
N0ich committed Mar 5, 2024
1 parent fd3b08c commit cd7a68c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DialogKey.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion DialogKey_Classic.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion DialogKey_Wrath.toc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 --
Expand Down

0 comments on commit cd7a68c

Please sign in to comment.