mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
parent
e22c5bd05e
commit
4dace890cf
1 changed files with 2 additions and 2 deletions
|
|
@ -77,8 +77,8 @@ function setupUnitPanel(guiName, unitEntStates, playerState)
|
||||||
"rowLength": rowLength,
|
"rowLength": rowLength,
|
||||||
"numberOfItems": numberOfItems,
|
"numberOfItems": numberOfItems,
|
||||||
// depending on the XML, some of the GUI objects may be undefined
|
// depending on the XML, some of the GUI objects may be undefined
|
||||||
"button": Engine.GetGUIObjectByName("unit" + guiName + "Button[" + i + "]"),
|
"button": Engine.TryGetGUIObjectByName("unit" + guiName + "Button[" + i + "]"),
|
||||||
"icon": Engine.GetGUIObjectByName("unit" + guiName + "Icon[" + i + "]"),
|
"icon": Engine.TryGetGUIObjectByName("unit" + guiName + "Icon[" + i + "]"),
|
||||||
"guiSelection": Engine.TryGetGUIObjectByName("unit" + guiName + "Selection[" + i + "]"),
|
"guiSelection": Engine.TryGetGUIObjectByName("unit" + guiName + "Selection[" + i + "]"),
|
||||||
"countDisplay": Engine.TryGetGUIObjectByName("unit" + guiName + "Count[" + i + "]")
|
"countDisplay": Engine.TryGetGUIObjectByName("unit" + guiName + "Count[" + i + "]")
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue