1
0
forked from 0ad/0ad

More of the same.

This was SVN commit r1420.
This commit is contained in:
Acumen 2004-11-28 19:10:26 +00:00
parent dcb00048e0
commit ee669ca572
4 changed files with 3494 additions and 4 deletions

View File

@ -614,7 +614,7 @@
]]></action>
<!-- STATUS ORB BACKGROUND -->
<object type="button" name="session_panel_status_bg" z="70" ghost="true" hidden="false">
<object type="button" name="session_panel_status_bg" z="69" ghost="true" hidden="false">
<action on="Load"><![CDATA[
AddSizeCoord(this.name,
crd_status_orb_bkg_x, crd_status_orb_bkg_y, crd_status_orb_bkg_x+crd_status_orb_bkg_width, crd_status_orb_bkg_y+crd_status_orb_bkg_height, left_screen, top_screen, left_screen, top_screen,

View File

@ -189,7 +189,10 @@ function UpdateGroupPane()
// Set progress bar for hitpoints.
if (selection[groupPaneLoop-1].traits.health.curr && selection[groupPaneLoop-1].traits.health.hitpoints)
groupPaneBar.caption = ((Math.round(selection[groupPaneLoop-1].traits.health.curr) * 100 ) / Math.round(selection[groupPaneLoop-1].traits.health.hitpoints));
if (selection[groupPaneLoop-1].traits.id.icon)
// Set portrait.
if (selection[groupPaneLoop-1].traits.id.icon_cell && selection[groupPaneLoop-1].traits.id.icon_cell != "")
setPortrait("session_group_pane_portrait_" + groupPaneLoop, selection[groupPaneLoop-1].traits.id.icon + "_" + selection[groupPaneLoop-1].traits.id.icon_cell);
else
setPortrait("session_group_pane_portrait_" + groupPaneLoop, selection[groupPaneLoop-1].traits.id.icon);
}
// If it's empty, hide its group portrait.

View File

@ -202,7 +202,7 @@ function UpdateStatusOrb()
// Update portrait
if (selection[0].traits.id.icon)
{
if (selection[0].traits.id.icon_cell)
if (selection[0].traits.id.icon_cell && selection[0].traits.id.icon_cell != "")
setPortrait("session_panel_status_portrait", selection[0].traits.id.icon + "_" + selection[0].traits.id.icon_cell);
else
setPortrait("session_panel_status_portrait", selection[0].traits.id.icon);

File diff suppressed because it is too large Load Diff