lotsa fixes.

This commit is contained in:
Jeff Hutchinson 2021-05-04 21:18:15 -04:00
parent db047275f1
commit 6f7fdca87d
178 changed files with 230 additions and 245 deletions

View file

@ -374,7 +374,7 @@ void GameConnection::onConnectionEstablished(bool isInitiator)
const char *argv[MaxConnectArgs + 2]; const char *argv[MaxConnectArgs + 2];
argv[0] = "onConnect"; argv[0] = "onConnect";
argv[1] = NULL; // Filled in later argv[1] = getIdString();
for(U32 i = 0; i < mConnectArgc; i++) for(U32 i = 0; i < mConnectArgc; i++)
argv[i + 2] = mConnectArgv[i]; argv[i + 2] = mConnectArgv[i];
// NOTE: Need to fallback to Con::execute() as IMPLEMENT_CALLBACK does not // NOTE: Need to fallback to Con::execute() as IMPLEMENT_CALLBACK does not
@ -494,33 +494,23 @@ bool GameConnection::readConnectRequest(BitStream *stream, const char **errorStr
*errorString = "CR_INVALID_ARGS"; *errorString = "CR_INVALID_ARGS";
return false; return false;
} }
char buffer[256];
Net::addressToString(getNetAddress(), buffer);
ConsoleValue connectArgv[MaxConnectArgs + 3]; ConsoleValue connectArgv[MaxConnectArgs + 3];
ConsoleValue connectArgvValue[MaxConnectArgs + 3];
// TODO(JTH): Fix pls.
AssertISV(false, "TODO: FIX CONSOLE VALUE");
return false;
/*
for(U32 i = 0; i < mConnectArgc+3; i++)
{
connectArgv[i].value = &connectArgvValue[i];
connectArgvValue[i].init();
}
for(U32 i = 0; i < mConnectArgc; i++) for(U32 i = 0; i < mConnectArgc; i++)
{ {
char argString[256]; char argString[256];
stream->readString(argString); stream->readString(argString);
mConnectArgv[i] = dStrdup(argString); mConnectArgv[i] = dStrdup(argString);
connectArgv[i + 3] = mConnectArgv[i]; connectArgv[i + 3].setString(argString);
} }
connectArgvValue[0].setStackStringValue("onConnectRequest");
connectArgvValue[1].setIntValue(0); connectArgv[0].setStringTableEntry("onConnectRequest");
char buffer[256]; connectArgv[1].setInt(0);
Net::addressToString(getNetAddress(), buffer); connectArgv[2].setString(buffer);
connectArgvValue[2].setStackStringValue(buffer);
// NOTE: Cannot convert over to IMPLEMENT_CALLBACK as it has variable args. // NOTE: Cannot convert over to IMPLEMENT_CALLBACK as it has variable args.
const char *ret = Con::execute(this, mConnectArgc + 3, connectArgv); const char *ret = Con::execute(this, mConnectArgc + 3, connectArgv);
@ -530,7 +520,6 @@ bool GameConnection::readConnectRequest(BitStream *stream, const char **errorStr
return false; return false;
} }
return true; return true;
*/
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------

View file

@ -292,7 +292,7 @@ public:
TORQUE_FORCEINLINE void setString(const char* val) TORQUE_FORCEINLINE void setString(const char* val)
{ {
setString(val, dStrlen(val)); setString(val, val != NULL ? dStrlen(val) : 0);
} }
TORQUE_FORCEINLINE void setString(const char* val, S32 len) TORQUE_FORCEINLINE void setString(const char* val, S32 len)

View file

@ -38,7 +38,7 @@ SimConsoleEvent::SimConsoleEvent(S32 argc, ConsoleValue *argv, bool onObject)
{ {
if (argv) if (argv)
{ {
mArgv->setString(argv[i].getString()); mArgv[i].setString(argv[i].getString());
} }
} }
} }

View file

