Makes the graphics menu in the stock UI mostly functional again

Adds sanity check to editing of gameasset script action in asset browser
Updates module template file
Updates visualizers
Fixes checking of popup menu items
Adds stub for TerrainMaterialAsset
This commit is contained in:
Areloch 2019-08-29 00:22:33 -05:00
parent 07b8619bf3
commit d720eb8ccd
163 changed files with 10289 additions and 711 deletions

View file

@ -21,7 +21,8 @@ function AssetBrowser::editGameObjectAssetScript(%this, %assetDef)
{
%scriptFile = %assetDef.scriptFile;
EditorOpenFileInTorsion(makeFullPath(%scriptFile), 0);
if(%scriptFile !$= "")
EditorOpenFileInTorsion(makeFullPath(%scriptFile), 0);
}
function AssetBrowser::applyInstanceToGameObject(%this, %assetDef)

View file

@ -12,12 +12,12 @@ function @@::initServer(%this)
}
//This is called when the server is created for an actual game/map to be played
function @@::onCreateServer(%this)
function @@::onCreateGameServer(%this)
{
}
//This is called when the server is shut down due to the game/map being exited
function @@::onDestroyServer(%this)
function @@::onDestroyGameServer(%this)
{
}
@ -27,11 +27,11 @@ function @@::initClient(%this)
}
//This is called when a client connects to a server
function @@::onCreateClient(%this)
function @@::onCreateClientConnection(%this)
{
}
//This is called when a client disconnects from a server
function @@::onDestroyClient(%this)
function @@::onDestroyClientConnection(%this)
{
}