forked from 0ad/0ad
More of the same.
This was SVN commit r1420.
This commit is contained in:
parent
dcb00048e0
commit
ee669ca572
@ -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,
|
||||
|
@ -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.
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user