@ -143,6 +143,7 @@ function parseMissionGroupForIds( %className, %childGroup )
if(!isObject(%currentGroup)) if(!isObject(%currentGroup))
return ""; return "";
%classIds = "";
for(%i = 0; %i < (%currentGroup).getCount(); %i++) for(%i = 0; %i < (%currentGroup).getCount(); %i++)
{ {
if( (%currentGroup).getObject(%i).getClassName() $= %className ) if( (%currentGroup).getObject(%i).getClassName() $= %className )

View file

@ -193,6 +193,9 @@ function resetMission()
clearServerPaths(); clearServerPaths();
// TODO: Is this right?
%client = ClientGroup.getObject(0);
// Inform the game code we're resetting. // Inform the game code we're resetting.
%hasGameMode = callGamemodeFunction("onMissionReset", %client); %hasGameMode = callGamemodeFunction("onMissionReset", %client);
} }

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ConsoleDlg) { $guiContent = new GuiControl(ConsoleDlg) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 8"; minExtent = "8 8";

View file

@ -62,7 +62,7 @@ function ConsoleEntry::eval()
&& !startsWith(%text, "for(") && !startsWith(%text, "for(")
&& !startsWith(%text, "switch(") && !startsWith(%text, "switch(")
&& !startsWith(%text, "switch$(")) && !startsWith(%text, "switch$("))
eval("%result = " @ %text); %result = eval("return" SPC %text);
else else
eval(%text); eval(%text);
$Con::warnVoidAssignment = %oldWarnVoidAssignment; $Con::warnVoidAssignment = %oldWarnVoidAssignment;

View file

@ -59,7 +59,7 @@ function PostFXManager::loadPresetFile()
{ {
//Show the dialog and set the flag //Show the dialog and set the flag
getLoadFilename($PostFXManager::fileFilter, "PostFXManager::loadPresetHandler"); getLoadFilename($PostFXManager::fileFilter, "PostFXManager::loadPresetHandler");
$PostFXManager::currentPreset = $Tools::FileDialogs::LastFilePath(); $PostFXManager::currentPreset = $Tools::FileDialogs::LastFilePath;
} }
function PostFXManager::loadPresetHandler( %filename ) function PostFXManager::loadPresetHandler( %filename )

View file

