mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
Update HealBot_Action.lua
Opacity fix of health bar in Modern preset Signed-off-by: Bluewhale1337 <295648290+Bluewhale1337@users.noreply.github.com>
This commit is contained in:
+8
-4
@@ -204,7 +204,7 @@ function HealBot_Action_EnableButton(button)
|
|||||||
if bar3 then
|
if bar3 then
|
||||||
bar3:SetMinMaxValues(0, state.maxMana)
|
bar3:SetMinMaxValues(0, state.maxMana)
|
||||||
bar3:SetValue(state.mana)
|
bar3:SetValue(state.mana)
|
||||||
bar3:SetStatusBarColor(pr, pg, pb, HealBot_Config.Barcola[HealBot_Config.Current_Skin])
|
bar3:SetStatusBarColor(pr, pg, pb, 1)
|
||||||
bar3:Show()
|
bar3:Show()
|
||||||
bar3:SetHeight(bheight * 0.2)
|
bar3:SetHeight(bheight * 0.2)
|
||||||
end
|
end
|
||||||
@@ -241,7 +241,7 @@ function HealBot_Action_EnableButton(button)
|
|||||||
sg=1.0;
|
sg=1.0;
|
||||||
sb=0.0;
|
sb=0.0;
|
||||||
end
|
end
|
||||||
bar:SetStatusBarColor(r,g,b,HealBot_Config.Barcola[HealBot_Config.Current_Skin]);
|
bar:SetStatusBarColor(r,g,b,1);
|
||||||
bar2:SetStatusBarColor(r,g,b,HealBot_Config.BarcolaInHeal[HealBot_Config.Current_Skin]);
|
bar2:SetStatusBarColor(r,g,b,HealBot_Config.BarcolaInHeal[HealBot_Config.Current_Skin]);
|
||||||
else
|
else
|
||||||
button:Disable();
|
button:Disable();
|
||||||
@@ -249,9 +249,13 @@ function HealBot_Action_EnableButton(button)
|
|||||||
sg=HealBot_Config.btextdisbledcolg[HealBot_Config.Current_Skin];
|
sg=HealBot_Config.btextdisbledcolg[HealBot_Config.Current_Skin];
|
||||||
sb=HealBot_Config.btextdisbledcolb[HealBot_Config.Current_Skin];
|
sb=HealBot_Config.btextdisbledcolb[HealBot_Config.Current_Skin];
|
||||||
sa=HealBot_Config.btextdisbledcola[HealBot_Config.Current_Skin];
|
sa=HealBot_Config.btextdisbledcola[HealBot_Config.Current_Skin];
|
||||||
bar:SetStatusBarColor(r,g,b,HealBot_Config.bardisa[HealBot_Config.Current_Skin]);
|
|
||||||
bar2:SetStatusBarColor(r,g,b,HealBot_Config.bardisa[HealBot_Config.Current_Skin]);
|
bar:SetStatusBarColor(r,g,b,1);
|
||||||
|
bar2:SetStatusBarColor(r,g,b,1);
|
||||||
end
|
end
|
||||||
|
|
||||||
|
button:SetAlpha(a);
|
||||||
|
|
||||||
if string.len(name)>textlen then
|
if string.len(name)>textlen then
|
||||||
name = string.sub(name,1,textlen-3) .. '...';
|
name = string.sub(name,1,textlen-3) .. '...';
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user