I have a problem with InfoBox Columns basically.
Each row will consists of 7 bars and it will move to a new after but it mixes all up.
Below is the Lua Code.
Can someone tell me where I am doing wrong?
[EDIT] Code tags added, code indented.
Each row will consists of 7 bars and it will move to a new after but it mixes all up.
Below is the Lua Code.
Can someone tell me where I am doing wrong?
function grcall()
WinWith = 900
GW = {}
GW = InfoBox:New("Title")
GW.windowWidth = WinWith
GW:WindowPosition(GW.windowPositions.NE)
GW.columns = 7
-- Title Part Which is also not working.
GW:AddBar("Name")
GW:AddBar("Status")
GW:AddBar("HP")
GW:AddBar("Mana")
GW:AddBar("Move")
GW:AddBar("TNL")
GW:AddBar("Align")
Addgroupmates()
GW:Update()
end -- function
function Addgroupmates()
count = table.getn(GroupList)
for i = 1, count do
GW:AddBar(GroupList[i].Name)
GW:AddBar(GroupList[i].Status)
a = GW:AddBar( GroupList[i].CurHp .. "/" .. GroupList[i].MaxHp,
math.floor(GroupList[i].CurHp / GroupList[i].MaxHp * 100),
"green", "firebrick", false,GW.barStyles.gradientFixed + GW.barStyles.glass )
a.gaugeHeight = a.cellHeight * .3
b = GW:AddBar(GroupList[i].CurMana .. "/" .. GroupList[i].MaxMana,
math.floor(GroupList[i].CurMana / GroupList[i].MaxMana * 100), "dodgerblue",
"purple", false, GW.barStyles.gradientFixed + GW.barStyles.glass)
GW.Bars[4].threshold = 50
b.gaugeHeight = b.cellHeight * .3
c = GW:AddBar(GroupList[i].CurMove .. "/" .. GroupList[i].MaxMove,
math.floor(GroupList[i].CurMove / GroupList[i].MaxMove * 100),
"green", "firebrick", false,GW.barStyles.gradientFixed + GW.barStyles.glass )
c.gaugeHeight = c.cellHeight * .3
d = GW:AddBar(GroupList[i].Tnl, 50)
d.gaugeHeight = d.cellHeight * .3
e = GW:AddBar(GroupList[i].Align, 50)
e.gaugeHeight = e.cellHeight * .3
end -- if
end -- function AddGroupmates
[EDIT] Code tags added, code indented.