mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 19:43:49 +00:00
Parametrize script extension, default to 'tscript'
This commit is contained in:
parent
b8b62292bd
commit
099dd4f1f3
542 changed files with 774 additions and 783 deletions
|
|
@ -28,7 +28,7 @@ $RSSFeed::userAgent = "TorqueGameEngineAdvances/1.1";
|
|||
$RSSFeed::maxNewHeadlines = 10;
|
||||
|
||||
// Load up the helper objects
|
||||
exec( "./RSSStructs.ed.cs" );
|
||||
exec( "./RSSStructs.ed.tscript" );
|
||||
|
||||
function RSSFeedObject::onConnected(%this)
|
||||
{
|
||||
|
|
@ -93,7 +93,7 @@ function RSSFeedObject::onDisconnect(%this)
|
|||
{
|
||||
// Create collection and load cache.
|
||||
%ret = constructRSSHeadlineCollection();
|
||||
%ret.loadFromFile( "RSSCache.cs" );
|
||||
%ret.loadFromFile( "RSSCache.tscript" );
|
||||
|
||||
// Ok, we have a full buffer now, hopefully. Let's process it.
|
||||
//echo(" - Got " @ $RSSFeed::lineCount @ " lines.");
|
||||
|
|
@ -137,7 +137,7 @@ function RSSFeedObject::onDisconnect(%this)
|
|||
eval( %this._callback @ "(" @ %params @ ");" );
|
||||
}
|
||||
|
||||
%ret.writeToFile( "RSSCache.cs", false );
|
||||
%ret.writeToFile( "RSSCache.tscript", false );
|
||||
}
|
||||
|
||||
function RSSUpdate::initialize( %callback )
|
||||
|
|
@ -23,13 +23,13 @@
|
|||
function loadDirectory(%path, %type, %dsoType)
|
||||
{
|
||||
if( %type $= "" )
|
||||
%type = "ed.cs";
|
||||
%type = "ed.tscript";
|
||||
if( %dsoType $= "" )
|
||||
%dsoType = "edso";
|
||||
|
||||
%cspath = %path @ "/*." @ %type;
|
||||
|
||||
// Because in a shipping version there will be no .cs files, we can't just
|
||||
// Because in a shipping version there will be no .tscript files, we can't just
|
||||
// find all the cs files and exec them.
|
||||
|
||||
// First we find all the scripts and compile them if there are any
|
||||
|
|
@ -37,7 +37,7 @@ function GuiFormManager::InitLayouts( %libraryName, %layoutName, %layoutObj )
|
|||
}
|
||||
|
||||
// Load up all Layouts in the layout base path.
|
||||
loadDirectory( %libraryObj.basePath, "cs", "dso" );
|
||||
loadDirectory( %libraryObj.basePath, "tscript", "dso" );
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -77,7 +77,7 @@ function GuiFormManager::RegisterLayout( %libraryName, %layoutName, %layoutObj )
|
|||
layoutName = %layoutName;
|
||||
layoutLibrary = %libraryObj;
|
||||
layoutObj = %layoutObj;
|
||||
layoutFile = %libraryObj.basePath @ %layoutName @ ".cs";
|
||||
layoutFile = %libraryObj.basePath @ %layoutName @ ".tscript";
|
||||
};
|
||||
|
||||
// Tag Layout Object Properly so it can reset itself.
|
||||
|
|
@ -192,7 +192,7 @@ function GuiFormManager::SaveLayout( %library, %layoutName, %newName )
|
|||
// Do any form layout specifics saving.
|
||||
GuiFormManager::SaveLayoutContent( %layoutObjRef.layoutObj );
|
||||
|
||||
%newFile = %libraryObj.basePath @ "/" @ %newName @ ".cs";
|
||||
%newFile = %libraryObj.basePath @ "/" @ %newName @ ".tscript";
|
||||
if( %newName $= "" )
|
||||
{
|
||||
%newName = %layoutObjRef.layoutName;
|
||||
Loading…
Add table
Add a link
Reference in a new issue