Added autosave logic to the world editor. Via a schedule, it will autosave to tool/autosave to create a backup of the current dirty scene

Fixed RMB menu on multi select objects in the Scene Tree so it will properly display the full list of actions
Fixed up several spots of editor settings fields being incorrect copy-pastes
Integrated AssetBrowser tool into the standard initSettings hook-through for proper default settings integration
Added Editor Theme settings to the default value init'ing of the World Editor
Shifted exec of editor settings default values as part of the initial editor load to ensure that if the settings.xml is deleted, theme info reverts back to the default
Integrated Convex Editor's settings into new EditorSettings window system
Added several missing World Editor settings to Editor Settings Window
This commit is contained in:
Areloch 2020-08-30 04:59:26 -05:00
parent 8611e7090a
commit 8824ee9a2a
8 changed files with 196 additions and 29 deletions

View file

@ -118,6 +118,8 @@ function initializeAssetBrowser()
Input::GetEventManager().subscribe( AssetBrowser, "DropFile" );
Input::GetEventManager().subscribe( AssetBrowser, "EndDropFiles" );
AssetBrowserPlugin.initSettings();
if(!isObject(AssetImportSettings))
{
new Settings(AssetImportSettings)
@ -149,12 +151,6 @@ function initializeAssetBrowser()
new ArrayObject(AssetSearchTerms);
ImportAssetWindow.importingFilesArray = new ArrayObject();
//if(!isObject(SessionImportAssetItems))
// new ArrayObject(SessionImportAssetItems);
//if(!isObject(ImportAssetItems))
// new ArrayObject(ImportAssetItems);
ImportAssetWindow.importer = new AssetImporter();
@ -171,6 +167,34 @@ function AssetBrowserPlugin::onWorldEditorStartup( %this )
AssetBrowser.addToolbarButton();
}
function AssetBrowserPlugin::initSettings( %this )
{
EditorSettings.beginGroup( "Assets", true );
EditorSettings.setDefaultValue( "AssetImporDefaultConfig", "DefaultConfig" );
EditorSettings.setDefaultValue( "AutoImport", 1 );
EditorSettings.beginGroup( "Browser" );
EditorSettings.setDefaultValue( "showCoreModule", 0 );
EditorSettings.setDefaultValue( "showToolsModule", 0 );
EditorSettings.setDefaultValue( "showOnlyPopulatedModule", 0 );
EditorSettings.setDefaultValue( "showFolders", 1 );
EditorSettings.setDefaultValue( "showEmptyFolders", 1 );
EditorSettings.setDefaultValue( "previewTileSize", 1.0 );
EditorSettings.endGroup();
EditorSettings.endGroup();
EditorSettings.beginGroup( "AssetManagement", true );
EditorSettings.beginGroup( "Assets" );
EditorSettings.setDefaultValue( "promptOnRename", 1 );
EditorSettings.endGroup();
EditorSettings.endGroup();
}
function TSStatic::onConstructField(%this, %fieldName, %fieldLabel, %fieldTypeName, %fieldDesc, %fieldDefaultVal, %fieldDataVals, %callbackName, %ownerObj)
{
%inspector = %this.getParent();