mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:29:00 +00:00
1 parent
e22c5bd05e
commit
4dace890cf
1 file changed
+2
-2
@@ -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 + "]")
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user