mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-15 00:43:52 +00:00
refactor: add 9 color constants, replace 36 more inline literals
New constants in ui_colors.hpp: - Power types: kEnergyYellow, kHappinessGreen, kRunicRed, kSoulShardPurple - UI elements: kInactiveGray, kVeryLightGray, kSymbolGold, kLowHealthRed, kDangerRed Replacements across game_screen(30), inventory_screen(5), character_screen(1).
This commit is contained in:
parent
762daebc75
commit
54006fad83
4 changed files with 49 additions and 36 deletions
|
|
@ -50,7 +50,7 @@ static ImVec4 classColor(uint8_t classId) {
|
|||
case 8: return ImVec4(0.41f, 0.80f, 0.94f, 1.0f); // Mage #69CCF0
|
||||
case 9: return ImVec4(0.58f, 0.51f, 0.79f, 1.0f); // Warlock #9482C9
|
||||
case 11: return ImVec4(1.00f, 0.49f, 0.04f, 1.0f); // Druid #FF7D0A
|
||||
default: return ImVec4(0.85f, 0.85f, 0.85f, 1.0f);
|
||||
default: return ui::colors::kVeryLightGray;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue