Added: display marauder (black_kami) fame into the Fame window

--HG--
branch : compatibility-develop
hg/compatibility-develop
Riasan 7 years ago
parent 217533f0f7
commit eb4f1aac92

@ -380,14 +380,14 @@ function game:initFamePos()
-- 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
-- get ui text
local uiTextRef = getUI(getUIId(ui) .. ':' .. v);
local fameIdx = getFameDBIndex(getFameIndex(v));
-- 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);
uiBar.y = uiTextRef.y - uiTextRef.h / 2 + uiBar.h / 2;
else

@ -1978,7 +1978,7 @@
<group id="content"
x="0"
y="0"
h="300"
h="330"
posref="TL TL">
<group id="you"
posref="TL TL"
@ -2091,10 +2091,19 @@
fontsize="10"
shadow="true"
hardtext="uiFameKaravan" />
<group id="cult_allegiance_group"
<view type="text"
id="black_kami"
posref="TL TL"
x="4"
y="-220"
color="255 255 255 255"
fontsize="10"
shadow="true"
hardtext="uiFameMarauders" />
<group id="cult_allegiance_group"
posref="TL TL"
x="4"
y="-250"
child_resize_h="true"
child_resize_w="true">
<view type="text"
@ -2163,11 +2172,15 @@
id="fb5"
x="100"
path="SERVER:FAME:PLAYER5" />
<instance template="fame_bar"
id="fb6"
x="100"
path="SERVER:FAME:PLAYER6" />
<view type="text"
id="organization_text"
posref="TL TL"
x="0"
y="-245"
y="-275"
color="255 255 255 255"
fontsize="10"
global_color="true"
@ -2176,7 +2189,7 @@
<group id="organization"
posref="TL TL"
x="2"
y="-260"
y="-290"
h="34"
w="-4"
sizeref="w" >
@ -2356,10 +2369,19 @@
fontsize="10"
shadow="true"
hardtext="uiFameKaravan" />
<group id="cult_allegiance_group"
<view type="text"
id="black_kami"
posref="TL TL"
x="4"
y="-240"
color="255 255 255 255"
fontsize="10"
shadow="true"
hardtext="uiFameMarauders" />
<group id="cult_allegiance_group"
posref="TL TL"
x="4"
y="-270"
child_resize_h="true"
child_resize_w="true">
<view type="text"
@ -2427,6 +2449,10 @@
id="fb5"
x="100"
path="SERVER:GUILD:FAME:5" />
<instance template="fame_bar"
id="fb6"
x="100"
path="SERVER:GUILD:FAME:6" />
</group>
<group id="tribes"
posref="TL TL"

Loading…
Cancel
Save