mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
refactor: deduplicate item-set DBC key arrays, widen totem timer buffer
- Move itemKeys/spellKeys/thrKeys to shared kItemSetItemKeys/ kItemSetSpellKeys/kItemSetThresholdKeys in ui_colors.hpp, removing 5 identical local definitions across game_screen and inventory_screen - Widen totem timer snprintf buffer from 8 to 16 bytes (defensive) - Promote kStatTooltips to constexpr
This commit is contained in:
parent
92d8262f96
commit
4981d162c5
3 changed files with 25 additions and 26 deletions
|
|
@ -137,6 +137,20 @@ inline void renderBindingType(uint32_t bindType) {
|
|||
}
|
||||
}
|
||||
|
||||
// ---- DBC item-set spell field keys ----
|
||||
inline constexpr const char* kItemSetItemKeys[10] = {
|
||||
"Item0","Item1","Item2","Item3","Item4",
|
||||
"Item5","Item6","Item7","Item8","Item9"
|
||||
};
|
||||
inline constexpr const char* kItemSetSpellKeys[10] = {
|
||||
"Spell0","Spell1","Spell2","Spell3","Spell4",
|
||||
"Spell5","Spell6","Spell7","Spell8","Spell9"
|
||||
};
|
||||
inline constexpr const char* kItemSetThresholdKeys[10] = {
|
||||
"Threshold0","Threshold1","Threshold2","Threshold3","Threshold4",
|
||||
"Threshold5","Threshold6","Threshold7","Threshold8","Threshold9"
|
||||
};
|
||||
|
||||
// ---- Socket type display (gem sockets) ----
|
||||
struct SocketTypeDef { uint32_t mask; const char* label; ImVec4 col; };
|
||||
inline constexpr SocketTypeDef kSocketTypes[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue