|
|
@ -380,14 +380,14 @@ function game:initFamePos()
|
|
|
|
|
|
|
|
|
|
|
|
-- assign good bar with good text
|
|
|
|
-- assign good bar with good text
|
|
|
|
|
|
|
|
|
|
|
|
local uiList = { 'fyros', 'matis', 'tryker', 'zorai', 'kami', 'karavan' };
|
|
|
|
local uiList = { 'fyros', 'matis', 'tryker', 'zorai', 'kami', 'karavan', 'black_kami'};
|
|
|
|
|
|
|
|
|
|
|
|
for k,v in pairs(uiList) do
|
|
|
|
for k,v in pairs(uiList) do
|
|
|
|
-- get ui text
|
|
|
|
-- get ui text
|
|
|
|
local uiTextRef = getUI(getUIId(ui) .. ':' .. v);
|
|
|
|
local uiTextRef = getUI(getUIId(ui) .. ':' .. v);
|
|
|
|
local fameIdx = getFameDBIndex(getFameIndex(v));
|
|
|
|
local fameIdx = getFameDBIndex(getFameIndex(v));
|
|
|
|
-- put bar in front of it
|
|
|
|
-- put bar in front of it
|
|
|
|
if (fameIdx >= 0) and (fameIdx <= 5) then
|
|
|
|
if (fameIdx >= 0) and (fameIdx <= 6) then
|
|
|
|
local uiBar = getUI(getUIId(ui) .. ':fb' .. fameIdx);
|
|
|
|
local uiBar = getUI(getUIId(ui) .. ':fb' .. fameIdx);
|
|
|
|
uiBar.y = uiTextRef.y - uiTextRef.h / 2 + uiBar.h / 2;
|
|
|
|
uiBar.y = uiTextRef.y - uiTextRef.h / 2 + uiBar.h / 2;
|
|
|
|
else
|
|
|
|
else
|
|
|
|