Skip to content

Commit

Permalink
Fix speedbar recoloring
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Feb 17, 2023
1 parent c9700bd commit ecae3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Operations/RewordWeaponStats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ function Addon:ModifyWeaponSpeedbar(speed, speedString, speedStringFull)
local min = self:GetOption("speedBar", "min")
local max = self:GetOption("speedBar", "max")
local size = self:GetOption("speedBar", "size")
local color = self:GetOption("allow", "recolor") and self:GetOption("doRecolor", stat) and self:GetOption("color", stat) or nil
local fillChar = self:MakeIcon(self.speedbarFillIconPath, nil, 0.25, color)
local blankChar = self.speedbarEmptyIcon
local showSpeed = self:GetOption("speedBar", "speedPrefix") and self:ModifyWeaponSpeed(speedStringFull, speed, speedString) or nil
local delta = max - min
local color = self:GetOption("allow", "recolor") and self:GetOption("doRecolor", stat) and self:GetOption("color", stat) or nil

local fill = self:Clamp(0, self:Round((speed - min) / delta * size, 1), size)
local bar = ("[%s%s]"):format(strRep(fillChar, fill), strRep(blankChar, size - fill))
Expand Down

0 comments on commit ecae3de

Please sign in to comment.