0ad/source/gui/Scripting
Vantha 6515c3fb1f Show an error when Engine.GetGUIObjectByName fails
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.
2025-08-14 10:22:56 +02:00
..
GuiScriptConversions.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
JSInterface_CGUISize.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
JSInterface_CGUISize.h Allow setting CGUISize properties directly 2025-06-17 12:57:33 -05:00
JSInterface_GUIManager.cpp Show an error when Engine.GetGUIObjectByName fails 2025-08-14 10:22:56 +02:00
JSInterface_GUIManager.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
JSInterface_GUIProxy.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
JSInterface_GUIProxy.h GUIProxy: Support property introspection for debugging 2025-07-11 11:06:06 -05:00
JSInterface_GUIProxy_impl.h GUIProxy: Support property introspection for debugging 2025-07-11 11:06:06 -05:00
JSInterface_GUISize.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
JSInterface_GUISize.h Fix most headers in gui 2025-07-05 12:42:34 +02:00
ScriptFunctions.cpp Fix most headers in gui 2025-07-05 12:42:34 +02:00
ScriptFunctions.h Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00