Skip to content

Commit

Permalink
Core: Registered a new keybind to toggle the debug UI
Browse files Browse the repository at this point in the history
I can't seem to figure out why setting the header doesn't work if using the default ADDONS category, so I guess there will just be one more category for people to scroll past... Oh, well.
  • Loading branch information
rdw-software committed Sep 26, 2023
1 parent 59e109d commit d33d179
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 d33d179

Please sign in to comment.