Hide the lower session panel if nothing is selected
This was SVN commit r8566.
This commit is contained in:
parent
83285504cb
commit
c5f0b5d7be
@ -194,9 +194,9 @@ function updateSelectionDetails()
|
|||||||
getGUIObjectByName("detailsAreaSingle").hidden = true;
|
getGUIObjectByName("detailsAreaSingle").hidden = true;
|
||||||
hideUnitCommands();
|
hideUnitCommands();
|
||||||
|
|
||||||
// supplementalDetailsPanel.hidden = true;
|
supplementalDetailsPanel.hidden = true;
|
||||||
// detailsPanel.hidden = true;
|
detailsPanel.hidden = true;
|
||||||
// commandsPanel.hidden = true;
|
commandsPanel.hidden = true;
|
||||||
// getGUIObjectByName("unitSelectionPanel").hidden = true;
|
// getGUIObjectByName("unitSelectionPanel").hidden = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -226,7 +226,9 @@ function updateSelectionDetails()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show Panels
|
// Show Panels
|
||||||
|
supplementalDetailsPanel.hidden = false;
|
||||||
detailsPanel.hidden = false;
|
detailsPanel.hidden = false;
|
||||||
|
commandsPanel.hidden = false;
|
||||||
|
|
||||||
// Fill out commands panel for specific unit selected (or first unit of primary group)
|
// Fill out commands panel for specific unit selected (or first unit of primary group)
|
||||||
updateUnitCommands(entState, supplementalDetailsPanel, commandsPanel, selection);
|
updateUnitCommands(entState, supplementalDetailsPanel, commandsPanel, selection);
|
||||||
|
@ -215,7 +215,6 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
|
|||||||
tooltip += "\n[font=\"serif-13\"]" + template.tooltip + " " + getPopulationBonus(template) + "[/font]";
|
tooltip += "\n[font=\"serif-13\"]" + template.tooltip + " " + getPopulationBonus(template) + "[/font]";
|
||||||
|
|
||||||
tooltip += "\n" + getEntityCost(template);
|
tooltip += "\n" + getEntityCost(template);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case COMMAND:
|
case COMMAND:
|
||||||
|
Loading…
Reference in New Issue
Block a user