mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 10:09:16 +00:00
1 parent
e22c5bd05e
commit
4dace890cf
1 file changed
+2
-2
@@ -77,8 +77,8 @@ function setupUnitPanel(guiName, unitEntStates, playerState)
|
||||
"rowLength": rowLength,
|
||||
"numberOfItems": numberOfItems,
|
||||
// depending on the XML, some of the GUI objects may be undefined
|
||||
"button": Engine.GetGUIObjectByName("unit" + guiName + "Button[" + i + "]"),
|
||||
"icon": Engine.GetGUIObjectByName("unit" + guiName + "Icon[" + i + "]"),
|
||||
"button": Engine.TryGetGUIObjectByName("unit" + guiName + "Button[" + i + "]"),
|
||||
"icon": Engine.TryGetGUIObjectByName("unit" + guiName + "Icon[" + i + "]"),
|
||||
"guiSelection": Engine.TryGetGUIObjectByName("unit" + guiName + "Selection[" + i + "]"),
|
||||
"countDisplay": Engine.TryGetGUIObjectByName("unit" + guiName + "Count[" + i + "]")
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user