mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Updates the basegame template as well.
This commit is contained in:
parent
eb5af65daf
commit
7f043c49e7
1 changed files with 0 additions and 46 deletions
|
|
@ -304,36 +304,6 @@ function EWCreatorWindow::navigate( %this, %address )
|
||||||
%this.addShapeIcon( %obj );
|
%this.addShapeIcon( %obj );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Add a separate folder for Game Objects
|
|
||||||
if(isClass("Entity"))
|
|
||||||
{
|
|
||||||
if(%address $= "")
|
|
||||||
{
|
|
||||||
%this.addFolderIcon("GameObjects");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//find all GameObjectAssets
|
|
||||||
%assetQuery = new AssetQuery();
|
|
||||||
if(!AssetDatabase.findAssetType(%assetQuery, "GameObjectAsset"))
|
|
||||||
return 0; //if we didn't find ANY, just exit
|
|
||||||
|
|
||||||
%count = %assetQuery.getCount();
|
|
||||||
|
|
||||||
for(%i=0; %i < %count; %i++)
|
|
||||||
{
|
|
||||||
%assetId = %assetQuery.getAsset(%i);
|
|
||||||
|
|
||||||
%gameObjectAsset = AssetDatabase.acquireAsset(%assetId);
|
|
||||||
|
|
||||||
if(isFile(%gameObjectAsset.TAMLFilePath))
|
|
||||||
{
|
|
||||||
%this.addGameObjectIcon( %gameObjectAsset.gameObjectName );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( %this.tab $= "Meshes" )
|
if ( %this.tab $= "Meshes" )
|
||||||
|
|
@ -768,22 +738,6 @@ function EWCreatorWindow::addPrefabIcon( %this, %fullPath )
|
||||||
%this.contentCtrl.addGuiControl( %ctrl );
|
%this.contentCtrl.addGuiControl( %ctrl );
|
||||||
}
|
}
|
||||||
|
|
||||||
function EWCreatorWindow::addGameObjectIcon( %this, %gameObjectName )
|
|
||||||
{
|
|
||||||
%ctrl = %this.createIcon();
|
|
||||||
|
|
||||||
%ctrl.altCommand = "spawnGameObject( \"" @ %gameObjectName @ "\", true );";
|
|
||||||
%ctrl.iconBitmap = EditorIconRegistry::findIconByClassName( "Prefab" );
|
|
||||||
%ctrl.text = %gameObjectName;
|
|
||||||
%ctrl.class = "CreatorGameObjectIconBtn";
|
|
||||||
%ctrl.tooltip = "Spawn the " @ %gameObjectName @ " GameObject";
|
|
||||||
|
|
||||||
%ctrl.buttonType = "radioButton";
|
|
||||||
%ctrl.groupNum = "-1";
|
|
||||||
|
|
||||||
%this.contentCtrl.addGuiControl( %ctrl );
|
|
||||||
}
|
|
||||||
|
|
||||||
function CreatorPopupMenu::onSelect( %this, %id, %text )
|
function CreatorPopupMenu::onSelect( %this, %id, %text )
|
||||||
{
|
{
|
||||||
%split = strreplace( %text, "/", " " );
|
%split = strreplace( %text, "/", " " );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue