mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-25 20:31:58 +00:00
Adds lock/unlock gate icons, based on patch by F00.
This was SVN commit r12120.
This commit is contained in:
@@ -501,7 +501,8 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
|
||||
}
|
||||
else if (guiName == GATE)
|
||||
{
|
||||
icon.sprite = "stretched:session/icons/production.png";
|
||||
var lockIcon = unitEntState.gate.locked ? "gate_unlocked.png" : "gate_locked.png";
|
||||
icon.sprite = "stretched:session/icons/" + lockIcon;
|
||||
}
|
||||
else if (template.icon)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user