@ -15,7 +15,7 @@ function findGameObject(%name)
//%assetName = AssetDatabase.getAssetName(%assetId); //%assetName = AssetDatabase.getAssetName(%assetId);
if(%assetId $= %name) if(%assetId $= %name)
{ {
%gameObjectAsset = AssetDatabase.acquireAsset(%assetId); %gameObjectAsset = AssetDatabase.acquireAsset(%assetId);
@ -47,7 +47,7 @@ function spawnGameObject(%name, %addToScene)
%go.setHidden(false); %go.setHidden(false);
%go.setScopeAlways(); %go.setScopeAlways();
if(%addToMissionGroup == true) //save instance when saving level if(%addToScene == true) //save instance when saving level
getScene(0).add(%go); getScene(0).add(%go);
else // clear instance on level exit else // clear instance on level exit
MissionCleanup.add(%go); MissionCleanup.add(%go);

View file

@ -524,7 +524,9 @@ function loadDir(%dir)
function loadDirs(%dirPath) function loadDirs(%dirPath)
{ {
%dirPath = nextToken(%dirPath, token, ";"); %dirPath = nextToken(%dirPath, "$token", ";");
%token = $token;
if (%dirPath !$= "") if (%dirPath !$= "")
loadDirs(%dirPath); loadDirs(%dirPath);

View file

@ -67,28 +67,28 @@ function parseArgs()
$isDedicated = true; $isDedicated = true;
$Server::Dedicated = true; $Server::Dedicated = true;
enableWinConsole(true); enableWinConsole(true);
$argUsed[%i]++; $argUsed[$i]++;
//-------------------- //--------------------
case "-mission": case "-mission":
$argUsed[%i]++; $argUsed[$i]++;
if ($hasNextArg) if ($hasNextArg)
{ {
$missionArg = $nextArg; $missionArg = $nextArg;
$argUsed[%i+1]++; $argUsed[$i+1]++;
%i++; $i++;
} }
else else
error("Error: Missing Command Line argument. Usage: -mission <filename>"); error("Error: Missing Command Line argument. Usage: -mission <filename>");
//-------------------- //--------------------
case "-connect": case "-connect":
$argUsed[%i]++; $argUsed[$i]++;
if ($hasNextArg) if ($hasNextArg)
{ {
$JoinGameAddress = $nextArg; $JoinGameAddress = $nextArg;
$argUsed[%i+1]++; $argUsed[$i+1]++;
%i++; $i++;
} }
else else
error("Error: Missing Command Line argument. Usage: -connect <ip_address>"); error("Error: Missing Command Line argument. Usage: -connect <ip_address>");
@ -271,9 +271,9 @@ function parseArgs()
{ {
$levelToLoad = $nextArg @ " "; $levelToLoad = $nextArg @ " ";
for(%i = $i + 2; %i < $Game::argc; %i++) for(%j = $i + 2; %j < $Game::argc; %j++)
{ {
$arg = $Game::argv[%i]; $arg = $Game::argv[%j];
%hasExt = strpos($arg, ".mis"); %hasExt = strpos($arg, ".mis");
if(%hasExt == -1) if(%hasExt == -1)
@ -329,30 +329,30 @@ function parseArgs()
case "-fullscreen": case "-fullscreen":
$cliFullscreen = true; $cliFullscreen = true;
$argUsed[%i]++; $argUsed[$i]++;
case "-windowed": case "-windowed":
$cliFullscreen = false; $cliFullscreen = false;
$argUsed[%i]++; $argUsed[$i]++;
case "-openGL": case "-openGL":
$pref::Video::displayDevice = "OpenGL"; $pref::Video::displayDevice = "OpenGL";
$argUsed[%i]++; $argUsed[$i]++;
case "-directX": case "-directX":
$pref::Video::displayDevice = "D3D"; $pref::Video::displayDevice = "D3D";
$argUsed[%i]++; $argUsed[$i]++;
case "-autoVideo": case "-autoVideo":
$pref::Video::displayDevice = ""; $pref::Video::displayDevice = "";
$argUsed[%i]++; $argUsed[$i]++;
case "-prefs": case "-prefs":
$argUsed[%i]++; $argUsed[$i]++;
if ($hasNextArg) { if ($hasNextArg) {
exec($nextArg, true, true); exec($nextArg, true, true);
$argUsed[%i+1]++; $argUsed[$i+1]++;
%i++; $i++;
} }
else else
error("Error: Missing Command Line argument. Usage: -prefs <path/script." @ $TorqueScriptFileExtension @ ">"); error("Error: Missing Command Line argument. Usage: -prefs <path/script." @ $TorqueScriptFileExtension @ ">");

View file

@ -1,8 +1,5 @@
function callGamemodeFunction(%gameModeFuncName, %arg0, %arg1, %arg2, %arg3, %arg4, %arg5, %arg6) function callGamemodeFunction(%gameModeFuncName, %arg0, %arg1, %arg2, %arg3, %arg4, %arg5, %arg6)
{ {
if(%data !$= "")
%data = "\""@%data@"\"";
%activeSceneCount = getSceneCount(); %activeSceneCount = getSceneCount();
%hasGameMode = 0; %hasGameMode = 0;

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ExampleGUI) $guiContent = new GuiControl(ExampleGUI)
{ {
position = "0 0"; position = "0 0";
extent = "100 100"; extent = "100 100";

View file

@ -25,7 +25,7 @@ $sceneLighting::cacheSize = 20000;
$sceneLighting::purgeMethod = "lastCreated"; $sceneLighting::purgeMethod = "lastCreated";
$sceneLighting::cacheLighting = 1; $sceneLighting::cacheLighting = 1;
$pref::Video::displayDevice = "D3D11"; $pref::Video::displayDevice = ($platform $= "windows") ? "D3D11" : "OpenGL";
$pref::Video::disableVerticalSync = 1; $pref::Video::disableVerticalSync = 1;
$pref::Video::defaultFenceCount = 0; $pref::Video::defaultFenceCount = 0;
$pref::Video::screenShotSession = 0; $pref::Video::screenShotSession = 0;

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GameTSCtrl(PlayGui) { $guiContent = new GameTSCtrl(PlayGui) {
cameraZRot = "0"; cameraZRot = "0";
forceFOV = "0"; forceFOV = "0";
reflectPriority = "1"; reflectPriority = "1";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(IODropdownDlg) { $guiContent = new GuiControl(IODropdownDlg) {
profile = "GuiDefaultProfile"; profile = "GuiDefaultProfile";
horizSizing = "width"; horizSizing = "width";
vertSizing = "height"; vertSizing = "height";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(recordingsDlg) { $guiContent = new GuiControl(recordingsDlg) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 8"; minExtent = "8 8";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ChooseLevelDlg) { $guiContent = new GuiControl(ChooseLevelDlg) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 8"; minExtent = "8 8";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(GuiMusicPlayer) { $guiContent = new GuiControl(GuiMusicPlayer) {
isContainer = "1"; isContainer = "1";
Profile = "GuiWindowProfile"; Profile = "GuiWindowProfile";
HorizSizing = "right"; HorizSizing = "right";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(JoinServerMenu) { $guiContent = new GuiControl(JoinServerMenu) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiChunkedBitmapCtrl(LoadingGui) { $guiContent = new GuiChunkedBitmapCtrl(LoadingGui) {
bitmap = "data/ui/images/background-dark.png"; bitmap = "data/ui/images/background-dark.png";
useVariable = "0"; useVariable = "0";
tile = "0"; tile = "0";

View file

@ -1,7 +1,7 @@
exec( "tools/gui/profiles.ed.tscript" ); exec( "tools/gui/profiles.ed.tscript" );
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiChunkedBitmapCtrl(MainMenuGui) { $guiContent = new GuiChunkedBitmapCtrl(MainMenuGui) {
bitmap = "data/ui/images/background-dark.png"; bitmap = "data/ui/images/background-dark.png";
useVariable = "0"; useVariable = "0";
tile = "0"; tile = "0";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(MessageBoxDlg) { $guiContent = new GuiControl(MessageBoxDlg) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 8"; minExtent = "8 8";

View file

@ -73,7 +73,7 @@ new GuiControlProfile (NetGraphPacketLossProfile)
}; };
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(NetGraphGui) { $guiContent = new GuiControl(NetGraphGui) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(OptionsDlg) { $guiContent = new GuiControl(OptionsDlg) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 8"; minExtent = "8 8";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(OptionsMenu) { $guiContent = new GuiControl(OptionsMenu) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -276,11 +276,8 @@ function OptionsMenu::applyDisplaySettings(%this)
// Change the device. // Change the device.
if ( %newDevice !$= $pref::Video::displayDevice ) if ( %newDevice !$= $pref::Video::displayDevice )
{ {
if ( %testNeedApply )
return true;
$pref::Video::displayDevice = %newDevice; $pref::Video::displayDevice = %newDevice;
if( %newAdapter !$= getDisplayDeviceInformation() ) if( %newDevice !$= getDisplayDeviceInformation() )
MessageBoxOK( "Change requires restart", "Please restart the game for a display device change to take effect." ); MessageBoxOK( "Change requires restart", "Please restart the game for a display device change to take effect." );
$changingDisplayDevice = %newDevice; $changingDisplayDevice = %newDevice;
@ -368,10 +365,7 @@ function OptionsMenu::applyGraphicsSettings(%this)
// Check the anisotropic filtering. // Check the anisotropic filtering.
%level = OptionsMenuSettingsList.getCurrentOption(10); %level = OptionsMenuSettingsList.getCurrentOption(10);
if ( %level != $pref::Video::defaultAnisotropy ) if ( %level != $pref::Video::defaultAnisotropy )
{ {
if ( %testNeedApply )
return true;
$pref::Video::defaultAnisotropy = %level; $pref::Video::defaultAnisotropy = %level;
} }
@ -418,9 +412,6 @@ function updateDisplaySettings()
if ( %newMode !$= $pref::Video::mode || %newDeviceID != $pref::Video::deviceId || if ( %newMode !$= $pref::Video::mode || %newDeviceID != $pref::Video::deviceId ||
%newVsync != $pref::Video::disableVerticalSync || %newDeviceMode != $pref::Video::deviceMode) %newVsync != $pref::Video::disableVerticalSync || %newDeviceMode != $pref::Video::deviceMode)
{ {
if ( %testNeedApply )
return true;
//****Edge Case Hack //****Edge Case Hack
// If we're in fullscreen mode and switching to a different monitor at the // If we're in fullscreen mode and switching to a different monitor at the
// same resolution and maintaining fullscreen, GFX...WindowTarget::resetMode() // same resolution and maintaining fullscreen, GFX...WindowTarget::resetMode()
@ -433,7 +424,7 @@ function updateDisplaySettings()
$pref::Video::deviceId = %newDeviceID; $pref::Video::deviceId = %newDeviceID;
$pref::Video::deviceMode = $Video::ModeBorderless; $pref::Video::deviceMode = $Video::ModeBorderless;
%tmpModeStr = Canvas.getMonitorMode(%newDeviceID, 0); %tmpModeStr = Canvas.getMonitorMode(%newDeviceID, 0);
Canvas.setVideoMode(%tmpModeStr.x, %tmpModeStr.y, false, 32, getWord(%tmpModeStr, $WORD::REFRESH), %aa); Canvas.setVideoMode(%tmpModeStr.x, %tmpModeStr.y, false, 32, getWord(%tmpModeStr, $WORD::REFRESH), %newFSAA);
} }
$pref::Video::mode = %newMode; $pref::Video::mode = %newMode;
@ -459,6 +450,8 @@ function OptionsMenu::populateAudioSettingsList(%this)
%buffer = sfxGetAvailableDevices(); %buffer = sfxGetAvailableDevices();
%count = getRecordCount( %buffer ); %count = getRecordCount( %buffer );
%audioDriverList = ""; %audioDriverList = "";
%audioProviderList = "";
%audioDeviceList = "";
$currentAudioProvider = $currentAudioProvider $= "" ? $pref::SFX::provider : $currentAudioProvider; $currentAudioProvider = $currentAudioProvider $= "" ? $pref::SFX::provider : $currentAudioProvider;

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(PauseMenu) { $guiContent = new GuiControl(PauseMenu) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ProfilerGui) { $guiContent = new GuiControl(ProfilerGui) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -101,7 +101,7 @@ function showMetics(%var)
GlobalActionMap.bind(keyboard, "ctrl F2", showMetics); GlobalActionMap.bind(keyboard, "ctrl F2", showMetics);
%guiContent = new GuiControl(FrameOverlayGui) { $guiContent = new GuiControl(FrameOverlayGui) {
profile = "GuiModelessDialogProfile"; profile = "GuiModelessDialogProfile";
horizSizing = "right"; horizSizing = "right";
vertSizing = "bottom"; vertSizing = "bottom";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(RemapConfirmDlg) { $guiContent = new GuiControl(RemapConfirmDlg) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 8"; minExtent = "8 8";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(RemapDlg) { $guiContent = new GuiControl(RemapDlg) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 8"; minExtent = "8 8";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiFadeinBitmapCtrl(StartupGui) { $guiContent = new GuiFadeinBitmapCtrl(StartupGui) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Enabled = "1"; Enabled = "1";
isContainer = "1"; isContainer = "1";

View file

@ -37,9 +37,8 @@ else
//If nothing else set a main menu, try to do so now //If nothing else set a main menu, try to do so now
if(!isObject(Canvas.getContent())) if(!isObject(Canvas.getContent()))
{ {
%mainMenuGUI = ProjectSettings.value("UI/mainMenuName"); if (isObject( ProjectSettings.value("UI/mainMenuName") ))
if (isObject( %mainMenuGUI )) Canvas.setContent( ProjectSettings.value("UI/mainMenuName") );
Canvas.setContent( %mainMenuGUI );
} }
} }

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiContainer(NewEditorGui) { $guiContent = new GuiContainer(NewEditorGui) {
margin = "0 0 0 0"; margin = "0 0 0 0";
padding = "0 0 0 0"; padding = "0 0 0 0";
anchorTop = "1"; anchorTop = "1";

View file

@ -3,7 +3,7 @@
// Copyright (C) - Violent Tulip // Copyright (C) - Violent Tulip
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
%guiContent = new GuiControl(VPathEditorToolbar) $guiContent = new GuiControl(VPathEditorToolbar)
{ {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
internalName = "VPathEditorToolbar"; internalName = "VPathEditorToolbar";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(VerveEditorGui) { $guiContent = new GuiControl(VerveEditorGui) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Enabled = "1"; Enabled = "1";
isContainer = "1"; isContainer = "1";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(VerveEditorGroupBuilderGUI) { $guiContent = new GuiControl(VerveEditorGroupBuilderGUI) {
isContainer = "1"; isContainer = "1";
Profile = "GuiDefaultProfile"; Profile = "GuiDefaultProfile";
HorizSizing = "right"; HorizSizing = "right";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(VerveEditorImportPathNodesGUI) { $guiContent = new GuiControl(VerveEditorImportPathNodesGUI) {
isContainer = "1"; isContainer = "1";
Profile = "GuiDefaultProfile"; Profile = "GuiDefaultProfile";
HorizSizing = "right"; HorizSizing = "right";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(VerveEditorPreferenceGui) { $guiContent = new GuiControl(VerveEditorPreferenceGui) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
isContainer = "1"; isContainer = "1";
Profile = "GuiDefaultProfile"; Profile = "GuiDefaultProfile";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetImportConfigEditor) { $guiContent = new GuiControl(AssetImportConfigEditor) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(GameObjectCreator) { $guiContent = new GuiControl(GameObjectCreator) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_AddModule) { $guiContent = new GuiControl(AssetBrowser_AddModule) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_AddPackage) { $guiContent = new GuiControl(AssetBrowser_AddPackage) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser) { $guiContent = new GuiControl(AssetBrowser) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetImportCtrl) { $guiContent = new GuiControl(AssetImportCtrl) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowserImportLog) { $guiContent = new GuiControl(AssetBrowserImportLog) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_assetNameEdit) { $guiContent = new GuiControl(AssetBrowser_assetNameEdit) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetPreviewButtonsTemplate) { $guiContent = new GuiControl(AssetPreviewButtonsTemplate) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(CreateNewCollectionSetCtrl) { $guiContent = new GuiControl(CreateNewCollectionSetCtrl) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_editAsset) { $guiContent = new GuiControl(AssetBrowser_editAsset) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_editModule) { $guiContent = new GuiControl(AssetBrowser_editModule) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(LooseFileAudit) { $guiContent = new GuiControl(LooseFileAudit) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_newAsset) { $guiContent = new GuiControl(AssetBrowser_newAsset) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_newComponentAsset) { $guiContent = new GuiControl(AssetBrowser_newComponentAsset) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_newFolder) { $guiContent = new GuiControl(AssetBrowser_newFolder) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_SelectModule) { $guiContent = new GuiControl(AssetBrowser_SelectModule) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssetBrowser_SelectPackage) { $guiContent = new GuiControl(AssetBrowser_SelectPackage) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(SelectAssetPath) { $guiContent = new GuiControl(SelectAssetPath) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(@@) $guiContent = new GuiControl(@@)
{ {
position = "0 0"; position = "0 0";
extent = "100 100"; extent = "100 100";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(TypeMaskFieldGui) { $guiContent = new GuiControl(TypeMaskFieldGui) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,4 +1,4 @@
%guiContent = new GuiControl(SuperTooltipDlg) { $guiContent = new GuiControl(SuperTooltipDlg) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Profile = "GuiTransparentProfileModeless"; Profile = "GuiTransparentProfileModeless";
class = "SuperTooltip"; class = "SuperTooltip";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiConvexEditorCtrl(ConvexEditorGui) { $guiContent = new GuiConvexEditorCtrl(ConvexEditorGui) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Enabled = "1"; Enabled = "1";
isContainer = "1"; isContainer = "1";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ConvexEditorSettingsTab,EditorGuiGroup) { $guiContent = new GuiControl(ConvexEditorSettingsTab,EditorGuiGroup) {
isContainer = "1"; isContainer = "1";
Profile = "ToolsGuiDefaultProfile"; Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right"; HorizSizing = "right";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(convexEditorToolbar, EditorGuiGroup) { $guiContent = new GuiControl(convexEditorToolbar, EditorGuiGroup) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
internalName = ""; internalName = "";
isContainer = "1"; isContainer = "1";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(DatablockEditorCreatePrompt,EditorGuiGroup) { $guiContent = new GuiControl(DatablockEditorCreatePrompt,EditorGuiGroup) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl() { $guiContent = new GuiControl() {
isContainer = "1"; isContainer = "1";
Profile = "ToolsGuiDefaultProfile"; Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right"; HorizSizing = "right";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl() { $guiContent = new GuiControl() {
isContainer = "1"; isContainer = "1";
Profile = "ToolsGuiDefaultProfile"; Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right"; HorizSizing = "right";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(DebuggerBreakConditionDlg, EditorGuiGroup) { $guiContent = new GuiControl(DebuggerBreakConditionDlg, EditorGuiGroup) {
profile = "ToolsGuiDefaultProfile"; profile = "ToolsGuiDefaultProfile";
horizSizing = "right"; horizSizing = "right";
vertSizing = "bottom"; vertSizing = "bottom";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(DebuggerConnectDlg, EditorGuiGroup) { $guiContent = new GuiControl(DebuggerConnectDlg, EditorGuiGroup) {
profile = "ToolsGuiDefaultProfile"; profile = "ToolsGuiDefaultProfile";
horizSizing = "right"; horizSizing = "right";
vertSizing = "bottom"; vertSizing = "bottom";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(DebuggerGui, EditorGuiGroup) { $guiContent = new GuiControl(DebuggerGui, EditorGuiGroup) {
profile = "ToolsGuiWindowProfile"; profile = "ToolsGuiWindowProfile";
horizSizing = "right"; horizSizing = "right";
vertSizing = "bottom"; vertSizing = "bottom";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(DebuggerEditWatchDlg, EditorGuiGroup) { $guiContent = new GuiControl(DebuggerEditWatchDlg, EditorGuiGroup) {
profile = "ToolsGuiDefaultProfile"; profile = "ToolsGuiDefaultProfile";
horizSizing = "right"; horizSizing = "right";
vertSizing = "bottom"; vertSizing = "bottom";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(DebuggerFindDlg, EditorGuiGroup) { $guiContent = new GuiControl(DebuggerFindDlg, EditorGuiGroup) {
profile = "ToolsGuiDefaultProfile"; profile = "ToolsGuiDefaultProfile";
horizSizing = "right"; horizSizing = "right";
vertSizing = "bottom"; vertSizing = "bottom";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(DebuggerWatchDlg, EditorGuiGroup) { $guiContent = new GuiControl(DebuggerWatchDlg, EditorGuiGroup) {
profile = "ToolsGuiDefaultProfile"; profile = "ToolsGuiDefaultProfile";
horizSizing = "right"; horizSizing = "right";
vertSizing = "bottom"; vertSizing = "bottom";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiDecalEditorCtrl(DecalEditorGui) { $guiContent = new GuiDecalEditorCtrl(DecalEditorGui) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Enabled = "1"; Enabled = "1";
isContainer = "1"; isContainer = "1";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ForestEditToolbar,EditorGuiGroup) { $guiContent = new GuiControl(ForestEditToolbar,EditorGuiGroup) {
isContainer = "1"; isContainer = "1";
Profile = "ToolsGuiDefaultProfile"; Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right"; HorizSizing = "right";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new ForestEditorCtrl(ForestEditorGui,EditorGuiGroup) { $guiContent = new ForestEditorCtrl(ForestEditorGui,EditorGuiGroup) {
renderMissionArea = "0"; renderMissionArea = "0";
missionAreaFillColor = "255 0 0 20"; missionAreaFillColor = "255 0 0 20";
missionAreaFrameColor = "255 0 0 128"; missionAreaFrameColor = "255 0 0 128";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(EditorLoadingGui,EditorGuiGroup) { $guiContent = new GuiControl(EditorLoadingGui,EditorGuiGroup) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(EditorSettingsWindow,EditorGuiGroup) { $guiContent = new GuiControl(EditorSettingsWindow,EditorGuiGroup) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(GuiEaseEditDlg,EditorGuiGroup) { $guiContent = new GuiControl(GuiEaseEditDlg,EditorGuiGroup) {
isContainer = "1"; isContainer = "1";
Profile = "ToolsGuiDefaultProfile"; Profile = "ToolsGuiDefaultProfile";
HorizSizing = "right"; HorizSizing = "right";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(AssimpImportDlg,EditorGuiGroup) { $guiContent = new GuiControl(AssimpImportDlg,EditorGuiGroup) {
isContainer = "1"; isContainer = "1";
Profile = "ToolsGuiDefaultProfile"; Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width"; HorizSizing = "width";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ColladaImportDlg,EditorGuiGroup) { $guiContent = new GuiControl(ColladaImportDlg,EditorGuiGroup) {
isContainer = "1"; isContainer = "1";
Profile = "ToolsGuiDefaultProfile"; Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width"; HorizSizing = "width";
@ -1754,8 +1754,8 @@ function convertColladaModels(%pattern)
function showImportDialog(%shapePath, %cmd) function showImportDialog(%shapePath, %cmd)
{ {
%this.path = %shapePath; ColladaImportDlg.path = %shapePath;
%this.cmd = %cmd; ColladaImportDlg.cmd = %cmd;
if ( fileExt(%shapePath) $= ".dts" || fileExt(%shapePath) $= ".dsq" if ( fileExt(%shapePath) $= ".dts" || fileExt(%shapePath) $= ".dsq"
|| fileExt(%shapePath) $= ".dae" || fileExt(%shapePath) $= ".kmz" ) || fileExt(%shapePath) $= ".dae" || fileExt(%shapePath) $= ".kmz" )

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiColorPickerCtrl(ColorPickerDlg,EditorGuiGroup) { $guiContent = new GuiColorPickerCtrl(ColorPickerDlg,EditorGuiGroup) {
displayMode = "Dropper"; // this makes the background visible displayMode = "Dropper"; // this makes the background visible
actionOnMove = "1"; actionOnMove = "1";
position = "0 0"; position = "0 0";

View file

@ -1,4 +1,4 @@
%guiContent = new GuiControl(CubemapEditor) { $guiContent = new GuiControl(CubemapEditor) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Enabled = "1"; Enabled = "1";
isContainer = "1"; isContainer = "1";

View file

@ -255,8 +255,7 @@ function FileDialogOkButton::onClick( %this )
// Callback // Callback
eval( %this.parent.SuccessCallback @ "(\"" @ %fullPath @"\");" ); eval( %this.parent.SuccessCallback @ "(\"" @ %fullPath @"\");" );
%this.parent.SuccessCallback = 0;
%parent.SuccessCallback = 0;
//error("Ok"); //error("Ok");

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiWindowCollapseCtrl() { $guiContent = new GuiWindowCollapseCtrl() {
collapseGroup = "-1"; collapseGroup = "-1";
collapseGroupNum = "-1"; collapseGroupNum = "-1";
resizeWidth = "1"; resizeWidth = "1";

View file

@ -37,7 +37,7 @@ function inspectObject( %object )
// Create a new object inspector window. // Create a new object inspector window.
exec( "./guiObjectInspector.ed.gui" ); exec( "./guiObjectInspector.ed.gui" );
if( !isObject( %guiContent) ) if( !isObject( $guiContent) )
{ {
error( "InspectObject: failed to create GUI from 'guiObjectInspector.ed.gui'" ); error( "InspectObject: failed to create GUI from 'guiObjectInspector.ed.gui'" );
return; return;
@ -45,9 +45,9 @@ function inspectObject( %object )
// Initialize the inspector. // Initialize the inspector.
%guiContent.init( %object ); $guiContent.init( %object );
Canvas.getContent().add( %guiContent ); Canvas.getContent().add( $guiContent );
} }
//============================================================================================= //=============================================================================================

View file

@ -778,6 +778,8 @@ function MaterialSelector::buildStaticFilters( %this )
// if you want to add any more containers to staticFilterObjects, here's // if you want to add any more containers to staticFilterObjects, here's
// where to do it // where to do it
%filterArray = MaterialSelector-->filterArray;
%staticFilterContainer = new GuiControl (){ %staticFilterContainer = new GuiControl (){
new GuiContainer(){ new GuiContainer(){
profile = "ToolsGuiDefaultProfile"; profile = "ToolsGuiDefaultProfile";
@ -1366,7 +1368,7 @@ function MaterialSelector::loadMaterialFilters( %this )
// create category and update current material if there is one // create category and update current material if there is one
function MaterialSelector::createFilter( %this, %filter ) function MaterialSelector::createFilter( %this, %filter )
{ {
if( %filter $= %existingFilters ) if( %filter $= "" )
{ {
toolsMessageBoxOK( "Error", "Can not create blank filter."); toolsMessageBoxOK( "Error", "Can not create blank filter.");
return; return;

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(IODropdownDlg) { $guiContent = new GuiControl(IODropdownDlg) {
profile = "GuiDefaultProfile"; profile = "GuiDefaultProfile";
horizSizing = "width"; horizSizing = "width";
vertSizing = "height"; vertSizing = "height";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(toolsMessageBoxOKDlg) { $guiContent = new GuiControl(toolsMessageBoxOKDlg) {
profile = "GuiOverlayProfile"; profile = "GuiOverlayProfile";
horizSizing = "width"; horizSizing = "width";
vertSizing = "height"; vertSizing = "height";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(toolsMessageBoxOKBuyDlg) { $guiContent = new GuiControl(toolsMessageBoxOKBuyDlg) {
profile = "ToolsGuiDefaultProfile"; profile = "ToolsGuiDefaultProfile";
horizSizing = "width"; horizSizing = "width";
vertSizing = "height"; vertSizing = "height";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(toolsMessageBoxOKCancelDlg) { $guiContent = new GuiControl(toolsMessageBoxOKCancelDlg) {
profile = "GuiOverlayProfile"; profile = "GuiOverlayProfile";
horizSizing = "width"; horizSizing = "width";
vertSizing = "height"; vertSizing = "height";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(toolsMessageBoxOKCancelDetailsDlg) { $guiContent = new GuiControl(toolsMessageBoxOKCancelDetailsDlg) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Profile = "GuiOverlayProfile"; Profile = "GuiOverlayProfile";
HorizSizing = "width"; HorizSizing = "width";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(toolsMessageBoxYesNoDlg) { $guiContent = new GuiControl(toolsMessageBoxYesNoDlg) {
profile = "GuiOverlayProfile"; profile = "GuiOverlayProfile";
horizSizing = "width"; horizSizing = "width";
vertSizing = "height"; vertSizing = "height";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(toolsMessageBoxYesNoCancelDlg) { $guiContent = new GuiControl(toolsMessageBoxYesNoCancelDlg) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Profile = "GuiOverlayProfile"; Profile = "GuiOverlayProfile";
HorizSizing = "width"; HorizSizing = "width";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(MessagePopupDlg) { $guiContent = new GuiControl(MessagePopupDlg) {
profile = "GuiDefaultProfile"; profile = "GuiDefaultProfile";
horizSizing = "width"; horizSizing = "width";
vertSizing = "height"; vertSizing = "height";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(postFXEditor) { $guiContent = new GuiControl(postFXEditor) {
position = "0 0"; position = "0 0";
extent = "1920 1200"; extent = "1920 1200";
minExtent = "8 8"; minExtent = "8 8";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(ProfilerGraphGui) { $guiContent = new GuiControl(ProfilerGraphGui) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(RenderTargetVisualizer) { $guiContent = new GuiControl(RenderTargetVisualizer) {
position = "0 0"; position = "0 0";
extent = "1024 768"; extent = "1024 768";
minExtent = "8 2"; minExtent = "8 2";

View file

@ -1,5 +1,5 @@
//--- OBJECT WRITE BEGIN --- //--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(toolsMessageBoxSaveChangesDlg, EditorGuiGroup) { $guiContent = new GuiControl(toolsMessageBoxSaveChangesDlg, EditorGuiGroup) {
canSaveDynamicFields = "0"; canSaveDynamicFields = "0";
Profile = "ToolsGuiDefaultProfile"; Profile = "ToolsGuiDefaultProfile";
HorizSizing = "width"; HorizSizing = "width";

Some files were not shown because too many files have changed in this diff Show more