1
0
forked from 0ad/0ad

Hide the lower session panel if nothing is selected

This was SVN commit r8566.
This commit is contained in:
WhiteTreePaladin 2010-11-11 16:00:53 +00:00
parent 83285504cb
commit c5f0b5d7be
2 changed files with 5 additions and 4 deletions

View File

@ -194,9 +194,9 @@ function updateSelectionDetails()
getGUIObjectByName("detailsAreaSingle").hidden = true;
hideUnitCommands();
// supplementalDetailsPanel.hidden = true;
// detailsPanel.hidden = true;
// commandsPanel.hidden = true;
supplementalDetailsPanel.hidden = true;
detailsPanel.hidden = true;
commandsPanel.hidden = true;
// getGUIObjectByName("unitSelectionPanel").hidden = true;
return;
}
@ -226,7 +226,9 @@ function updateSelectionDetails()
}
// Show Panels
supplementalDetailsPanel.hidden = false;
detailsPanel.hidden = false;
commandsPanel.hidden = false;
// Fill out commands panel for specific unit selected (or first unit of primary group)
updateUnitCommands(entState, supplementalDetailsPanel, commandsPanel, selection);

View File

@ -215,7 +215,6 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
tooltip += "\n[font=\"serif-13\"]" + template.tooltip + " " + getPopulationBonus(template) + "[/font]";
tooltip += "\n" + getEntityCost(template);
break;
case COMMAND: