0ad/binaries/data/mods/public/gui/session/PanelEntities.xml
elexis b859195064 Decouple panel entities code from session code and use class notation, refs #5387, #3000, #1902, #1802, d7d1d8ccb5.
Change the logic to only insert/delete buttonhandlers on ownershipchange
and update only the entitystate dependent part on simulation update.

Differential Revision: https://code.wildfiregames.com/D2387
This was SVN commit r23089.
2019-10-22 17:53:22 +00:00

22 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<object name="panelEntityButtons" size="0 36 50 93">
<!-- Displays buttons for the most important units like heroes and relics -->
<repeat count="19" var="n">
<object name="panelEntityButton[n]" size="0 0 50 50" type="button" hidden="true" style="iconButton" tooltip_style="sessionToolTip">
<object name="panelEntityImage[n]" size="5 5 100%-5 100%-5" type="image" ghost="true"/>
<object name="panelEntityHitOverlay[n]" hidden="true" type="image" ghost="true" size="5 5 100%-5 100%-5"/>
<!-- Health bar -->
<object size="3 100%-7 100%-3 100%-2" name="panelEntityHealthSection[n]" ghost="true">
<object size="0 0 100% 5" name="panelEntityHealth[n]" type="image" ghost="true">
<object type="image" sprite="barBorder" ghost="true" size="-1 -1 100%+1 100%+1"/>
<object type="image" sprite="healthBackground" ghost="true"/>
<object type="image" sprite="healthForeground" ghost="true" name="panelEntityHealthBar[n]"/>
<object type="image" sprite="statsBarShaderHorizontal" ghost="true"/>
</object>
</object>
</object>
</repeat>
</object>