Forged Alliance Forever Forged Alliance Forever Forums 2012-07-03T20:03:47+02:00 /feed.php?f=36&t=1448 2012-07-03T20:03:47+02:00 2012-07-03T20:03:47+02:00 /viewtopic.php?t=1448&p=15192#p15192 <![CDATA[Known issues]]> AZUI (not GAZUI) incompatibility

In order to solve this, in the AZUI folder, search unitview.lua.

Code:
    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


Need to be replaced by

Code:
    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


(6 instead of 7, no other change)

Statistics: Posted by Ze_PilOt — 03 Jul 2012, 20:03


]]>