forked from 0ad/0ad
Adds lock/unlock gate icons, based on patch by F00.
This was SVN commit r12120.
This commit is contained in:
parent
27a0bd6331
commit
b59c2d9e36
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user