Skip to content

Commit 536cf04

Browse files
committed
Added button group for housing decor
1 parent d76a754 commit 536cf04

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Core/Constants.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ addon.OPT_MORE_BUTTONS_VALUES = {
5757
CATALYST = L.Catalyst_Items, -- items that can be converted to tier through catalyst
5858
SPECIAL = L.Special_Effects_Items,
5959
RARE = L.Rare_Items,
60+
61+
DECOR = _G.HOUSING_ITEM_TOAST_TYPE_DECOR,
6062
}
6163

6264
--- Inventory types that can be converted to tier
@@ -198,6 +200,11 @@ addon.RESPONSE_CODE_GENERATORS = {
198200
function(_, db, _, itemEquipLoc)
199201
return db.enabledButtons.CATALYST and addon.CATALYST_ITEMS[itemEquipLoc] and "CATALYST" or nil
200202
end,
203+
204+
-- Housing Decor
205+
function(_, db, _, _, classID)
206+
return db.enabledButtons.DECOR and classID == Enum.ItemClass.Housing and "DECOR" or nil
207+
end
201208
}
202209

203210
--- @alias VersionCodes

__tests/wow_api/API/Enums.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Enum = {
5252
Glyph = 16,
5353
Battlepet = 17,
5454
WoWToken = 18,
55+
Profession = 19,
56+
Housing = 20,
5557
},
5658
ItemArmorSubclass = {
5759
Generic = 0,
@@ -99,6 +101,15 @@ Enum = {
99101
NumValues = 9,
100102
},
101103

104+
ItemHousingSubclass = {
105+
Decor = 0,
106+
Dye = 1,
107+
Room = 2,
108+
RoomCustomization = 3,
109+
ExteriorCustomization = 4,
110+
ServiceItem = 5,
111+
},
112+
102113
SeasonID = {
103114
NoSeason = 0,
104115
SeasonOfMastery = 1,

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Updated for patch 11.2.7.
88

99
Added an option for the group leader to block trade requests while their voting frame is open. When enabled, any trade attempts will be cancelled.
1010

11+
### Button group
12+
13+
Added new button group for housing decor.
14+
1115
# 3.18.0
1216

1317
Updated for patch 11.2.5.

0 commit comments

Comments
 (0)