for i = 1, 6 do
controls.statGroups[i] = {}
controls.statGroups[i].icon = Bitmap(controls.bg)
controls.statGroups[i].value = UIUtil.CreateText(controls.statGroups[i].icon, '', 12, UIUtil.bodyFont)
if i == 1 then
controls.statGroups[i].color = Bitmap(controls.bg)
LayoutHelpers.FillParent(controls.statGroups[i].color, controls.statGroups[i].icon)
controls.statGroups[i].color.Depth:Set(function() return controls.statGroups[i].icon.Depth() - 1 end)
end
end
for i = 1, 7 do
controls.statGroups[i] = {}
controls.statGroups[i].icon = Bitmap(controls.bg)
controls.statGroups[i].value = UIUtil.CreateText(controls.statGroups[i].icon, '', 12, UIUtil.bodyFont)
if i == 1 then
controls.statGroups[i].color = Bitmap(controls.bg)
LayoutHelpers.FillParent(controls.statGroups[i].color, controls.statGroups[i].icon)
controls.statGroups[i].color.Depth:Set(function() return controls.statGroups[i].icon.Depth() - 1 end)
end
end
Statistics: Posted by Ze_PilOt — 03 Jul 2012, 20:03