Skip to content

Commit

Permalink
Merge pull request #657 from WowRarity/debug-log-keybind
Browse files Browse the repository at this point in the history
Register a new keybind to toggle the debug UI
  • Loading branch information
rdw-software authored Sep 26, 2023
2 parents 59e109d + d33d179 commit 2d0d738
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Bindings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Bindings>
<Binding name="RARITY_DEBUGWINDOWTOGGLE" category="Rarity">
Rarity.ScrollingDebugMessageFrame:Toggle()
</Binding>
</Bindings>
4 changes: 4 additions & 0 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ do
self:RegisterChatCommand("rarity", "OnChatCommand")
self:RegisterChatCommand("rare", "OnChatCommand")

-- Register keybind(s): These must match the info from Bindings.xml (and use localized descriptions)
_G.BINDING_HEADER_Rarity = "Rarity"
_G.BINDING_NAME_RARITY_DEBUGWINDOWTOGGLE = L["Toggle Debug Window"]

Rarity.GUI:RegisterDataBroker()

-- Expose private objects
Expand Down
1 change: 1 addition & 0 deletions Locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local L
L = LibStub("AceLocale-3.0"):NewLocale("Rarity", "enUS", true)

-- L["AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"] = true
L["Toggle Debug Window"] = true
L["Darkmoon Rabbit"] = true
L["Disgusting Vat"] = true
L["Fished from Disgusting Vat located within the Zskera Vaults"] = true
Expand Down

0 comments on commit 2d0d738

Please sign in to comment.