Requested cleanups

This commit is contained in:
Areloch 2021-09-01 17:57:21 -05:00
parent 25a32cba2a
commit e8a49ef4ca
5 changed files with 16 additions and 14 deletions

View file

@ -32,7 +32,6 @@ function AssetBrowser_addModuleWindow::onGainFirstResponder(%this)
function AssetBrowser_addModuleWindow::close() function AssetBrowser_addModuleWindow::close()
{ {
Canvas.popDialog(AssetBrowser_addModule); Canvas.popDialog(AssetBrowser_addModule);
//eval(AssetBrowser_addModuleWindow.callbackFunction);
} }
function AssetBrowser_addModuleWindow::CreateNewModule(%this) function AssetBrowser_addModuleWindow::CreateNewModule(%this)

View file

@ -324,11 +324,15 @@ function AssetBrowser::buildShapeAssetPreview(%this, %assetDef, %previewData)
else else
{ {
if(EditorSettings.value("Assets/Browser/doubleClickAction", "Edit Asset") $= "Edit Asset") if(EditorSettings.value("Assets/Browser/doubleClickAction", "Edit Asset") $= "Edit Asset")
{
%previewData.doubleClickCommand = "AssetBrowser.editAsset( "@%assetDef@" );"; %previewData.doubleClickCommand = "AssetBrowser.editAsset( "@%assetDef@" );";
}
else else
{
%previewData.doubleClickCommand = "AssetBrowser.onShapeAssetEditorDropped( "@%assetDef@" );"; %previewData.doubleClickCommand = "AssetBrowser.onShapeAssetEditorDropped( "@%assetDef@" );";
} }
} }
}
function AssetBrowser::onShapeAssetEditorDropped(%this, %assetDef, %position) function AssetBrowser::onShapeAssetEditorDropped(%this, %assetDef, %position)
{ {

View file

@ -364,7 +364,6 @@ new GuiControlProfile( ToolsGuiButtonProfile )
fixedExtent = false; fixedExtent = false;
justify = "center"; justify = "center";
canKeyFocus = false; canKeyFocus = false;
//bitmapAsset = "ToolsModule:button_image";
hasBitmapArray = false; hasBitmapArray = false;
category = "Tools"; category = "Tools";
}; };

View file

@ -1059,7 +1059,7 @@ function EditorDropTypeMenu::onSelectItem(%this, %id, %text)
// a drop type is selected in the menu. // a drop type is selected in the menu.
EWorldEditor.dropType = getField(%this.item[%id], 2); EWorldEditor.dropType = getField(%this.item[%id], 2);
for(%i=0; %i < %this.getItemCount() + 1; %i++) for(%i=0; %i < %this.getItemCount(); %i++)
{ {
%this.checkItem(%i, false); %this.checkItem(%i, false);
} }