Adds lock/unlock gate icons, based on patch by F00.

This was SVN commit r12120.
This commit is contained in:
historic_bruno 2012-07-16 01:40:09 +00:00
parent 27a0bd6331
commit b59c2d9e36

View File

@ -501,7 +501,8 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
} }
else if (guiName == GATE) 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) else if (template.icon)
{ {