refactor: deduplicate arrays in inventory_screen, add kDarkYellow constant

- Move kSocketTypes to file-scope constexpr, removing 2 identical local
  definitions across tooltip render functions
- Move kResistNames to file-scope constexpr, removing 3 identical local
  definitions (Holy..Arcane resistance labels)
- Move kRepRankNames to file-scope constexpr, removing 2 identical local
  definitions (Hated..Exalted reputation rank labels)
- Add kDarkYellow color constant, replacing 3 inline literals
This commit is contained in:
Kelsi 2026-03-27 14:25:54 -07:00
parent cbb42ac58f
commit f5a3ebc774
2 changed files with 29 additions and 37 deletions

View file

@ -38,6 +38,7 @@ namespace colors {
constexpr ImVec4 kInactiveGray = {0.55f, 0.55f, 0.55f, 1.0f};
constexpr ImVec4 kVeryLightGray = {0.85f, 0.85f, 0.85f, 1.0f};
constexpr ImVec4 kSymbolGold = {1.0f, 0.85f, 0.1f, 1.0f};
constexpr ImVec4 kDarkYellow = {0.8f, 0.8f, 0.0f, 1.0f};
constexpr ImVec4 kLowHealthRed = {0.8f, 0.2f, 0.2f, 1.0f};
constexpr ImVec4 kDangerRed = {0.7f, 0.2f, 0.2f, 1.0f};