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

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

Loading…
Cancel
Save