Hello, so, I've managed to get raid frames wider by changing default \AddOns\oUF_Diablo\units\raid.lua
Code:
self.cfg.width = 64
self.cfg.height = 64
to 192x64. This worked out great, except for alive raid members.
To extent of my coding skills, I assume the folowing part has the math done not in the way I'd expect:
Code:
--update health func
local updateHealth = function(bar, unit, min, max)
local d = floor(min/max*100)
--apply bar width
if d == 100 then
bar.back:SetWidth(0.01) --fix (0) makes the bar go anywhere
elseif d < 100 then
local w = bar.w
bar.back:SetWidth(w-(w*d/100)) --calc new width of bar based on size of healthbar
end
local color
local dead
if UnitIsDeadOrGhost(unit) or not UnitIsConnected(unit) then
color = {r = 0.4, g = 0.4, b = 0.4}
dead = 1
and this one:
Code:
--new fake statusbar
local n = h:CreateTexture(nil,"BACKGROUND",nil,-6)
n:SetPoint("TOPLEFT",h,"TOPLEFT",0,0)
n:SetPoint("BOTTOMLEFT",h,"BOTTOMLEFT",0,0)
n:SetPoint("RIGHT", t, "LEFT", 0, 0 ) --right point of n will anchor left point of t
n:SetTexture(self.cfg.health.texture)
h.new = n
--h.new:SetVertexColor(0.15,0.15,0.15,1)
as I see it, the math is attached abstractly to a value I am remotely messing with, however, I just can't figure which one.
Searched the forum - found nothing in regard of this. Can anyone help me with this please?