Skip to content

Commit

Permalink
Finalize color formatting for raid selection dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Sep 25, 2024
1 parent a4fbfce commit 4b73c67
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
22 changes: 14 additions & 8 deletions Constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,20 @@ LootReserve.Constants.ItemLevelInvTypeWhitelist = setmetatable({
INVTYPE_BODY = false,
}, { __index = function() return true end });
LootReserve.Constants.Colors = {
Size10 = "b1fc99",
Size20Tiny = "8cffdb",
Size20 = "8ab9f1",
Size25Tiny = "ffff00",
Size25 = "ffff00",
Size10or25 = "7fff00",
Size40Tiny = "dea681",
Size40 = "f87217",
Size10Tiny = "98fcc5",
-- Size10 = "b1fc99",
Size10 = "ffff00",
Size20Tiny = "8cffdb",
Size20 = LootReserve:GetCurrentExpansion() == 0 and "f87217" or "8ab9f1",
Size25Tiny = "b7b2ff",
-- Size25 = "ffff00",
Size25 = "f87217",
Size10or25Tiny = "00ffd5",
-- Size10or25 = "7fff00",
Size10or25 = "f87217",
-- Size40Tiny = "dea681",
Size40Tiny = "b7b2ff",
Size40 = "f87217",
};
LootReserve.Constants.LocomotionPhrases = {
"Advance",
Expand Down
6 changes: 1 addition & 5 deletions Windows/ServerWindow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2919,11 +2919,7 @@
});
end
if not collapsed then
if LootReserve:GetCurrentExpansion() == 0 then
info.text = (category.Color and ("|cff" .. category.Color) or "") .. (category.ButtonName or category.Name);
else
info.text = category.ButtonName or category.Name;
end
info.text = (category.Color and ("|cff" .. category.Color) or "") .. (category.ButtonName or category.Name);
info.isNotRadio = true;
info.keepShownOnClick = true;
info.value = id;
Expand Down

0 comments on commit 4b73c67

Please sign in to comment.