0ad/source/gui/Scripting
wraitii 557fa0312e Fix non-visual autostart, as well as client/host autostart.
Follows 8eecc39e71.

Piping the autostart through a GUI page is easy but requires using the
GUI in non-visual mode, which is problematic since it's not initialized.
The GUI is not needed, only its ability to load scripts, so this diff
fixes the problem by adding an 'entrypoint' script in the new
`autostart` folder that gets called with this unique ability, setting
things up properly. The mod mod gets a placeholder.

Other changes:
- Fix some issues with networked autostart:
  - Players were not assigned slots.
  - The host didn't actually wait for other players.
- Move gamesettings from `gui/gamesettings/` to `gamesettings/`. This
moves attributes as well.
- Move autostart files from `gui/autostart/` to ` autostart/`. Note that
`gui/autostart/` still exists as it's used in the tutorial button from
the main menu.
- Rename the JSI_VFS functions to be explicitly about their function:
the ability to write and the potential restricted folders.
- Don't require `autostart` when using `--autostart-client` in
non-visual mode.

Starting the autostart client/host has poor UX in some situations, but
improving that feature is beyond the scope of this diff.

Suggestions for future work:
- Some files in gui/common should probably be moved elsewhere
- Template loading code is duplicated
- The gamesetup code still needs work for proper UI/logic separation.

Help & comments by: smiley

Reported by: vladislav / Langbart
Fixes #6513

Differential Revision: https://code.wildfiregames.com/D4628
This was SVN commit r26879.
2022-05-15 06:34:17 +00:00
..
GuiScriptConversions.cpp Split off Object-related functions from ScriptInterface 2021-05-13 17:23:52 +00:00
JSInterface_GUIManager.cpp Moves cursor to VideoMode to draw it via SDL. 2021-09-21 22:44:46 +00:00
JSInterface_GUIManager.h Refactor all usage of RegisterFunction to ScriptFunction::Register 2021-03-02 20:01:14 +00:00
JSInterface_GUIProxy.cpp Map flares 2021-06-05 17:37:18 +00:00
JSInterface_GUIProxy.h Implement FromJSVal<IObject*> safely 2021-04-30 13:20:43 +00:00
JSInterface_GUIProxy_impl.h Remove all external usage of CmptPrivate. Header cleanup. 2021-05-15 13:54:58 +00:00
JSInterface_GUISize.cpp Remove all external usage of CmptPrivate. Header cleanup. 2021-05-15 13:54:58 +00:00
JSInterface_GUISize.h Fixes broken PCH after wraitii commits (4f972bc623, 0f60bf3a97) and Itms (833c9f108c). 2021-05-15 14:50:24 +00:00
ScriptFunctions.cpp Fix non-visual autostart, as well as client/host autostart. 2022-05-15 06:34:17 +00:00
ScriptFunctions.h Sort GUI Object types, GUI Object bases and GUI Setting value types into three new folders. 2019-10-02 09:44:00 +00:00