2021-07-20 17:15:05 +00:00
|
|
|
|
|
|
|
|
function ToolsModule::onCreate(%this)
|
|
|
|
|
{
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
// Initialize core sub system functionality such as audio, the Canvas, PostFX,
|
|
|
|
|
// rendermanager, light managers, etc.
|
|
|
|
|
//
|
|
|
|
|
// Note that not all of these need to be initialized before the client, although
|
|
|
|
|
// the audio should and the canvas definitely needs to be. I've put things here
|
|
|
|
|
// to distinguish between the purpose and functionality of the various client
|
|
|
|
|
// scripts. Game specific script isn't needed until we reach the shell menus
|
|
|
|
|
// and start a game or connect to a server. We get the various subsystems ready
|
|
|
|
|
// to go, and then use initClient() to handle the rest of the startup sequence.
|
|
|
|
|
//
|
|
|
|
|
// If this is too convoluted we can reduce this complexity after futher testing
|
|
|
|
|
// to find exactly which subsystems should be readied before kicking things off.
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
2023-10-22 05:47:29 +00:00
|
|
|
ModuleDatabase.LoadExplicit( "EditorCore" );
|
2021-07-20 17:15:05 +00:00
|
|
|
//ModuleDatabase.LoadExplicit( "Tools_ObjectViewer" );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function ToolsModule::onDestroy(%this)
|
|
|
|
|
{
|
|
|
|
|
|
2025-04-22 23:20:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function ToolsModule::disconnect(%this)
|
|
|
|
|
{
|
|
|
|
|
if ( isObject( Editor ) && Editor.isEditorEnabled() )
|
|
|
|
|
{
|
|
|
|
|
EditorGui.saveAs = false; //whatever edits we were doing are irrelevent now
|
|
|
|
|
Editor.close(MainMenuGui);
|
|
|
|
|
}
|
2021-07-20 17:15:05 +00:00
|
|
|
}
|