mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 21:34:08 -07:00
It previously failed silently and just returned undefined which would often only cause errors later on. Printing an error as soon as that happens helps with debugging, by directly catching typos, for example. For cases where the queried object may not exist, a new Engine function called TryGetGUIObjectByName is introduced. It doesn't log any errors and behaves exactly as GetGUIObjectByName used to. |
||
|---|---|---|
| .. | ||
| GuiScriptConversions.cpp | ||
| JSInterface_CGUISize.cpp | ||
| JSInterface_CGUISize.h | ||
| JSInterface_GUIManager.cpp | ||
| JSInterface_GUIManager.h | ||
| JSInterface_GUIProxy.cpp | ||
| JSInterface_GUIProxy.h | ||
| JSInterface_GUIProxy_impl.h | ||
| JSInterface_GUISize.cpp | ||
| JSInterface_GUISize.h | ||
| ScriptFunctions.cpp | ||
| ScriptFunctions.h | ||