Skip to content

Commit

Permalink
Add equipped button colour
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed May 8, 2023
1 parent 7f8582c commit 31e8dd6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ls_UI/core/button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ do
local button = self:GetParent()

if button:IsEquipped() then
button.Border_:SetVertexColor(C.db.global.colors.green:GetRGB())
button.Border_:SetVertexColor(C.db.global.colors.button.equipped:GetRGB())
else
button.Border_:SetVertexColor(1, 1, 1)
end
Expand Down
1 change: 1 addition & 0 deletions ls_UI/core/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ D.global = {
unusable = rgb(181, 182, 181), -- #B5B6B5 (N7)
mana = rgb(32, 98, 165), -- #2062A5 (5PB 4/10)
range = rgb(140, 29, 30), -- #8C1D1E (7.5R 3/10)
equipped = rgb(46, 172, 52), -- #2EAC34 (10GY 6/12)
},
castbar = {
casting = rgb(246, 196, 66), -- #F6C442 (2.5Y 8/10)
Expand Down
1 change: 1 addition & 0 deletions ls_UI/locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ L["ENABLE"] = _G.ENABLE
L["ENCHANTS"] = _G.AUCTION_CATEGORY_ITEM_ENHANCEMENT
L["ENERGY"] = _G.ENERGY
L["ENRAGE"] = _G.ENCOUNTER_JOURNAL_SECTION_FLAG11
L["EQUIPMENT"] = _G.BAG_FILTER_EQUIPMENT
L["ERROR_RED"] = E:WrapTextInColorCode(D.global.colors.red, _G.ERROR_CAPS)
L["FACTION"] = _G.FACTION
L["FACTION_ALLIANCE"] = _G.FACTION_ALLIANCE
Expand Down
1 change: 1 addition & 0 deletions ls_UI/modules/bars/actionbars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ function bar_proto:UpdateButtonConfig()
unusable = {},
mana = {},
range = {},
equipped = {},
},
desaturation = {},
hideElements = {
Expand Down
1 change: 1 addition & 0 deletions ls_UI/modules/bars/petbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function bar_proto:UpdateButtonConfig()
unusable = {},
mana = {},
range = {},
equipped = {},
},
desaturation = {},
}
Expand Down
5 changes: 5 additions & 0 deletions ls_UI_Options/general/colors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,11 @@ function CONFIG:GetColorsOptions(order)
type = "color",
name = L["OOR"],
},
equipped = {
order = inc(2),
type = "color",
name = L["EQUIPMENT"],
},
},
},
cooldown = {
Expand Down

0 comments on commit 31e8dd6

Please sign in to comment.