mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
more torquescript template fixes.
This commit is contained in:
parent
6f7fdca87d
commit
b2bbd771f6
54 changed files with 122 additions and 99 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
// Copyright (C) - Violent Tulip
|
// Copyright (C) - Violent Tulip
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
%paletteId = new GuiControl(VPathEditorPalette) {
|
$paletteId = new GuiControl(VPathEditorPalette) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ function VControllerPropertyList::InspectObject( %this, %object )
|
||||||
}
|
}
|
||||||
|
|
||||||
%dataFieldCount = %object.getDataFieldCount();
|
%dataFieldCount = %object.getDataFieldCount();
|
||||||
|
%dataFieldList = "";
|
||||||
for ( %i = 0; %i < %dataFieldCount; %i++ )
|
for ( %i = 0; %i < %dataFieldCount; %i++ )
|
||||||
{
|
{
|
||||||
// Add To List.
|
// Add To List.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ function VDirectorGroup::PopulateBuildStack( %this, %stack )
|
||||||
|
|
||||||
function VDirectorGroup::ResolveBuildStack( %this, %stack )
|
function VDirectorGroup::ResolveBuildStack( %this, %stack )
|
||||||
{
|
{
|
||||||
Parent::ResolveBuildStack( %this, %stack, %groupObject );
|
Parent::ResolveBuildStack( %this, %stack );
|
||||||
|
|
||||||
// Find the Track Toggle.
|
// Find the Track Toggle.
|
||||||
%directorTrackCheckBox = %stack.findObjectByInternalName( "DirectorTrackToggle", true );
|
%directorTrackCheckBox = %stack.findObjectByInternalName( "DirectorTrackToggle", true );
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ function VSceneObjectGroup::PopulateBuildStack( %this, %stack )
|
||||||
|
|
||||||
function VSceneObjectGroup::ResolveBuildStack( %this, %stack )
|
function VSceneObjectGroup::ResolveBuildStack( %this, %stack )
|
||||||
{
|
{
|
||||||
Parent::ResolveBuildStack( %this, %stack, %groupObject );
|
Parent::ResolveBuildStack( %this, %stack );
|
||||||
|
|
||||||
// Fetch the Controller.
|
// Fetch the Controller.
|
||||||
%controller = %this.getRoot();
|
%controller = %this.getRoot();
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ function VSceneObjectGroup::PopulateBuildStack( %this, %stack )
|
||||||
|
|
||||||
function VSceneObjectGroup::ResolveBuildStack( %this, %stack )
|
function VSceneObjectGroup::ResolveBuildStack( %this, %stack )
|
||||||
{
|
{
|
||||||
VGroup::ResolveBuildStack( %this, %stack, %groupObject );
|
VGroup::ResolveBuildStack( %this, %stack );
|
||||||
|
|
||||||
// Fetch the Controller.
|
// Fetch the Controller.
|
||||||
%controller = %this.getRoot();
|
%controller = %this.getRoot();
|
||||||
|
|
|
||||||
|
|
@ -242,6 +242,8 @@ function AssetBrowser::selectAsset( %this, %asset )
|
||||||
//eval("materialEd_previewMaterial." @ %propertyField @ " = " @ %value @ ";");
|
//eval("materialEd_previewMaterial." @ %propertyField @ " = " @ %value @ ";");
|
||||||
if( AssetBrowser.returnType $= "name" )
|
if( AssetBrowser.returnType $= "name" )
|
||||||
{
|
{
|
||||||
|
// TODO!
|
||||||
|
%name = "";
|
||||||
eval( "" @ AssetBrowser.selectCallback @ "(" @ %name @ ");");
|
eval( "" @ AssetBrowser.selectCallback @ "(" @ %name @ ");");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -663,6 +665,7 @@ function AssetBrowser::loadDirectories( %this )
|
||||||
//Remove any modules that have no assets if we have that filter on
|
//Remove any modules that have no assets if we have that filter on
|
||||||
if(%this.onlyShowModulesWithAssets)
|
if(%this.onlyShowModulesWithAssets)
|
||||||
{
|
{
|
||||||
|
%modulesList = ModuleDatabase.findModules();
|
||||||
for(%i=0; %i < getWordCount(%modulesList); %i++)
|
for(%i=0; %i < getWordCount(%modulesList); %i++)
|
||||||
{
|
{
|
||||||
%moduleName = getWord(%modulesList, %i).ModuleId;
|
%moduleName = getWord(%modulesList, %i).ModuleId;
|
||||||
|
|
@ -905,6 +908,8 @@ function AssetBrowser::addCreatorClass(%this, %class, %name, %buildfunc)
|
||||||
if ( %name $= "" )
|
if ( %name $= "" )
|
||||||
%name = %class;
|
%name = %class;
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
%group = "";
|
||||||
if ( %this.currentCreatorGroup !$= "" && %group $= "" )
|
if ( %this.currentCreatorGroup !$= "" && %group $= "" )
|
||||||
%group = %this.currentCreatorGroup;
|
%group = %this.currentCreatorGroup;
|
||||||
|
|
||||||
|
|
@ -1048,6 +1053,13 @@ function AssetBrowser::toggleTagFilterPopup(%this)
|
||||||
//now, add the asset's category
|
//now, add the asset's category
|
||||||
%assetType = AssetDatabase.getAssetCategory(%assetId);
|
%assetType = AssetDatabase.getAssetCategory(%assetId);
|
||||||
|
|
||||||
|
// TODO?
|
||||||
|
%text = "";
|
||||||
|
%var = "";
|
||||||
|
%cmd = "";
|
||||||
|
%textLength = strlen(%text);
|
||||||
|
// end todo
|
||||||
|
|
||||||
%checkBox = new GuiCheckBoxCtrl()
|
%checkBox = new GuiCheckBoxCtrl()
|
||||||
{
|
{
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
|
|
@ -1108,6 +1120,9 @@ function AssetBrowser::reImportAsset(%this)
|
||||||
//if(%assetType $= "ImageAsset")
|
//if(%assetType $= "ImageAsset")
|
||||||
// %filters = "";
|
// %filters = "";
|
||||||
|
|
||||||
|
//TODO
|
||||||
|
%currentFile = "";
|
||||||
|
|
||||||
%dlg = new OpenFileDialog()
|
%dlg = new OpenFileDialog()
|
||||||
{
|
{
|
||||||
Filters = "(All Files (*.*)|*.*|";
|
Filters = "(All Files (*.*)|*.*|";
|
||||||
|
|
@ -1412,10 +1427,13 @@ function AssetBrowser::doRebuildAssetArray(%this)
|
||||||
AssetBrowser-->assetList.deleteAllObjects();
|
AssetBrowser-->assetList.deleteAllObjects();
|
||||||
AssetPreviewArray.empty();
|
AssetPreviewArray.empty();
|
||||||
|
|
||||||
|
// uhh?? I just added global schenanagins here to make this work
|
||||||
|
%assetArray = $AssetBrowser::AssetArray;
|
||||||
if(isObject(%assetArray))
|
if(isObject(%assetArray))
|
||||||
%assetArray.delete();
|
%assetArray.delete();
|
||||||
|
|
||||||
%assetArray = new ArrayObject();
|
%assetArray = new ArrayObject();
|
||||||
|
$AssetBrowser::AssetArray = %assetArray;
|
||||||
|
|
||||||
//First, Query for our assets
|
//First, Query for our assets
|
||||||
%assetQuery = new AssetQuery();
|
%assetQuery = new AssetQuery();
|
||||||
|
|
|
||||||
|
|
@ -277,6 +277,9 @@ function AssetBrowser::onDropFolder(%this, %filePath)
|
||||||
//First, we wanna scan to see if we have modules to contend with. If we do, we'll just plunk them in wholesale
|
//First, we wanna scan to see if we have modules to contend with. If we do, we'll just plunk them in wholesale
|
||||||
//and not process their contents.
|
//and not process their contents.
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
%fileExt = "";
|
||||||
|
|
||||||
//If not modules, it's likely an art pack or other mixed files, so we'll import them as normal
|
//If not modules, it's likely an art pack or other mixed files, so we'll import them as normal
|
||||||
if( (%fileExt $= ".png") || (%fileExt $= ".jpg") || (%fileExt $= ".bmp") || (%fileExt $= ".dds") )
|
if( (%fileExt $= ".png") || (%fileExt $= ".jpg") || (%fileExt $= ".bmp") || (%fileExt $= ".dds") )
|
||||||
%this.importAssetListArray.add("ImageAsset", %filePath);
|
%this.importAssetListArray.add("ImageAsset", %filePath);
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ function ImportAssetOptionsWindow::editImportSettings(%this, %assetItem)
|
||||||
%filePath = %assetItem.filePath;
|
%filePath = %assetItem.filePath;
|
||||||
%assetName = %assetItem.assetName;
|
%assetName = %assetItem.assetName;
|
||||||
%assetConfigObj = %assetItem.importConfig;
|
%assetConfigObj = %assetItem.importConfig;
|
||||||
|
%optionsObj = %assetItem.optionsObj; // TODO IS THIS RIGHT
|
||||||
|
|
||||||
ImportOptionsList.startGroup("Asset");
|
ImportOptionsList.startGroup("Asset");
|
||||||
ImportOptionsList.addField("AssetName", "Asset Name", "string", "", "NewAsset", "", %assetItem);
|
ImportOptionsList.addField("AssetName", "Asset Name", "string", "", "NewAsset", "", %assetItem);
|
||||||
|
|
@ -405,6 +406,7 @@ function ImportAssetConfigEditorWindow::editConfig(%this)
|
||||||
|
|
||||||
function ImportAssetConfigEditorWindow::deleteConfig(%this)
|
function ImportAssetConfigEditorWindow::deleteConfig(%this)
|
||||||
{
|
{
|
||||||
|
%configList = ImportAssetConfigSettingsList;
|
||||||
for(%i=0; %i < %configList.count(); %i++)
|
for(%i=0; %i < %configList.count(); %i++)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ function AssetBrowser::renameComponentAsset(%this, %assetDef, %newAssetId, %orig
|
||||||
%line = %file.readLine();
|
%line = %file.readLine();
|
||||||
%line = trim( %line );
|
%line = trim( %line );
|
||||||
|
|
||||||
%editedFileContents = %editedFileContents @ strreplace(%line, %originalAssetName, %newName) @ "\n";
|
%editedFileContents = %editedFileContents @ strreplace(%line, %originalName, %newName) @ "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
%file.close();
|
%file.close();
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ function AssetBrowser::createCpp(%this)
|
||||||
|
|
||||||
TamlWrite(%asset, %tamlpath);*/
|
TamlWrite(%asset, %tamlpath);*/
|
||||||
|
|
||||||
|
%tamlpath = %assetPath @ %assetName @ ".asset.taml";
|
||||||
|
|
||||||
%moduleDef = ModuleDatabase.findModule(%moduleName, 1);
|
%moduleDef = ModuleDatabase.findModule(%moduleName, 1);
|
||||||
AssetDatabase.addDeclaredAsset(%moduleDef, %tamlpath);
|
AssetDatabase.addDeclaredAsset(%moduleDef, %tamlpath);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@ function AssetBrowser::buildLevelAssetPreview(%this, %assetDef, %previewData)
|
||||||
%previewData.assetPath = %assetDef.getLevelPath();
|
%previewData.assetPath = %assetDef.getLevelPath();
|
||||||
%previewData.doubleClickCommand = "schedule( 1, 0, \"EditorOpenMission\", "@%assetDef@");";
|
%previewData.doubleClickCommand = "schedule( 1, 0, \"EditorOpenMission\", "@%assetDef@");";
|
||||||
|
|
||||||
%levelPreviewImage = %assetDesc.PreviewImage;
|
%levelPreviewImage = %assetDef.PreviewImage;
|
||||||
|
|
||||||
if(isFile(%levelPreviewImage))
|
if(isFile(%levelPreviewImage))
|
||||||
%previewData.previewImage = %levelPreviewImage;
|
%previewData.previewImage = %levelPreviewImage;
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,7 @@ function AssetBrowser::importScriptAsset(%this, %assetId)
|
||||||
|
|
||||||
function AssetBrowser::onScriptAssetEditorDropped(%this, %assetDef, %position)
|
function AssetBrowser::onScriptAssetEditorDropped(%this, %assetDef, %position)
|
||||||
{
|
{
|
||||||
if(!isObject(%dropTarget))
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Renames the asset
|
//Renames the asset
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,9 @@ function AssetBrowser::editStateMachineAsset(%this, %assetDef)
|
||||||
|
|
||||||
function AssetBrowser::duplicateStateMachineAsset(%this, %assetDef)
|
function AssetBrowser::duplicateStateMachineAsset(%this, %assetDef)
|
||||||
{
|
{
|
||||||
|
// TODO:
|
||||||
|
%targetModule = "";
|
||||||
|
|
||||||
//Check if we have a target module, if not we need to select one
|
//Check if we have a target module, if not we need to select one
|
||||||
if(%targetModule $= "")
|
if(%targetModule $= "")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -325,7 +325,7 @@ function directoryHandler::copyFolder(%this, %fromFolder, %toFolder)
|
||||||
if(!%success)
|
if(!%success)
|
||||||
error("copyProjectFolder() - failed to copy file: " @ %file);
|
error("copyProjectFolder() - failed to copy file: " @ %file);
|
||||||
|
|
||||||
%file = findNextFileMultiExpr( %fullPath @ "/*.*" );
|
%file = findNextFileMultiExpr( %fromFolder @ "/*.*" );
|
||||||
}
|
}
|
||||||
|
|
||||||
//do sub directories
|
//do sub directories
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,10 @@ function AssetBrowser::performRenameAsset(%this, %originalAssetName, %newName)
|
||||||
//Update the selection to immediately jump to the new asset
|
//Update the selection to immediately jump to the new asset
|
||||||
AssetBrowser-->filterTree.clearSelection();
|
AssetBrowser-->filterTree.clearSelection();
|
||||||
%ModuleItem = AssetBrowser-->filterTree.findItemByName(%moduleName);
|
%ModuleItem = AssetBrowser-->filterTree.findItemByName(%moduleName);
|
||||||
|
|
||||||
|
// TODO is this correct?
|
||||||
|
%assetType = %ModuleItem.getClassName();
|
||||||
|
|
||||||
%assetTypeId = AssetBrowser-->filterTree.findChildItemByName(%ModuleItem, %assetType);
|
%assetTypeId = AssetBrowser-->filterTree.findChildItemByName(%ModuleItem, %assetType);
|
||||||
|
|
||||||
AssetBrowser-->filterTree.selectItem(%assetTypeId);
|
AssetBrowser-->filterTree.selectItem(%assetTypeId);
|
||||||
|
|
@ -236,9 +240,9 @@ function moveAssetFile(%assetDef, %destinationPath)
|
||||||
%assetPath = makeFullPath(AssetDatabase.getAssetFilePath(%assetDef.getAssetId()));
|
%assetPath = makeFullPath(AssetDatabase.getAssetFilePath(%assetDef.getAssetId()));
|
||||||
%assetFilename = fileName(%assetPath);
|
%assetFilename = fileName(%assetPath);
|
||||||
|
|
||||||
%newAssetPath = %destination @ "/" @ %assetFilename;
|
%newAssetPath = %destinationPath @ "/" @ %assetFilename;
|
||||||
|
|
||||||
%copiedSuccess = pathCopy(%assetPath, %destination @ "/" @ %assetFilename);
|
%copiedSuccess = pathCopy(%assetPath, %destinationPath @ "/" @ %assetFilename);
|
||||||
|
|
||||||
if(!%copiedSuccess)
|
if(!%copiedSuccess)
|
||||||
return "";
|
return "";
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,13 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
|
||||||
if(%currentMaterial $= "" || %currentMaterial == 0)
|
if(%currentMaterial $= "" || %currentMaterial == 0)
|
||||||
%currentMaterial = %fieldDefaultVal;
|
%currentMaterial = %fieldDefaultVal;
|
||||||
|
|
||||||
|
// TODO?
|
||||||
|
%matName = "";
|
||||||
|
%component = "";
|
||||||
|
%material = "";
|
||||||
|
%accessor = "";
|
||||||
|
%precision = "";
|
||||||
|
|
||||||
%container = new GuiControl() {
|
%container = new GuiControl() {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Profile = "EditorContainerProfile";
|
Profile = "EditorContainerProfile";
|
||||||
|
|
@ -20,7 +27,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
|
||||||
canSave = "0";
|
canSave = "0";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
hovertime = "100";
|
hovertime = "100";
|
||||||
tooltip = %tooltip;
|
tooltip = "";// %tooltip;
|
||||||
tooltipProfile = "EditorToolTipProfile";
|
tooltipProfile = "EditorToolTipProfile";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -35,7 +42,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
|
||||||
canSave = "0";
|
canSave = "0";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
hovertime = "100";
|
hovertime = "100";
|
||||||
tooltip = %tooltip;
|
tooltip = ""; //%tooltip;
|
||||||
tooltipProfile = "EditorToolTipProfile";
|
tooltipProfile = "EditorToolTipProfile";
|
||||||
text = %fieldName;
|
text = %fieldName;
|
||||||
maxLength = "1024";
|
maxLength = "1024";
|
||||||
|
|
@ -121,7 +128,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
|
||||||
canSave = "0";
|
canSave = "0";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
hovertime = "100";
|
hovertime = "100";
|
||||||
tooltip = %tooltip;
|
tooltip = ""; //%tooltip;
|
||||||
tooltipProfile = "EditorToolTipProfile";
|
tooltipProfile = "EditorToolTipProfile";
|
||||||
text = "Mapped to:" SPC %material.mapTo;
|
text = "Mapped to:" SPC %material.mapTo;
|
||||||
maxLength = "1024";
|
maxLength = "1024";
|
||||||
|
|
@ -140,7 +147,7 @@ function GuiInspectorGroup::buildMaterialField(%this, %fieldName, %fieldLabel, %
|
||||||
canSave = "0";
|
canSave = "0";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
hovertime = "100";
|
hovertime = "100";
|
||||||
tooltip = %tooltip;
|
tooltip = "";// %tooltip;
|
||||||
tooltipProfile = "EditorToolTipProfile";
|
tooltipProfile = "EditorToolTipProfile";
|
||||||
maxLength = "1024";
|
maxLength = "1024";
|
||||||
historySize = "0";
|
historySize = "0";
|
||||||
|
|
|
||||||
|
|
@ -201,7 +201,7 @@ function stateMachineFieldList::onSelect(%this)
|
||||||
%index = %this.getParent().fieldID;
|
%index = %this.getParent().fieldID;
|
||||||
|
|
||||||
%oldValue = %this.behavior.stateMachine.getValue(%index);
|
%oldValue = %this.behavior.stateMachine.getValue(%index);
|
||||||
%this.behavior.stateMachine.setValue(%fieldType SPC %oldValue.y);
|
%this.behavior.stateMachine.setValue(%this.fieldType SPC %oldValue.y);
|
||||||
|
|
||||||
%this.getParent().add(%fieldCtrl);
|
%this.getParent().add(%fieldCtrl);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ function GuiInspectorComponentGroup::buildTypeMaskField(%this, %component, %fiel
|
||||||
canSave = "0";
|
canSave = "0";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
hovertime = "100";
|
hovertime = "100";
|
||||||
tooltip = %tooltip;
|
tooltip = "";//%tooltip;
|
||||||
tooltipProfile = "EditorToolTipProfile";
|
tooltipProfile = "EditorToolTipProfile";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -28,7 +28,7 @@ function GuiInspectorComponentGroup::buildTypeMaskField(%this, %component, %fiel
|
||||||
canSave = "0";
|
canSave = "0";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
hovertime = "100";
|
hovertime = "100";
|
||||||
tooltip = %tooltip;
|
tooltip = "";//%tooltip;
|
||||||
tooltipProfile = "EditorToolTipProfile";
|
tooltipProfile = "EditorToolTipProfile";
|
||||||
text = %fieldName;
|
text = %fieldName;
|
||||||
maxLength = "1024";
|
maxLength = "1024";
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,9 @@ function QuickEditComponentList::onHotTrackItem( %this, %itemID )
|
||||||
{
|
{
|
||||||
%name = getField(%componentObj.getComponentField(%i), 0);
|
%name = getField(%componentObj.getComponentField(%i), 0);
|
||||||
|
|
||||||
|
// TODO:
|
||||||
|
%description = "";
|
||||||
|
|
||||||
SuperTooltipDlg.addParam(%name, %description @ "\n");
|
SuperTooltipDlg.addParam(%name, %description @ "\n");
|
||||||
}
|
}
|
||||||
%position = %this.getGlobalPosition();
|
%position = %this.getGlobalPosition();
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
//--- OBJECT WRITE BEGIN ---
|
//--- OBJECT WRITE BEGIN ---
|
||||||
%guiContnt = new GuiControl(ConvexEditorOptions)
|
$guiContnt = new GuiControl(ConvexEditorOptions)
|
||||||
{
|
{
|
||||||
position = "0 0";
|
position = "0 0";
|
||||||
extent = "800 600";
|
extent = "800 600";
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ function ActionCreateDatablock::redo( %this )
|
||||||
%this.editor.selectDatablock( %db );
|
%this.editor.selectDatablock( %db );
|
||||||
%this.editor.flagInspectorAsDirty( true );
|
%this.editor.flagInspectorAsDirty( true );
|
||||||
|
|
||||||
UnlistedDatablocks.remove( %id );
|
UnlistedDatablocks.remove( %db );
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------
|
||||||
|
|
@ -99,7 +99,7 @@ function ActionCreateDatablock::undo( %this )
|
||||||
%this.dbName = %db.name;
|
%this.dbName = %db.name;
|
||||||
%db.name = "";
|
%db.name = "";
|
||||||
|
|
||||||
UnlistedDatablocks.add( %this.db );
|
UnlistedDatablocks.add( %db );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================================
|
//=============================================================================================
|
||||||
|
|
@ -155,5 +155,5 @@ function ActionDeleteDatablock::undo( %this )
|
||||||
|
|
||||||
// Remove from unlisted.
|
// Remove from unlisted.
|
||||||
|
|
||||||
UnlistedDatablocks.remove( %id );
|
UnlistedDatablocks.remove( %db );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -430,7 +430,7 @@ function DbgRemoveBreakPoint(%file, %line)
|
||||||
function DbgDeleteSelectedBreak()
|
function DbgDeleteSelectedBreak()
|
||||||
{
|
{
|
||||||
%selectedBreak = DebuggerBreakPoints.getSelectedId();
|
%selectedBreak = DebuggerBreakPoints.getSelectedId();
|
||||||
%rowNum = DebuggerBreakPoints.getRowNumById(%selectedWatch);
|
%rowNum = DebuggerBreakPoints.getRowNumById(%selectedBreak);
|
||||||
if (%rowNum >= 0) {
|
if (%rowNum >= 0) {
|
||||||
%breakText = DebuggerBreakPoints.getRowText(%rowNum);
|
%breakText = DebuggerBreakPoints.getRowText(%rowNum);
|
||||||
%breakLine = getField(%breakText, 0);
|
%breakLine = getField(%breakText, 0);
|
||||||
|
|
|
||||||
|
|
@ -472,8 +472,6 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
|
||||||
Margin = "0 0 0 -3";
|
Margin = "0 0 0 -3";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -552,8 +550,6 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
|
||||||
Margin = "0 0 0 0";
|
Margin = "0 0 0 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -716,8 +712,6 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
|
||||||
Margin = "0 0 0 -3";
|
Margin = "0 0 0 -3";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -796,8 +790,6 @@ $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
|
||||||
Margin = "0 0 0 0";
|
Margin = "0 0 0 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiInspector(DecalInspector) {
|
new GuiInspector(DecalInspector) {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,6 @@
|
||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
%forestBrushesGroup = new SimGroup( ForestBrushGroup )
|
$forestBrushesGroup = new SimGroup( ForestBrushGroup )
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
@ -233,7 +233,7 @@ function GuiInspectorVariableGroup::buildOptionsSettingField(%this, %fieldName,
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||||
tooltip = %tooltip;
|
tooltip = "";//%tooltip;
|
||||||
text = %fieldDefaultVal;
|
text = %fieldDefaultVal;
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
ownerObject = %ownerObj;
|
ownerObject = %ownerObj;
|
||||||
|
|
@ -492,6 +492,7 @@ function ESettingsWindow::getAssetManagementSettings(%this)
|
||||||
function ESettingsWindow::getAssetEditingSettings(%this)
|
function ESettingsWindow::getAssetEditingSettings(%this)
|
||||||
{
|
{
|
||||||
ImportAssetWindow::reloadImportOptionConfigs();
|
ImportAssetWindow::reloadImportOptionConfigs();
|
||||||
|
%formattedConfigList = "";
|
||||||
|
|
||||||
for(%i=0; %i < ImportAssetWindow.importConfigsList.Count(); %i++)
|
for(%i=0; %i < ImportAssetWindow.importConfigsList.Count(); %i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ function GuiInspectorVariableGroup::buildAssetDependenciesField(%this, %fieldNam
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||||
tooltip = %tooltip;
|
tooltip = "";// %tooltip;
|
||||||
text = %fieldDefaultVal;
|
text = %fieldDefaultVal;
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
ownerObject = %ownerObj;
|
ownerObject = %ownerObj;
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ function GuiInspectorVariableGroup::buildButtonField(%this, %fieldName, %fieldLa
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||||
tooltip = %tooltip;
|
tooltip = "";// %tooltip;
|
||||||
text = %fieldName;
|
text = %fieldName;
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
command = %fieldDataVals;
|
command = %fieldDataVals;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ function GuiInspectorVariableGroup::buildListField(%this, %fieldName, %fieldLabe
|
||||||
canSave = "0";
|
canSave = "0";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
hovertime = "100";
|
hovertime = "100";
|
||||||
tooltip = %tooltip;
|
tooltip = ""; ///%tooltip;
|
||||||
tooltipProfile = "EditorToolTipProfile";
|
tooltipProfile = "EditorToolTipProfile";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@ function GuiInspectorVariableGroup::buildListField(%this, %fieldName, %fieldLabe
|
||||||
canSave = "0";
|
canSave = "0";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
hovertime = "100";
|
hovertime = "100";
|
||||||
tooltip = %tooltip;
|
tooltip = ""; //%tooltip;
|
||||||
tooltipProfile = "EditorToolTipProfile";
|
tooltipProfile = "EditorToolTipProfile";
|
||||||
text = %fieldLabel;
|
text = %fieldLabel;
|
||||||
maxLength = "1024";
|
maxLength = "1024";
|
||||||
|
|
@ -66,7 +66,7 @@ function GuiInspectorVariableGroup::buildListField(%this, %fieldName, %fieldLabe
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||||
tooltip = %tooltip;
|
tooltip = ""; //%tooltip;
|
||||||
text = %fieldDefaultVal;
|
text = %fieldDefaultVal;
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
ownerObject = %ownerObj;
|
ownerObject = %ownerObj;
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ function GuiInspectorVariableGroup::buildRangeField(%this, %fieldName, %fieldLab
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
Command = "$thisControl.onDragComplete();";
|
Command = "$thisControl.onDragComplete();";
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
tooltipprofile = "GuiToolTipProfile";
|
||||||
tooltip = %tooltip;
|
tooltip = ""; //%tooltip;
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
ownerObject = %ownerObj;
|
ownerObject = %ownerObj;
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,8 @@ function GuiEditor::createNewProfile( %this, %name, %copySource )
|
||||||
|
|
||||||
function GuiEditor::getProfileCategory( %this, %profile )
|
function GuiEditor::getProfileCategory( %this, %profile )
|
||||||
{
|
{
|
||||||
|
// TODO
|
||||||
|
%name = "";
|
||||||
if( %this.isDefaultProfile( %name ) )
|
if( %this.isDefaultProfile( %name ) )
|
||||||
return "Default";
|
return "Default";
|
||||||
else if( %profile.category !$= "" )
|
else if( %profile.category !$= "" )
|
||||||
|
|
|
||||||
|
|
@ -364,6 +364,10 @@ function GenericUndoAction::learn(%this, %object)
|
||||||
%oldFieldNames = %this.fieldNames[%object];
|
%oldFieldNames = %this.fieldNames[%object];
|
||||||
%numNewFields = getWordCount(%newFieldNames);
|
%numNewFields = getWordCount(%newFieldNames);
|
||||||
%numOldFields = getWordCount(%oldFieldNames);
|
%numOldFields = getWordCount(%oldFieldNames);
|
||||||
|
|
||||||
|
%newNullFields = "";
|
||||||
|
%oldNullFields = "";
|
||||||
|
|
||||||
// compare the old field list to the new field list.
|
// compare the old field list to the new field list.
|
||||||
// if a field is on the old list that isn't on the new list,
|
// if a field is on the old list that isn't on the new list,
|
||||||
// add it to the newNullFields list.
|
// add it to the newNullFields list.
|
||||||
|
|
|
||||||
|
|
@ -233,8 +233,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -543,9 +541,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -1923,8 +1918,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -2623,8 +2616,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
||||||
Margin = "-1 0 0 0";
|
Margin = "-1 0 0 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -3100,8 +3091,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
||||||
Margin = "-1 0 0 0";
|
Margin = "-1 0 0 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -3373,8 +3362,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
||||||
Margin = "-1 0 0 0";
|
Margin = "-1 0 0 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -4191,8 +4178,6 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
|
||||||
|
|
@ -1496,6 +1496,7 @@ function MaterialEditorGui::updateAnimationFlags(%this)
|
||||||
{
|
{
|
||||||
MaterialEditorGui.setMaterialDirty();
|
MaterialEditorGui.setMaterialDirty();
|
||||||
%single = true;
|
%single = true;
|
||||||
|
%flags = "";
|
||||||
|
|
||||||
if(MaterialEditorPropertiesWindow-->RotationAnimation.getValue() == true)
|
if(MaterialEditorPropertiesWindow-->RotationAnimation.getValue() == true)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ function MeshRoadEditorGui::editNodeDetails( %this )
|
||||||
|
|
||||||
function MeshRoadEditorGui::onBrowseClicked( %this )
|
function MeshRoadEditorGui::onBrowseClicked( %this )
|
||||||
{
|
{
|
||||||
//%filename = RETextureFileCtrl.getText();
|
%filename = RETextureFileCtrl.getText();
|
||||||
|
|
||||||
%dlg = new OpenFileDialog()
|
%dlg = new OpenFileDialog()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -271,8 +271,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -584,8 +582,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -826,8 +822,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -1272,8 +1266,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -1359,7 +1351,7 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
MinExtent = "8 2";
|
MinExtent = "8 2";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
Command = "%particleId = PEE_EmitterParticle2-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle2-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();";
|
Command = "$_particleId = PEE_EmitterParticle2-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle2-->PopUpMenu.setSelected( $_particleId );PE_EmitterEditor.updateParticlesFields();";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
tooltip = "Clear Particle 2 from Emitter";
|
tooltip = "Clear Particle 2 from Emitter";
|
||||||
text = "";
|
text = "";
|
||||||
|
|
@ -1407,7 +1399,7 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
MinExtent = "8 2";
|
MinExtent = "8 2";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
Command = "%particleId = PEE_EmitterParticle3-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle3-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();";
|
Command = "$_particleId = PEE_EmitterParticle3-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle3-->PopUpMenu.setSelected( $_particleId );PE_EmitterEditor.updateParticlesFields();";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
tooltip = "Clear Particle 3 from Emitter";
|
tooltip = "Clear Particle 3 from Emitter";
|
||||||
text = "";
|
text = "";
|
||||||
|
|
@ -1455,7 +1447,7 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
MinExtent = "8 2";
|
MinExtent = "8 2";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
Command = "%particleId = PEE_EmitterParticle4-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle4-->PopUpMenu.setSelected( %particleId );PE_EmitterEditor.updateParticlesFields();";
|
Command = "$_particleId = PEE_EmitterParticle4-->PopUpMenu.findText( \"None\" ); PEE_EmitterParticle4-->PopUpMenu.setSelected( $_particleId );PE_EmitterEditor.updateParticlesFields();";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
tooltip = "Clear Particle 4 from Emitter";
|
tooltip = "Clear Particle 4 from Emitter";
|
||||||
text = "";
|
text = "";
|
||||||
|
|
@ -1479,8 +1471,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -1933,8 +1923,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -2233,8 +2221,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -2518,8 +2504,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -2720,8 +2704,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
@ -2865,8 +2847,6 @@ $guiContent = new GuiWindowCollapseCtrl(PE_Window) {
|
||||||
Margin = "4 4 4 0";
|
Margin = "4 4 4 0";
|
||||||
DragSizable = false;
|
DragSizable = false;
|
||||||
container = true;
|
container = true;
|
||||||
parentRollout = %this.rollout;
|
|
||||||
object = %behavior;
|
|
||||||
|
|
||||||
new GuiStackControl() {
|
new GuiStackControl() {
|
||||||
StackingType = "Vertical";
|
StackingType = "Vertical";
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ function RoadEditorGui::editNodeDetails( %this )
|
||||||
|
|
||||||
function RoadEditorGui::onBrowseClicked( %this )
|
function RoadEditorGui::onBrowseClicked( %this )
|
||||||
{
|
{
|
||||||
//%filename = RETextureFileCtrl.getText();
|
%filename = RETextureFileCtrl.getText();
|
||||||
|
|
||||||
%dlg = new OpenFileDialog()
|
%dlg = new OpenFileDialog()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1439,6 +1439,8 @@ function ShapeEdPropWindow::update_onSequenceBlendChanged( %this, %seqName, %ble
|
||||||
%proxyName = ShapeEditor.getProxyName( %seqName );
|
%proxyName = ShapeEditor.getProxyName( %seqName );
|
||||||
if ( ShapeEditor.shape.getSequenceIndex( %proxyName ) != -1 )
|
if ( ShapeEditor.shape.getSequenceIndex( %proxyName ) != -1 )
|
||||||
{
|
{
|
||||||
|
//TODO
|
||||||
|
%oldBlend = false;
|
||||||
if ( %blend && %oldBlend )
|
if ( %blend && %oldBlend )
|
||||||
ShapeEditor.shape.setSequenceBlend( %proxyName, false, %oldBlendSeq, %oldBlendFrame );
|
ShapeEditor.shape.setSequenceBlend( %proxyName, false, %oldBlendSeq, %oldBlendFrame );
|
||||||
ShapeEditor.shape.setSequenceBlend( %proxyName, %blend, %blendSeq, %blendFrame );
|
ShapeEditor.shape.setSequenceBlend( %proxyName, %blend, %blendSeq, %blendFrame );
|
||||||
|
|
@ -2217,7 +2219,7 @@ function ShapeEdTriggerList::updateItem( %this, %oldFrame, %oldState, %frame, %s
|
||||||
if ( %frame != %oldFrame )
|
if ( %frame != %oldFrame )
|
||||||
{
|
{
|
||||||
%pos = ShapeEdAnimWindow.getTimelineBitmapPos( ShapeEdAnimWindow-->seqIn.getText() + %frame, 2 );
|
%pos = ShapeEdAnimWindow.getTimelineBitmapPos( ShapeEdAnimWindow-->seqIn.getText() + %frame, 2 );
|
||||||
eval( "%ctrl = ShapeEdAnimWindow-->trigger" @ %updatedId @ ";" );
|
%ctrl = eval( "return ShapeEdAnimWindow-->trigger" @ %updatedId @ ";" );
|
||||||
%ctrl.position = %pos SPC "0";
|
%ctrl.position = %pos SPC "0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(ConvexEditorPalette, EditorGuiGroup) {
|
$paletteId = new GuiControl(ConvexEditorPalette, EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(DecalEditorPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(DecalEditorPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(ForestEditorPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(ForestEditorPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(MeshRoadEditorPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(MeshRoadEditorPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(NavEditorPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(NavEditorPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(RiverEditorPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(RiverEditorPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(RoadEditorPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(RoadEditorPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(ShapeEditorPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(ShapeEditorPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(TerrainEditorPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(TerrainEditorPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(TerrainPainterPalette,EditorGuiGroup) {
|
$paletteId = new GuiControl(TerrainPainterPalette,EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%paletteId = new GuiControl(WorldEditorInspectorPalette, EditorGuiGroup) {
|
$paletteId = new GuiControl(WorldEditorInspectorPalette, EditorGuiGroup) {
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
Enabled = "1";
|
Enabled = "1";
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@ function EWToolsPaletteWindow::loadToolsPalettes()
|
||||||
exec( %file );
|
exec( %file );
|
||||||
%paletteGroup = 0;
|
%paletteGroup = 0;
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
%paletteId = 0;
|
||||||
|
|
||||||
%i = %paletteId.getCount();
|
%i = %paletteId.getCount();
|
||||||
for( ; %i != 0; %i--)
|
for( ; %i != 0; %i--)
|
||||||
{
|
{
|
||||||
|
|
@ -49,6 +52,9 @@ function EWToolsPaletteWindow::loadToolsPalettes()
|
||||||
exec( %file );
|
exec( %file );
|
||||||
%paletteGroup = 0;
|
%paletteGroup = 0;
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
%paletteId = 0;
|
||||||
|
|
||||||
%i = %paletteId.getCount();
|
%i = %paletteId.getCount();
|
||||||
for( ; %i != 0; %i--)
|
for( ; %i != 0; %i--)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -288,6 +288,9 @@ function TerrainExportGui::selectFolder( %this )
|
||||||
|
|
||||||
function TerrainExportGui::doOpenDialog( %this, %filter, %callback )
|
function TerrainExportGui::doOpenDialog( %this, %filter, %callback )
|
||||||
{
|
{
|
||||||
|
// TODO
|
||||||
|
%currentFile = "";
|
||||||
|
|
||||||
%dlg = new OpenFolderDialog()
|
%dlg = new OpenFolderDialog()
|
||||||
{
|
{
|
||||||
Title = "Select Export Folder";
|
Title = "Select Export Folder";
|
||||||
|
|
|
||||||
|
|
@ -508,6 +508,8 @@ function TerrainImportGui::acceptSettings( %this )
|
||||||
|
|
||||||
AssetBrowser.newAssetSettings.opacityList = %this-->OpacityLayerTextList;
|
AssetBrowser.newAssetSettings.opacityList = %this-->OpacityLayerTextList;
|
||||||
|
|
||||||
|
%opacityList = %this-->OpacityLayerTextList;
|
||||||
|
|
||||||
for( %i = 0; %i < %opacityList.rowCount(); %i++ )
|
for( %i = 0; %i < %opacityList.rowCount(); %i++ )
|
||||||
{
|
{
|
||||||
%itemText = %opacityList.getRowTextById( %i );
|
%itemText = %opacityList.getRowTextById( %i );
|
||||||
|
|
@ -535,6 +537,9 @@ function TerrainImportGui::cancel( %this )
|
||||||
|
|
||||||
function TerrainImportGui::doOpenDialog( %this, %filter, %callback )
|
function TerrainImportGui::doOpenDialog( %this, %filter, %callback )
|
||||||
{
|
{
|
||||||
|
// TODO
|
||||||
|
%currentFile = "";
|
||||||
|
|
||||||
%dlg = new OpenFileDialog()
|
%dlg = new OpenFileDialog()
|
||||||
{
|
{
|
||||||
Filters = %filter;
|
Filters = %filter;
|
||||||
|
|
|
||||||
|
|
@ -399,7 +399,7 @@ function EditorGui::addToToolsToolbar( %this, %pluginName, %internalName, %bitma
|
||||||
Visible = "1";
|
Visible = "1";
|
||||||
Command = "EditorGui.setEditor(" @ %pluginName @ ");";
|
Command = "EditorGui.setEditor(" @ %pluginName @ ");";
|
||||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||||
ToolTip = %tooltip;
|
ToolTip = "";// %tooltip;
|
||||||
hovertime = "750";
|
hovertime = "750";
|
||||||
bitmap = %bitmap;
|
bitmap = %bitmap;
|
||||||
buttonType = "RadioButton";
|
buttonType = "RadioButton";
|
||||||
|
|
|
||||||
|
|
@ -137,8 +137,7 @@ function EManageSFXParameters::onVisible( %this, %value )
|
||||||
if( %value )
|
if( %value )
|
||||||
{
|
{
|
||||||
// Schedule an update.
|
// Schedule an update.
|
||||||
|
%this.schedule( $SFX_PARAMETERS_UPDATE_INTERVAL, "update" );
|
||||||
%this.schedule( %SFX_PARAMETERS_UPDATE_INTERVAL, "update" );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -770,7 +769,7 @@ function EManageSFXParameters::addParameter( %this, %parameter )
|
||||||
|
|
||||||
// Set the fields to reflect the parameter's current settings.
|
// Set the fields to reflect the parameter's current settings.
|
||||||
|
|
||||||
%ctrl-->valueField.setValue( %paramter.value );
|
%ctrl-->valueField.setValue( %parameter.value );
|
||||||
%ctrl-->rangeMinField.setText( %parameter.range.x );
|
%ctrl-->rangeMinField.setText( %parameter.range.x );
|
||||||
%ctrl-->rangeMaxField.setText( %parameter.range.y );
|
%ctrl-->rangeMaxField.setText( %parameter.range.y );
|
||||||
%ctrl-->defaultField.setValue( %parameter.defaultValue );
|
%ctrl-->defaultField.setValue( %parameter.defaultValue );
|
||||||
|
|
|
||||||
|
|
@ -871,6 +871,7 @@ function EditorToolsMenu::onSelectItem(%this, %id)
|
||||||
{
|
{
|
||||||
%toolName = getField( %this.item[%id], 2 );
|
%toolName = getField( %this.item[%id], 2 );
|
||||||
|
|
||||||
|
%paletteName = "";
|
||||||
EditorGui.setEditor(%toolName, %paletteName );
|
EditorGui.setEditor(%toolName, %paletteName );
|
||||||
|
|
||||||
%this.checkRadioItem(0, %this.getItemCount(), %id);
|
%this.checkRadioItem(0, %this.getItemCount(), %id);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue