mirror of
https://github.com/Ragora/TribesReplay.git
synced 2026-04-26 09:55:04 +00:00
v21570: Initial Tribes 2 release.
This commit is contained in:
commit
adad8c0787
477 changed files with 239361 additions and 0 deletions
10
AMDW2KCardProfiles.cs
Normal file
10
AMDW2KCardProfiles.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Explicit card profiles for Windows 2K on AMD architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------
|
||||
addOSCardProfile( "Matrox", "G400", false, true, false);
|
||||
addOSCardProfile( "Matrox", "G450", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, false, true);
|
||||
addOSCardProfile( "3Dlabs", "GLINT R3 PT", false, true, false);
|
||||
addOSCardProfile( "NVIDIA", "GeForce2", true, false, true);
|
||||
16
AMDW98CardProfiles.cs
Normal file
16
AMDW98CardProfiles.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Explicit card profiles for Windows 98 on AMD architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------------------------------------------------------------
|
||||
addOSCardProfile( "Matrox", "G400", false, true, false);
|
||||
addOSCardProfile( "Matrox", "G450", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Banshee", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/3DNow!/ICD (Nov 2 2000)", false, true, false); // Voodoo3
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/3DNow!/ICD (Jan 17 2000)", true, false, true); // Voodoo3 3500 TV
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, true, false);
|
||||
addOSCardProfile( "ATI", "RAGE 128", true, false, true);
|
||||
addOSCardProfile( "ATI", "Radeon", true, true, false);
|
||||
addOSCardProfile( "S3", "Savage2000", true, false, true);
|
||||
addOSCardProfile( "Imagination", "PowerVR KYRO", true, true, false);
|
||||
addOSCardProfile( "3Dlabs", "GLINT R3 PT", true, true, false);
|
||||
16
AMDW98SECardProfiles.cs
Normal file
16
AMDW98SECardProfiles.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Explicit card profiles for Windows 98SE on AMD architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------------------------------------------------------------
|
||||
addOSCardProfile( "Matrox", "G400", false, true, false);
|
||||
addOSCardProfile( "Matrox", "G450", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Banshee", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/3DNow!/ICD (Nov 2 2000)", false, true, false); // Voodoo3
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/3DNow!/ICD (Jan 17 2000)", true, false, true); // Voodoo3 3500 TV
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, true, false);
|
||||
addOSCardProfile( "ATI", "RAGE 128", true, false, true);
|
||||
addOSCardProfile( "ATI", "Radeon", true, true, false);
|
||||
addOSCardProfile( "S3", "Savage2000", true, false, true);
|
||||
addOSCardProfile( "Imagination", "PowerVR KYRO", true, true, false);
|
||||
addOSCardProfile( "3Dlabs", "GLINT R3 PT", true, true, false);
|
||||
16
AMDWMECardProfiles.cs
Normal file
16
AMDWMECardProfiles.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// Explicit card profiles for Windows ME on AMD architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------------------------------------------------------------
|
||||
addOSCardProfile( "Matrox", "G400", false, true, false);
|
||||
addOSCardProfile( "Matrox", "G450", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Banshee", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/3DNow!/ICD (Nov 2 2000)", false, true, false); // Voodoo3
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/3DNow!/ICD (Jan 17 2000)", true, false, true); // Voodoo3 3500 TV
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, true, false);
|
||||
addOSCardProfile( "ATI", "RAGE 128", true, false, true);
|
||||
addOSCardProfile( "ATI", "Radeon", true, true, false);
|
||||
addOSCardProfile( "S3", "Savage2000", true, false, true);
|
||||
addOSCardProfile( "Imagination", "PowerVR KYRO", true, true, false);
|
||||
addOSCardProfile( "3Dlabs", "GLINT R3 PT", true, true, false);
|
||||
35
CardProfiles.cs
Normal file
35
CardProfiles.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// Explicit card profiles
|
||||
//
|
||||
// SafeMode -- forces destruction of rendering context before resolution change
|
||||
// LockArray -- inhibits compiled vertex arrays if available
|
||||
// SubImage -- inhibits glTexSubImage*
|
||||
// FogTexture -- require bound texture for combine extension
|
||||
// NoEnvColor -- card doesn't support texture environment color
|
||||
// ClipHigh -- clip off high resolutions (> 1152x864)
|
||||
// DeleteContext -- delete rendering context (ignored for all OSs except W2K)
|
||||
// TexCompress -- inhibits texture compression if available
|
||||
// InteriorLock -- lock arrays rendering Interiors
|
||||
// SkipFirstFog -- skip first two-pass fog (dumb 3Dfx hack)
|
||||
// Only16 -- inhibit the 32-bit resolutions
|
||||
// NoArraysAlpha -- don't use glDrawArrays with a GL_ALPHA texture
|
||||
// ProFile -- explicit file of graphic settings
|
||||
//
|
||||
// Vendor Renderer SafeMode LockArray SubImage FogTexture NoEnvColor ClipHigh DeleteContext TexCompress InteriorLock SkipFirstFog Only16 NoArraysAlpha ProFile
|
||||
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
addCardProfile("3Dfx", "Banshee", true, true, true, true, true, false, false, true, true, true, false, true, "Voodoo3");
|
||||
addCardProfile("3Dfx", "Voodoo3", true, true, true, true, true, false, true, true, true, true, false, true, "Voodoo3");
|
||||
addCardProfile("3Dfx", "Voodoo4", true, false, true, false, true, false, false, true, true, false, false, false, "Voodoo5");
|
||||
addCardProfile("3Dfx", "Voodoo5", true, false, true, false, true, false, false, true, true, false, false, false, "Voodoo5");
|
||||
addCardProfile("ATI", "RAGE 128 Pro Dual", true, true, true, true, true, false, true, true, true, false, true, false, "Rage128");
|
||||
addCardProfile("ATI", "RAGE 128", true, true, true, true, true, false, true, true, true, false, false, false, "Rage128");
|
||||
addCardProfile("NVIDIA", "RIVA TNT/", true, true, true, false, false, true, true, true, false, false, false, false, "TNT");
|
||||
addCardProfile("NVIDIA", "RIVA TNT2/", true, true, true, false, false, false, true, true, false, false, false, false, "TNT");
|
||||
addCardProfile("NVIDIA", "*", true, true, true, false, false, false, true, true, true, false, false, false, "GeForce");
|
||||
addCardProfile("Matrox", "G200", true, false, false, false, true, false, true, true, true, false, false, false, "Matrox");
|
||||
addCardProfile("Matrox", "G400", true, true, false, false, true, false, true, true, true, false, false, false, "Matrox");
|
||||
addCardProfile("Matrox", "*", true, true, false, false, true, false, true, true, true, false, false, false, "Matrox");
|
||||
addCardProfile("S3", "Savage2000", true, false, true, false, true, false, true, true, true, false, false, false, "Viper");
|
||||
addCardProfile("ATI", "Radeon DDR x86/MMX/3DNow!", true, true, true, false, false, false, true, false, false, false, false, false, "Radeon");
|
||||
addCardProfile("ATI", "Radeon", true, true, true, false, false, false, true, false, true, false, false, false, "Radeon");
|
||||
addCardProfile("3Dlabs", "GLINT R3 PT", true, true, true, false, false, false, true, true, true, false, false, false, "Permedia3");
|
||||
addCardProfile("Imagination", "PowerVR KYRO", true, true, true, false, false, false, true, true, true, false, false, false, "Kyro");
|
||||
23
DRI-Matrox.cs
Normal file
23
DRI-Matrox.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::disableEXTCompiledVertexArray = "1";
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "5";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
23
DRI-Radeon.cs
Normal file
23
DRI-Radeon.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 32";
|
||||
$pref::OpenGL::mipReduction = 0;
|
||||
$pref::shadows = 0.5;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 1;
|
||||
$pref::Interior::ShowEnvironmentMaps = 1;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 8;
|
||||
$pref::TS::detailAdjust = "0.833333";
|
||||
$pref::numCloudLayers = 1;
|
||||
$pref::OpenGL::disableEXTCompiledVertexArray = "1";
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "1";
|
||||
$pref::Interior::VertexLighting = "0";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "5";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
23
DRI-Rage128.cs
Normal file
23
DRI-Rage128.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 1;
|
||||
$pref::Interior::ShowEnvironmentMaps = 1;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::disableEXTCompiledVertexArray = "1";
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "3";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
23
DRI-Voodoo3.cs
Normal file
23
DRI-Voodoo3.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::disableEXTCompiledVertexArray = "1";
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "0"; // lower number is actually faster here (go figure)
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
23
DRI-Voodoo5.cs
Normal file
23
DRI-Voodoo5.cs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 16";
|
||||
$pref::OpenGL::mipReduction = 0;
|
||||
$pref::shadows = 0.5;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 1;
|
||||
$pref::OpenGL::disableEXTCompiledVertexArray = "1";
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "0"; // lower number is actually faster here (go figure)
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
GeForce.cs
Normal file
22
GeForce.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 32";
|
||||
$pref::OpenGL::mipReduction = 0;
|
||||
$pref::shadows = 0.5;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 1;
|
||||
$pref::Interior::ShowEnvironmentMaps = 1;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 8;
|
||||
$pref::TS::detailAdjust = "0.833333";
|
||||
$pref::numCloudLayers = 1;
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "1";
|
||||
$pref::Interior::VertexLighting = "0";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "5";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
HighProfile.cs
Normal file
22
HighProfile.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 32";
|
||||
$pref::OpenGL::mipReduction = 0;
|
||||
$pref::shadows = 0.5;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 1;
|
||||
$pref::Interior::ShowEnvironmentMaps = 1;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 8;
|
||||
$pref::TS::detailAdjust = "0.833333";
|
||||
$pref::numCloudLayers = 1;
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "1";
|
||||
$pref::Interior::VertexLighting = "0";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "5";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
10
IntelW2KCardProfiles.cs
Normal file
10
IntelW2KCardProfiles.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Explicit card profiles for Windows 2K on Intel architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------------
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, false, true);
|
||||
addOSCardProfile( "S3", "Savage2000", true, false, true);
|
||||
addOSCardProfile( "Imagination", "PowerVR KYRO", false, true, false);
|
||||
addOSCardProfile( "3Dlabs", "GLINT R3 PT", false, true, false);
|
||||
addOSCardProfile( "NVIDIA", "GeForce2", true, false, true);
|
||||
14
IntelW95CardProfiles.cs
Normal file
14
IntelW95CardProfiles.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// Explicit card profiles for Windows 95B on Intel architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
addOSCardProfile( "ATI", "RAGE 128", true, false, true);
|
||||
addOSCardProfile( "Matrox", "G450", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Banshee", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/ICD (Nov 2 2000)", false, true, false); // Voodoo3
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/ICD (Jan 17 2000)", true, false, true); // Voodoo3 3500 TV
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, true, false);
|
||||
addOSCardProfile( "S3", "Savage2000", true, false, true);
|
||||
addOSCardProfile( "Imagination", "PowerVR KYRO", false, true, false);
|
||||
addOSCardProfile( "NVIDIA", "GeForce2", true, false, true);
|
||||
12
IntelW98CardProfiles.cs
Normal file
12
IntelW98CardProfiles.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Explicit card profiles for Windows 98 on Intel architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
addOSCardProfile( "3Dfx", "Banshee", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/ICD (Nov 2 2000)", false, true, false); // Voodoo3
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/ICD (Jan 17 2000)", true, false, true); // Voodoo3 3500 TV
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, true, false);
|
||||
addOSCardProfile( "S3", "Savage2000", true, false, true);
|
||||
addOSCardProfile( "Imagination", "PowerVR KYRO", false, true, false);
|
||||
addOSCardProfile( "3Dlabs", "GLINT R3 PT", false, true, false);
|
||||
12
IntelW98SECardProfiles.cs
Normal file
12
IntelW98SECardProfiles.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Explicit card profiles for Windows 98SE on Intel architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
addOSCardProfile( "3Dfx", "Banshee", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/ICD (Nov 2 2000)", false, true, false); // Voodoo3
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/ICD (Jan 17 2000)", true, false, true); // Voodoo3 3500 TV
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, true, false);
|
||||
addOSCardProfile( "S3", "Savage2000", true, false, true);
|
||||
addOSCardProfile( "Imagination", "PowerVR KYRO", false, true, false);
|
||||
addOSCardProfile( "3Dlabs", "GLINT R3 PT", false, true, false);
|
||||
12
IntelWMECardProfiles.cs
Normal file
12
IntelWMECardProfiles.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Explicit card profiles for Windows ME on Intel architectures
|
||||
//
|
||||
// Vendor Renderer AllowOpenGL AllowD3D PreferOpenGL
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
addOSCardProfile( "3Dfx", "Banshee", true, false, true);
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/ICD (Nov 2 2000)", false, true, false); // Voodoo3
|
||||
addOSCardProfile( "3Dfx", "3Dfx/Voodoo3 (tm)/2 TMUs/16 MB SDRAM/ICD (Jan 17 2000)", true, false, true); // Voodoo3 3500 TV
|
||||
addOSCardProfile( "3Dfx", "Voodoo4", false, true, false);
|
||||
addOSCardProfile( "3Dfx", "Voodoo5", true, true, false);
|
||||
addOSCardProfile( "S3", "Savage2000", true, false, true);
|
||||
addOSCardProfile( "Imagination", "PowerVR KYRO", false, true, false);
|
||||
addOSCardProfile( "3Dlabs", "GLINT R3 PT", false, true, false);
|
||||
22
Kyro.cs
Normal file
22
Kyro.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 25;
|
||||
$pref::TS::detailAdjust = "0.45614";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "6";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "12";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
26
LinuxCardProfiles.cs
Normal file
26
LinuxCardProfiles.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// Explicit card profiles
|
||||
//
|
||||
// SafeMode -- forces destruction of rendering context before resolution change
|
||||
// LockArray -- inhibits compiled vertex arrays if available
|
||||
// SubImage -- inhibits glTexSubImage*
|
||||
// FogTexture -- require bound texture for combine extension
|
||||
// NoEnvColor -- card doesn't support texture environment color
|
||||
// ClipHigh -- clip off high resolutions (> 1152x864)
|
||||
// DeleteContext -- delete rendering context (ignored for all OSs except W2K)
|
||||
// TexCompress -- inhibits texture compression if available
|
||||
// InteriorLock -- lock arrays rendering Interiors
|
||||
// SkipFirstFog -- skip first two-pass fog (dumb 3Dfx hack)
|
||||
// Only16 -- inhibit the 32-bit resolutions
|
||||
// NoArraysAlpha -- don't use glDrawArrays with a GL_ALPHA texture
|
||||
// ProFile -- explicit file of graphic settings
|
||||
//
|
||||
// Vendor Renderer SafeMode LockArray SubImage FogTexture NoEnvColor ClipHigh DeleteContext TexCompress InteriorLock SkipFirstFog Only16 NoArraysAlpha ProFile
|
||||
//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
addCardProfile("VA Linux Systems, Inc.", "Banshee", true, true, true, true, true, false, false, true, true, true, false, true, "Voodoo3");
|
||||
addCardProfile("VA Linux Systems, Inc.", "Voodoo3", true, true, true, true, true, false, true, true, true, true, false, true, "Voodoo3");
|
||||
addCardProfile("VA Linux Systems, Inc.", "Voodoo4", true, false, true, false, true, false, false, true, true, false, false, false, "Voodoo5");
|
||||
addCardProfile("VA Linux Systems, Inc.", "Voodoo5", true, false, true, false, true, false, false, true, true, false, false, false, "Voodoo5");
|
||||
addCardProfile("VA Linux Systems, Inc.", "Rage128", true, true, true, true, true, false, true, true, true, false, false, false, "Rage128");
|
||||
addCardProfile("VA Linux Systems, Inc.", "Radeon", true, true, true, false, false, false, true, false, true, false, false, false, "Radeon");
|
||||
addCardProfile("VA Linux Systems, Inc.", "G400", true, true, false, false, true, false, true, true, true, false, false, false, "Matrox");
|
||||
addCardProfile("VA Linux Systems, Inc.", "G450", true, true, false, false, true, false, true, true, true, false, false, false, "Matrox");
|
||||
22
LowProfile.cs
Normal file
22
LowProfile.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 25;
|
||||
$pref::TS::detailAdjust = "0.45614";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "6";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "12";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
Matrox.cs
Normal file
22
Matrox.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "5";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
MediumProfile.cs
Normal file
22
MediumProfile.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "3";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
BIN
Mssds3dh.m3d
Normal file
BIN
Mssds3dh.m3d
Normal file
Binary file not shown.
BIN
Msseax.m3d
Normal file
BIN
Msseax.m3d
Normal file
Binary file not shown.
BIN
Msseax2.m3d
Normal file
BIN
Msseax2.m3d
Normal file
Binary file not shown.
BIN
Mssfast.m3d
Normal file
BIN
Mssfast.m3d
Normal file
Binary file not shown.
22
Permedia3.cs
Normal file
22
Permedia3.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 25;
|
||||
$pref::TS::detailAdjust = "0.45614";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "6";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "12";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
Radeon.cs
Normal file
22
Radeon.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 32";
|
||||
$pref::OpenGL::mipReduction = 0;
|
||||
$pref::shadows = 0.5;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 1;
|
||||
$pref::Interior::ShowEnvironmentMaps = 1;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 8;
|
||||
$pref::TS::detailAdjust = "0.833333";
|
||||
$pref::numCloudLayers = 1;
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "1";
|
||||
$pref::Interior::VertexLighting = "0";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "5";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
Rage128.cs
Normal file
22
Rage128.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 1;
|
||||
$pref::Interior::ShowEnvironmentMaps = 1;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "3";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
BIN
Reverb3.flt
Normal file
BIN
Reverb3.flt
Normal file
Binary file not shown.
17
SierraUp.cfg
Normal file
17
SierraUp.cfg
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
ProductName "Tribes2"
|
||||
DisplayName "Tribes 2"
|
||||
PatchFolder .\patch
|
||||
CurrentVersion 0.21570.0.0
|
||||
AutoStart
|
||||
MonitorPatch
|
||||
LaunchExe "tribes2.exe"
|
||||
VersionExe "tribes2.exe"
|
||||
MotdTimeout 30000
|
||||
VersionTimeout 45000
|
||||
PatchTimeout 45000
|
||||
ValidateVersionFile ".\zz.ini"
|
||||
ResourceDllFile "Tribes2Res.dll"
|
||||
DirectoryServer "tribes2.west.won.net:15104"
|
||||
DirectoryServer "tribes2.east.won.net:15104"
|
||||
DirectoryServer "tribes2.central.won.net:15104"
|
||||
LaunchParams "-online"
|
||||
22
TNT.cs
Normal file
22
TNT.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 1;
|
||||
$pref::Interior::ShowEnvironmentMaps = 1;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "3";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
1
Tribes2.exe.local
Normal file
1
Tribes2.exe.local
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
22
V2Profile.cs
Normal file
22
V2Profile.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 25;
|
||||
$pref::TS::detailAdjust = "0.45614";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "6";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "12";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
Viper.cs
Normal file
22
Viper.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.5;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 1;
|
||||
$pref::Interior::ShowEnvironmentMaps = 1;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 8;
|
||||
$pref::TS::detailAdjust = "0.833333";
|
||||
$pref::numCloudLayers = 1;
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "3";
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "5";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
Voodoo3.cs
Normal file
22
Voodoo3.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "640 480 16";
|
||||
$pref::OpenGL::mipReduction = 1;
|
||||
$pref::shadows = 0.1;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 0;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 0;
|
||||
$pref::decalsOn = 0;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 0;
|
||||
$pref::OpenGL::interiorMipReduction = 2;
|
||||
$pref::OpenGL::skyMipReduction = 2;
|
||||
$pref::Terrain::texDetail = "0"; // lower number is actually faster here (go figure)
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
22
Voodoo5.cs
Normal file
22
Voodoo5.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
$pref::Audio::provider = "Miles Fast 2D Positional Audio";
|
||||
$pref::Video::fullScreen = 1;
|
||||
$pref::Video::resolution = "800 600 16";
|
||||
$pref::OpenGL::mipReduction = 0;
|
||||
$pref::shadows = 0.5;
|
||||
$pref::Terrain::enableDetails = 1;
|
||||
$pref::environmentMaps = 1;
|
||||
$pref::Interior::DynamicLights = 0;
|
||||
$pref::Interior::ShowEnvironmentMaps = 0;
|
||||
$pref::precipitationOn = 1;
|
||||
$pref::decalsOn = 1;
|
||||
$pref::Terrain::screenError = 20;
|
||||
$pref::TS::detailAdjust = "0.675439";
|
||||
$pref::numCloudLayers = 1;
|
||||
$pref::OpenGL::interiorMipReduction = 1;
|
||||
$pref::OpenGL::skyMipReduction = 1;
|
||||
$pref::Terrain::texDetail = "0"; // lower number is actually faster here (go figure)
|
||||
$pref::Interior::VertexLighting = "1";
|
||||
$pref::Player::renderMyItems = "1";
|
||||
$pref::Player::renderMyPlayer = "0";
|
||||
$pref::TS::screenError = "8";
|
||||
$pref::Terrain::dynamicLights = "1";
|
||||
BIN
base/audio/fx/weapons/spinfusor_reload.sfk
Normal file
BIN
base/audio/fx/weapons/spinfusor_reload.sfk
Normal file
Binary file not shown.
604
base/console_end.cs
Normal file
604
base/console_end.cs
Normal file
|
|
@ -0,0 +1,604 @@
|
|||
if ( $pref::Shell::lastBackground > 4 )
|
||||
$pref::Shell::lastBackground = 0;
|
||||
else
|
||||
$pref::Shell::lastBackground++;
|
||||
|
||||
// load default controls:
|
||||
exec("scripts/controlDefaults.cs");
|
||||
|
||||
// override with control settings
|
||||
if ( $pref::Input::ActiveConfig !$= "" )
|
||||
exec( "prefs/" @ $pref::Input::ActiveConfig @ ".cs", false, true );
|
||||
|
||||
//exec any user created .cs files found in scripts/autoexec (order is that returned by the OS)
|
||||
function loadCustomScripts()
|
||||
{
|
||||
%path = "scripts/autoexec/*.cs";
|
||||
for( %file = findFirstFile( %path ); %file !$= ""; %file = findNextFile( %path ) )
|
||||
exec( %file );
|
||||
}
|
||||
loadCustomScripts();
|
||||
|
||||
// override settings from autoexec.cs
|
||||
exec("autoexec.cs");
|
||||
$LoginName = "";
|
||||
$LoginPassword = "";
|
||||
|
||||
//TINMAN hack to add a command line option for starting a bot match...
|
||||
if ($CmdLineBotCount !$= "")
|
||||
{
|
||||
$Host::BotCount = $CmdLineBotCount;
|
||||
}
|
||||
|
||||
// message.cs is loaded so autoexec can add new message callbacks
|
||||
|
||||
exec("scripts/message.cs");
|
||||
|
||||
function repaintCanvas()
|
||||
{
|
||||
if ( isObject( Canvas ) )
|
||||
Canvas.repaint();
|
||||
}
|
||||
|
||||
function resetCanvas()
|
||||
{
|
||||
if ( isObject( Canvas ) )
|
||||
Canvas.reset();
|
||||
}
|
||||
|
||||
//function to be called when the game exits
|
||||
function onExit()
|
||||
{
|
||||
IRCClient::quit();
|
||||
|
||||
echo("exporting pref::* to ClientPrefs.cs");
|
||||
export("$pref::*", "prefs/ClientPrefs.cs", False);
|
||||
BanList::Export("prefs/banlist.cs");
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
exec("scripts/LaunchLanGui.cs");
|
||||
exec("scripts/GameGui.cs");
|
||||
exec("scripts/ChooseFilterDlg.cs");
|
||||
exec("scripts/ChatGui.cs");
|
||||
exec("scripts/TrainingGui.cs");
|
||||
exec("scripts/webstuff.cs");
|
||||
exec("scripts/webforums.cs");
|
||||
exec("scripts/webemail.cs");
|
||||
exec("scripts/webbrowser.cs");
|
||||
exec("scripts/webtest.cs");
|
||||
exec("scripts/webnews.cs");
|
||||
exec("scripts/weblinks.cs");
|
||||
exec("scripts/OptionsDlg.cs");
|
||||
exec("scripts/EditChatMenuGui.cs");
|
||||
exec("scripts/scoreList.cs");
|
||||
exec("scripts/LobbyGui.cs");
|
||||
exec("scripts/DebriefGui.cs");
|
||||
exec("scripts/commonDialogs.cs");
|
||||
exec("scripts/client.cs");
|
||||
exec("scripts/server.cs");
|
||||
exec("scripts/hud.cs");
|
||||
exec("scripts/objectiveHud.cs");
|
||||
exec("scripts/vehicles/clientVehicleHud.cs");
|
||||
exec("scripts/inventoryHud.cs");
|
||||
exec("scripts/chatMenuHud.cs");
|
||||
exec("scripts/scoreScreen.cs");
|
||||
exec("scripts/loadingGui.cs");
|
||||
exec("scripts/helpGuiText.cs");
|
||||
exec("scripts/voiceChat.cs");
|
||||
exec("scripts/clientTasks.cs");
|
||||
exec("scripts/targetManager.cs");
|
||||
exec("scripts/gameCanvas.cs");
|
||||
exec("scripts/centerPrint.cs");
|
||||
exec("scripts/CreditsGui.cs");
|
||||
|
||||
// see if the mission and type are valid
|
||||
// if they are they will be assigned into $Host::Map and $Host::MissionType
|
||||
if($mission !$= "" && $missionType !$= "")
|
||||
validateMissionAndType($mission, $missionType);
|
||||
|
||||
if($LaunchMode $= "DedicatedServer")
|
||||
{
|
||||
enableWinConsole(true);
|
||||
$Host::Dedicated = true;
|
||||
$HostGameType = "Online";
|
||||
$ServerName = $Host::GameName;
|
||||
$HostGameBotCount = $Host::BotCount;
|
||||
setNetPort($Host::Port);
|
||||
CreateServer($Host::Map, $Host::MissionType);
|
||||
return;
|
||||
}
|
||||
else if($LaunchMode $= "Console")
|
||||
{
|
||||
enableWinConsole(true);
|
||||
$Host::Dedicated = true;
|
||||
return;
|
||||
}
|
||||
else if($LaunchMode $= "NavBuild")
|
||||
{
|
||||
enableWinConsole(true);
|
||||
$Host::Dedicated = true;
|
||||
$ServerName = $Host::GameName;
|
||||
$Host::MissionType = $missionType;
|
||||
$Host::Map = $Mission;
|
||||
setNetPort($Host::Port);
|
||||
CreateServer($Mission, $missionType);
|
||||
return;
|
||||
}
|
||||
else if($LaunchMode $= "SpnBuild")
|
||||
{
|
||||
enableWinConsole(true);
|
||||
$Host::Dedicated = true;
|
||||
$ServerName = $Host::GameName;
|
||||
$Host::MissionType = $missionType;
|
||||
$Host::Map = $Mission;
|
||||
setNetPort($Host::Port);
|
||||
CreateServer($Mission, $missionType);
|
||||
return;
|
||||
}
|
||||
|
||||
function recordMovie(%movieName, %fps)
|
||||
{
|
||||
$timeAdvance = 1000 / %fps;
|
||||
$screenGrabThread = schedule("movieGrabScreen(" @ %movieName @ ", 0);", $timeAdvance);
|
||||
}
|
||||
|
||||
function movieGrabScreen(%movieName, %frameNumber)
|
||||
{
|
||||
if(%frameNumber < 10)
|
||||
%frameNumber = "0" @ %frameNumber;
|
||||
if(%frameNumber < 100)
|
||||
%frameNumber = "0" @ %frameNumber;
|
||||
if(%frameNumber < 1000)
|
||||
%frameNumber = "0" @ %frameNumber;
|
||||
if(%frameNumber < 10000)
|
||||
%frameNumber = "0" @ %frameNumber;
|
||||
screenshot(%movieName @ %frameNumber @ ".png");
|
||||
$screenGrabThread = schedule("movieGrabScreen(" @ %movieName @ "," @ %frameNumber + 1 @ ");", $timeAdvance);
|
||||
}
|
||||
|
||||
function stopMovie()
|
||||
{
|
||||
cancel($screenGrabThread);
|
||||
}
|
||||
|
||||
function loadGui(%gui)
|
||||
{
|
||||
exec("gui/" @ %gui @ ".gui");
|
||||
}
|
||||
|
||||
exec("scripts/clientAudio.cs");
|
||||
exec("gui/guiProfiles.cs");
|
||||
exec("scripts/recordings.cs");
|
||||
|
||||
// tool guis
|
||||
loadGui("GuiEditorGui");
|
||||
loadGui("consoleDlg");
|
||||
loadGui("InspectDlg");
|
||||
loadGui("CommonLoadDlg");
|
||||
loadGui("CommonSaveDlg");
|
||||
loadGui("FrameOverlayGui");
|
||||
loadGui("TribeAdminMemberDlg");
|
||||
loadGui("TribeAttribDlg");
|
||||
loadGui("TSShowGui");
|
||||
loadGui("TSShowLoadDlg");
|
||||
loadGui("TSShowMiscDlg");
|
||||
loadGui("TSShowThreadControlDlg");
|
||||
loadGui("TSShowEditScale");
|
||||
loadGui("TSShowLightDlg");
|
||||
loadGui("TSShowTransitionDlg");
|
||||
loadGui("TSShowTranDurEditDlg");
|
||||
loadGui("TSShowDetailControlDlg");
|
||||
|
||||
// debugger GUI's
|
||||
function Debugger()
|
||||
{
|
||||
if(!$DebuggerLoaded)
|
||||
{
|
||||
loadGui("debuggerGui");
|
||||
loadGui("DebuggerBreakConditionDlg");
|
||||
loadGui("DebuggerConnectDlg");
|
||||
loadGui("DebuggerEditWatchDlg");
|
||||
loadGui("DebuggerWatchDlg");
|
||||
loadGui("DebuggerFindDlg");
|
||||
exec("scripts/debuggerGui.cs");
|
||||
$DebuggerLoaded = true;
|
||||
}
|
||||
Canvas.setContent(DebuggerGui);
|
||||
}
|
||||
|
||||
// test GUIs
|
||||
loadGui("GuiTestGui");
|
||||
|
||||
// common shell dialogs:
|
||||
loadGui("MessageBoxDlg");
|
||||
loadGui("MessagePopupDlg");
|
||||
loadGui("ShellLoadFileDlg");
|
||||
loadGui("ShellSaveFileDlg");
|
||||
|
||||
// menus
|
||||
loadGui("AddressDlg");
|
||||
loadGui("GenDialog");
|
||||
loadGui("CreateWarriorDlg");
|
||||
loadGui("LaunchGui");
|
||||
loadGui("LaunchToolbarDlg");
|
||||
loadGui("GameGui");
|
||||
loadGui("ChooseFilterDlg");
|
||||
loadGui("ServerInfoDlg");
|
||||
loadGui("AdvancedHostDlg");
|
||||
loadGui("NewWarriorDlg");
|
||||
loadGui("JoinChatDlg");
|
||||
loadGui("ChannelKeyDlg");
|
||||
loadGui("ChannelOptionsDlg");
|
||||
loadGui("ChannelBanDlg");
|
||||
loadGui("FilterEditDlg");
|
||||
loadGui("PasswordDlg");
|
||||
loadGui("OptionsDlg");
|
||||
loadGui("DriverInfoDlg");
|
||||
loadGui("RemapDlg");
|
||||
loadGui("MouseConfigDlg");
|
||||
loadGui("JoystickConfigDlg");
|
||||
loadGui("EditChatMenuGui");
|
||||
loadGui("EditChatMenuDlg");
|
||||
loadGui("EditChatCommandDlg");
|
||||
loadGui("ChatGui");
|
||||
loadGui("EmailGui");
|
||||
loadGui("NewsGui");
|
||||
loadGui("NewsPostDlg");
|
||||
loadGui("NewsEditMOTDDlg");
|
||||
loadGui("EmailBlockDlg");
|
||||
loadGui("EmailComposeDlg");
|
||||
loadGui("ForumsGui");
|
||||
loadGui("ForumsComposeDlg");
|
||||
loadGui("TribeAndWarriorBrowserGui");
|
||||
loadGui("TribePropertiesDlg");
|
||||
loadGui("WarriorPropertiesDlg");
|
||||
loadGui("BrowserSearchDlg");
|
||||
loadGui("BrowserEditInfoDlg");
|
||||
loadGui("CreateTribeDlg");
|
||||
loadGui("RecordingsDlg");
|
||||
loadGui("TrainingGui");
|
||||
loadGui("SinglePlayerEscapeDlg");
|
||||
loadGui("LobbyGui");
|
||||
loadGui("DebriefGui");
|
||||
loadGui("CreditsGui");
|
||||
|
||||
loadGui("NewMissionGui");
|
||||
loadGui("ChatDlg");
|
||||
loadGui("PlayGui");
|
||||
loadGui("PanoramaGui");
|
||||
loadGui("LoadingGui");
|
||||
loadGui("TestGui");
|
||||
loadGui("BriefingGui");
|
||||
|
||||
// HUD GUI's:
|
||||
loadGui("HUDDlgs");
|
||||
|
||||
// terraformer GUI's
|
||||
loadGui("TerraformerGui");
|
||||
loadGui("TerraformerTextureGui");
|
||||
loadGui("TerraformerHeightfieldGui");
|
||||
loadGui("TerraformerFullScreenGui");
|
||||
loadGui("helpTextGui");
|
||||
//
|
||||
loadGui("InteriorPreviewGui");
|
||||
loadGui("InteriorDebug");
|
||||
loadGui("EditorGui");
|
||||
loadGui("SceneLightingGui");
|
||||
loadGui("InspectAddFieldDlg");
|
||||
|
||||
loadGui("PickTeamDlg");
|
||||
|
||||
loadGui("DetailSetDlg");
|
||||
|
||||
loadGui("IHVTest");
|
||||
|
||||
// Load material properties
|
||||
echo("Load Material Properties:");
|
||||
exec("textures/badlands/badlandsPropMap.cs");
|
||||
exec("textures/desert/desertPropMap.cs");
|
||||
exec("textures/ice/icePropMap.cs");
|
||||
exec("textures/lava/lavaPropMap.cs");
|
||||
exec("textures/lush/lushPropMap.cs");
|
||||
|
||||
// commander map
|
||||
exec("scripts/commanderProfiles.cs");
|
||||
exec("scripts/commanderMap.cs");
|
||||
exec("scripts/commanderMapHelpText.cs");
|
||||
|
||||
loadGui(CommanderMapGui);
|
||||
loadGui(cmdMapHelpText);
|
||||
loadGui(TaskHudDlg);
|
||||
|
||||
|
||||
function frameCounter()
|
||||
{
|
||||
return " FPS: " @ $fps::real @
|
||||
" mspf: " @ 1000 / $fps::real;
|
||||
}
|
||||
|
||||
function terrMetrics()
|
||||
{
|
||||
return frameCounter() @
|
||||
" L0: " @ $T2::levelZeroCount @
|
||||
" FMC: " @ $T2::fullMipCount @
|
||||
" DTC: " @ $T2::dynamicTextureCount @
|
||||
" UNU: " @ $T2::unusedTextureCount @
|
||||
" STC: " @ $T2::staticTextureCount @
|
||||
" DTSU: " @ $T2::textureSpaceUsed @
|
||||
" STSU: " @ $T2::staticTSU @
|
||||
" FRB: " @ $T2::FogRejections;
|
||||
}
|
||||
|
||||
function triMetrics()
|
||||
{
|
||||
return frameCounter() @
|
||||
" TC: " @ $OpenGL::triCount0 + $OpenGL::triCount1 + $OpenGL::triCount2 + $OpenGL::triCount3 @
|
||||
" PC: " @ $OpenGL::primCount0 + $OpenGL::primCount1 + $OpenGL::primCount2 + $OpenGL::primCount3 @
|
||||
" T_T: " @ $OpenGL::triCount1 @
|
||||
" T_P: " @ $OpenGL::primCount1 @
|
||||
" I_T: " @ $OpenGL::triCount2 @
|
||||
" I_P: " @ $OpenGL::primCount2 @
|
||||
" TS_T: " @ $OpenGL::triCount3 @
|
||||
" TS_P: " @ $OpenGL::primCount3 @
|
||||
" ?_T: " @ $OpenGL::triCount0 @
|
||||
" ?_P: " @ $OpenGL::primCount0;
|
||||
}
|
||||
|
||||
function interiorMetrics()
|
||||
{
|
||||
return frameCounter() @
|
||||
" NTL: " @ $Video::numTexelsLoaded @
|
||||
" TRP: " @ $Video::texResidentPercentage @
|
||||
" INP: " @ $Metrics::Interior::numPrimitives @
|
||||
" INT: " @ $Matrics::Interior::numTexturesUsed @
|
||||
" INO: " @ $Metrics::Interior::numInteriors;
|
||||
}
|
||||
|
||||
function textureMetrics()
|
||||
{
|
||||
return frameCounter() @
|
||||
" NTL: " @ $Video::numTexelsLoaded @
|
||||
" TRP: " @ $Video::texResidentPercentage @
|
||||
" TCM: " @ $Video::textureCacheMisses;
|
||||
}
|
||||
|
||||
function waterMetrics()
|
||||
{
|
||||
return frameCounter() @
|
||||
" Tri#: " @ $T2::waterTriCount @
|
||||
" Pnt#: " @ $T2::waterPointCount @
|
||||
" Hz#: " @ $T2::waterHazePointCount;
|
||||
}
|
||||
|
||||
function timeMetrics()
|
||||
{
|
||||
return frameCounter() @ " Time: " @ getSimTime() @ " Mod: " @ getSimTime() % 32;
|
||||
}
|
||||
|
||||
function vehicleMetrics()
|
||||
{
|
||||
return frameCounter() @
|
||||
" R: " @ $Vehicle::retryCount @
|
||||
" C: " @ $Vehicle::searchCount @
|
||||
" P: " @ $Vehicle::polyCount @
|
||||
" V: " @ $Vehicle::vertexCount;
|
||||
}
|
||||
|
||||
function audioMetrics()
|
||||
{
|
||||
return frameCounter() @
|
||||
" OH: " @ $Audio::numOpenHandles @
|
||||
" OLH: " @ $Audio::numOpenLoopingHandles @
|
||||
" OVH: " @ $Audio::numOpenVoiceHandles @
|
||||
" AS: " @ $Audio::numActiveStreams @
|
||||
" NAS: " @ $Audio::numNullActiveStreams @
|
||||
" LAS: " @ $Audio::numActiveLoopingStreams @
|
||||
" VAS: " @ $Audio::numActiveVoiceStreams @
|
||||
" LS: " @ $Audio::numLoopingStreams @
|
||||
" ILS: " @ $Audio::numInactiveLoopingStreams @
|
||||
" CLS: " @ $Audio::numCulledLoopingStreams @
|
||||
" MEM: " @ $Audio::memUsage @
|
||||
" DYN: " @ $Audio::dynamicMemUsage @
|
||||
" / " @ $Audio::dynamicMemSize @
|
||||
" CNT: " @ $Audio::dynamicBufferCount @
|
||||
" / " @ $Audio::bufferCount;
|
||||
}
|
||||
|
||||
function DebugMetrics()
|
||||
{
|
||||
return frameCounter() @
|
||||
" NTL: " @ $Video::numTexelsLoaded @
|
||||
" TRP: " @ $Video::texResidentPercentage @
|
||||
" NP: " @ $Metrics::numPrimitives @
|
||||
" NT: " @ $Metrics::numTexturesUsed @
|
||||
" NO: " @ $Metrics::numObjectsRendered;
|
||||
}
|
||||
|
||||
|
||||
function showTerr()
|
||||
{
|
||||
show("terrMetrics()");
|
||||
}
|
||||
|
||||
function showTri()
|
||||
{
|
||||
GLEnableMetrics(true);
|
||||
show("triMetrics()");
|
||||
}
|
||||
|
||||
function showTime()
|
||||
{
|
||||
show("timeMetrics()");
|
||||
}
|
||||
|
||||
function showWater()
|
||||
{
|
||||
show("waterMetrics()");
|
||||
}
|
||||
|
||||
function showTexture()
|
||||
{
|
||||
show("textureMetrics()");
|
||||
}
|
||||
|
||||
function showInterior()
|
||||
{
|
||||
$fps::virtual = 0;
|
||||
$Interior::numPolys = 0;
|
||||
$Interior::numTextures = 0;
|
||||
$Interior::numTexels = 0;
|
||||
$Interior::numLightmaps = 0;
|
||||
$Interior::numLumels = 0;
|
||||
show("interiorMetrics()");
|
||||
}
|
||||
|
||||
function showVehicle()
|
||||
{
|
||||
show("vehicleMetrics()");
|
||||
}
|
||||
|
||||
function showAudio()
|
||||
{
|
||||
show("audioMetrics()");
|
||||
}
|
||||
|
||||
function showDebug()
|
||||
{
|
||||
show("DebugMetrics()");
|
||||
}
|
||||
|
||||
|
||||
function show(%expr)
|
||||
{
|
||||
if(%expr $= "")
|
||||
{
|
||||
GLEnableMetrics(false);
|
||||
Canvas.popDialog(FrameOverlayGui);
|
||||
}
|
||||
else
|
||||
{
|
||||
Canvas.pushDialog(FrameOverlayGui, 1000);
|
||||
TextOverlayControl.setValue(%expr);
|
||||
}
|
||||
}
|
||||
//showInterior();
|
||||
|
||||
// check the launch mode:
|
||||
|
||||
Canvas.setCursor("DefaultCursor");
|
||||
|
||||
function dumpFile(%fileName)
|
||||
{
|
||||
%file = new FileObject();
|
||||
if(%file.openForRead(%fileName))
|
||||
{
|
||||
while(!%file.isEOF())
|
||||
echo(%file.readLine());
|
||||
}
|
||||
%file.delete();
|
||||
}
|
||||
|
||||
function doScreenShot(%val)
|
||||
{
|
||||
$pref::interior::showdetailmaps = false;
|
||||
if(!%val)
|
||||
screenShot("screen" @ $screenshotnum++ @ ".png");
|
||||
}
|
||||
|
||||
// set up the movement action map
|
||||
GlobalActionMap.bind(keyboard, "print", doScreenShot);
|
||||
GlobalActionMap.bindCmd(keyboard, "alt enter", "", "toggleFullScreen();");
|
||||
|
||||
// Get the joystick binding functions:
|
||||
exec( "scripts/joystickBind.cs" );
|
||||
|
||||
function clientCMDgetManagerID(%client)
|
||||
{
|
||||
$client = %client;
|
||||
}
|
||||
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //
|
||||
|
||||
function abs(%val)
|
||||
{
|
||||
if (%val < 0)
|
||||
return %val * -1;
|
||||
else
|
||||
return %val;
|
||||
}
|
||||
|
||||
//##############################################################################
|
||||
//CreateServer(testmission);
|
||||
//LocalConnect(UberBob);
|
||||
//##############################################################################
|
||||
|
||||
function ServerConnectionAccepted()
|
||||
{
|
||||
Canvas.setContent("LoadingGui");
|
||||
}
|
||||
|
||||
function LocalConnectionAccepted()
|
||||
{
|
||||
Canvas.setContent("LoadingGui");
|
||||
}
|
||||
|
||||
function DispatchLaunchMode()
|
||||
{
|
||||
switch$($LaunchMode)
|
||||
{
|
||||
case "InteriorView":
|
||||
if ( isFile( "missions/interiorTest.mis" ) )
|
||||
{
|
||||
$InteriorArgument = $TestObjectFileName;
|
||||
$extension = fileExt( $TestObjectFileName );
|
||||
if ( stricmp( $extension, ".dif\"" ) == 0 )
|
||||
{
|
||||
// Have to adjust for quotes:
|
||||
$TestObjectFileName = getSubStr( $TestObjectFileName,
|
||||
1, strlen( $TestObjectFileName ) - 2 );
|
||||
}
|
||||
|
||||
if ( getSubStr( $TestObjectFileName, strlen( $TestObjectFileName ) - 6, 1 ) $= "_" )
|
||||
{
|
||||
// Strip the detail part off...
|
||||
$TestObjectFileName = getSubStr( $TestObjectFileName, 0, strlen( $TestObjectFileName ) - 6 ) @ ".dif";
|
||||
}
|
||||
|
||||
echo( $TestObjectFileName @ " is the file loaded" );
|
||||
|
||||
$ServerName = $Host::GameName;
|
||||
$Host::TimeLimit = 60;
|
||||
CreateServer( "interiorTest", "InteriorTest" );
|
||||
localConnect( "TestGuy" );
|
||||
}
|
||||
else
|
||||
MessageBoxOK( "FILE NOT FOUND", "You do not have the interior test mission in your mission folder.\nTalk to Brad or Tom to get it.", "quit();" );
|
||||
case "Connect":
|
||||
setNetPort(0);
|
||||
JoinSelectedGame();
|
||||
case "HostGame":
|
||||
$ServerName = $Host::GameName;
|
||||
$Host::MissionType = $MissionType;
|
||||
$Host::Map = $Mission;
|
||||
CreateServer($Mission, $MissionType);
|
||||
localConnect();
|
||||
case "Normal":
|
||||
OnlineLogIn();
|
||||
case "Offline":
|
||||
PlayOffline();
|
||||
case "TSShow":
|
||||
startShow();
|
||||
case "SceneLight":
|
||||
CreateServer($Mission);
|
||||
localConnect();
|
||||
case "Demo":
|
||||
LoopDemos();
|
||||
}
|
||||
}
|
||||
|
||||
if(WONGetAuthInfo() $= "" && $LaunchMode !$= "Demo")
|
||||
VerifyCDCheck(DispatchLaunchMode);
|
||||
else
|
||||
DispatchLaunchMode();
|
||||
517
base/gui/AIEButtonBarDlg.gui
Normal file
517
base/gui/AIEButtonBarDlg.gui
Normal file
|
|
@ -0,0 +1,517 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(AIEButtonBarDlg) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiChunkedBitmapCtrl() {
|
||||
profile = "EditorContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "0 30";
|
||||
extent = "120 420";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiCheckBoxCtrl(ExteriorCheckBox) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "11 23";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "ExteriorCheckBox.updateCheckBox();";
|
||||
helpTag = "0";
|
||||
text = "Draw Ext";
|
||||
};
|
||||
new GuiCheckBoxCtrl(InteriorCheckBox) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "11 47";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "InteriorCheckBox.updateCheckBox();";
|
||||
helpTag = "0";
|
||||
text = "Draw Int";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "11 6";
|
||||
extent = "73 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Visual Options:";
|
||||
};
|
||||
new GuiCheckBoxCtrl(JetConnectionsCheckBox) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "11 73";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "JetConnectionsCheckBox.updateCheckBox();";
|
||||
helpTag = "0";
|
||||
text = "Draw Jet";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 201";
|
||||
extent = "100 29";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "makeJettableGraph(Nav);";
|
||||
helpTag = "0";
|
||||
text = "Bot Graph";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 169";
|
||||
extent = "100 29";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "makeJettableGraph(Spawn);";
|
||||
helpTag = "0";
|
||||
text = "Spawn Graph";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 233";
|
||||
extent = "100 29";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "AIEButtonBarDlg.createLOSXref();";
|
||||
helpTag = "0";
|
||||
text = "Build LOS";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 265";
|
||||
extent = "100 29";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "navGraph.saveGraph();";
|
||||
helpTag = "0";
|
||||
text = "Save";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "11 151";
|
||||
extent = "56 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Graph Build";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "11 315";
|
||||
extent = "64 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "AI Objectives";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 331";
|
||||
extent = "100 29";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "AICreateObjectives();";
|
||||
helpTag = "0";
|
||||
text = "Build Objectives";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(ObjectiveList) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 368";
|
||||
extent = "101 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "New Objective";
|
||||
maxPopupHeight = "200";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 395";
|
||||
extent = "100 29";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "AISaveMissionObjectives();";
|
||||
helpTag = "0";
|
||||
text = "Save";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 102";
|
||||
extent = "73 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Camera speed:";
|
||||
};
|
||||
new GuiSliderCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "6 121";
|
||||
extent = "80 20";
|
||||
minExtent = "80 20";
|
||||
visible = "1";
|
||||
variable = "value";
|
||||
command = "$Camera::movementSpeed = $ThisControl.getValue();";
|
||||
helpTag = "0";
|
||||
range = "0.000000 200.000000";
|
||||
ticks = "10";
|
||||
value = "20";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function makeUnbridgedGraph()
|
||||
{
|
||||
GraphCurrentOperation.setValue("Generating interior nodes...");
|
||||
Canvas.repaint();
|
||||
navGraph::generateInterior();
|
||||
dataProgress();
|
||||
|
||||
GraphCurrentOperation.setValue("Remaking graph...");
|
||||
Canvas.repaint();
|
||||
remakeTheGraph();
|
||||
dataProgress();
|
||||
}
|
||||
|
||||
function makeJettableGraph(%NAVorSPAWN)
|
||||
{
|
||||
AIworking(true);
|
||||
|
||||
$NavGraph::operations = 7;
|
||||
$NavGraph::operationsDone = 0;
|
||||
|
||||
navGraph.setGenMode(%NAVorSPAWN);
|
||||
navGraph::exteriorInspect();
|
||||
dataProgress();
|
||||
makeUnbridgedGraph();
|
||||
|
||||
GraphCurrentOperation.setValue("Beginning slow bridge finding pass");
|
||||
Canvas.repaint();
|
||||
|
||||
navGraph.assemble();
|
||||
|
||||
navGraph.cullIslands();
|
||||
remakeTheGraph();
|
||||
navGraph.pushBridges();
|
||||
navGraph.makeTables();
|
||||
dataProgress();
|
||||
|
||||
AIworking(false);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIEButtonBarDlg::getPrefs(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIEbuttonBarDlg::setPrefs(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIEButtonBarDlg::init(%this)
|
||||
{
|
||||
InteriorCheckBox.setValue($pref::NavGraph::drawIndoor);
|
||||
ExteriorCheckBox.setValue($pref::NavGraph::drawOutdoor);
|
||||
|
||||
if(!$pref::NavGraph::drawIndoor)
|
||||
JetConnectionsCheckBox.visible = false;
|
||||
|
||||
JetConnectionsCheckBox.setValue($pref::NavGraph::drawJetEdges);
|
||||
|
||||
ObjectiveList.clear();
|
||||
ObjectiveList.setText("New Objective");
|
||||
ObjectiveList.add("Deploy Outdoor Turret", 1);
|
||||
ObjectiveList.add("Deploy Indoor Turret", 2);
|
||||
ObjectiveList.add("Deploy Inventory", 3);
|
||||
ObjectiveList.add("Touch FlipFlop", 4);
|
||||
ObjectiveList.add("Mortar Target", 5);
|
||||
ObjectiveList.add("Repair Equipment", 6);
|
||||
ObjectiveList.add("Attack Target", 7);
|
||||
ObjectiveList.add("Defend Location", 8);
|
||||
objectiveList.add("New Group", 9);
|
||||
|
||||
//ObjectivesList.sort();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIEButtonBarDlg::onSleep(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIEButtonBarDlg::onWake(%this)
|
||||
{
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function dataProgress()
|
||||
{
|
||||
$NavGraph::operationsDone++;
|
||||
%percent = $NavGraph::operationsDone / $NavGraph::operations;
|
||||
GraphBuildProgress.setValue(%percent);
|
||||
Canvas.repaint();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function remakeTheGraph()
|
||||
{
|
||||
GraphCurrentOperation.setValue("making graph...");
|
||||
Canvas.repaint();
|
||||
navGraph.makeGraph();
|
||||
dataProgress();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIEButtonBarDlg::createLOSXref()
|
||||
{
|
||||
AIworking(true);
|
||||
GraphCurrentOperation.setValue("Making LOS CrossRef Table...");
|
||||
GraphBuildProgress.setValue(0);
|
||||
|
||||
if(2.player)
|
||||
navGraph.prepLOS(2.player.getTransform());
|
||||
else
|
||||
navGraph.prepLOS("0 0 0");
|
||||
|
||||
while(navGraph.makeLOS())
|
||||
{
|
||||
GraphBuildProgress.setValue($graphProcessPercent);
|
||||
Canvas.repaint();
|
||||
}
|
||||
GraphBuildProgress.setValue(100);
|
||||
Canvas.repaint();
|
||||
AIworking(false);
|
||||
}
|
||||
|
||||
function ExteriorCheckBox::updateCheckBox()
|
||||
{
|
||||
$pref::NavGraph::drawOutdoor = !$pref::NavGraph::drawOutdoor;
|
||||
}
|
||||
|
||||
function InteriorCheckBox::updateCheckBox()
|
||||
{
|
||||
$pref::NavGraph::drawIndoor = !$pref::NavGraph::drawIndoor;
|
||||
|
||||
if(!$pref::NavGraph::drawIndoor)
|
||||
JetConnectionsCheckBox.visible = false;
|
||||
else
|
||||
jetConnectionsCheckBox.visible = true;
|
||||
}
|
||||
|
||||
function JetConnectionsCheckBox::updateCheckBox()
|
||||
{
|
||||
$pref::NavGraph::drawJetEdges = !$pref::NavGraph::drawJetEdges;
|
||||
}
|
||||
|
||||
function AISaveMissionObjectives()
|
||||
{
|
||||
// once we have created all objecitves, save out the mis file
|
||||
if(!isObject(MissionGroup))
|
||||
{
|
||||
error("No mission exists!");
|
||||
return;
|
||||
}
|
||||
|
||||
// check for read-only
|
||||
%file = "base/missions/" @ $MissionName;
|
||||
if(!isWriteableFileName(%file))
|
||||
{
|
||||
error("Mission file '" @ %file @ "' is not writeable.");
|
||||
return;
|
||||
}
|
||||
|
||||
// ok, were good to save.
|
||||
missionGroup.save("missions/" @ $MissionName);
|
||||
}
|
||||
|
||||
function AIObjectivesLock(%lock)
|
||||
{
|
||||
%numTeams = nameToId("MissionGroup/Teams").getCount();
|
||||
|
||||
for(%j = 0; %j < %numTeams; %j++)
|
||||
{
|
||||
%objGroup = nameToId("MissionGroup/Teams/team" @ %j @ "/AIObjectives");
|
||||
if(%objGroup == -1)
|
||||
continue;
|
||||
|
||||
%objCount = %objGroup.getCount();
|
||||
|
||||
for(%i = 0; %i < %objCount; %i++)
|
||||
{
|
||||
%obj = %objGroup.getObject(%i);
|
||||
%obj.locked = %lock;
|
||||
}
|
||||
}
|
||||
|
||||
// save
|
||||
AISaveMissionObjectives();
|
||||
}
|
||||
|
||||
function addNewObjective(%type)
|
||||
{
|
||||
if($AIEditor::inspectTeam == 1)
|
||||
%team = 1;
|
||||
else if($AIEditor::inspectTeam == 2)
|
||||
%team = 2;
|
||||
else
|
||||
%team = 1;
|
||||
|
||||
%tGroup = nameToId("MissionGroup/Teams/team" @ %team @ "/AIObjectives");
|
||||
|
||||
if(%tGroup < 1)
|
||||
return;
|
||||
|
||||
if($InstantGroup $= "MissionGroup")
|
||||
$InstantGroup = %tGroup;
|
||||
|
||||
switch$(%type)
|
||||
{
|
||||
case "Defend Location":
|
||||
%objective = new AIObjective(AIODefendLocation)
|
||||
{
|
||||
dataBlock = "AIObjectiveMarker";
|
||||
};
|
||||
case "Repair Equipment":
|
||||
%objective = new AIObjective(AIORepairObject)
|
||||
{
|
||||
dataBlock = "AIObjectiveMarker";
|
||||
};
|
||||
case "Deploy Outdoor Turret":
|
||||
%Objective = new AIObjective(AIODeployEquipment)
|
||||
{
|
||||
dataBlock = "AIObjectiveMarker";
|
||||
weightLevel1 = 4100;
|
||||
weightLevel2 = 0;
|
||||
description = "Deploy outdoor Turret";
|
||||
offense = false;
|
||||
defense = true;
|
||||
targetObjectId = -1;
|
||||
targetObject = -1;
|
||||
targetClientId = -1;
|
||||
equipment = "TurretOutdoorDeployable";
|
||||
buyEquipmentSet = "MediumOutdoorTurretSet";
|
||||
};
|
||||
case "Deploy Indoor Turret":
|
||||
%Objective = new AIObjective(AIODeployEquipment)
|
||||
{
|
||||
dataBlock = "AIObjectiveMarker";
|
||||
weightLevel1 = 4100;
|
||||
weightLevel2 = 0;
|
||||
description = "Deploy indoor Turret";
|
||||
offense = false;
|
||||
defense = true;
|
||||
targetObjectId = -1;
|
||||
targetObject = -1;
|
||||
targetClientId = -1;
|
||||
equipment = "TurretIndoorDeployable";
|
||||
buyEquipmentSet = "MediumIndoorTurretSet";
|
||||
};
|
||||
case "Attack Target":
|
||||
%objective = new AIObjective(AIOAttackObject)
|
||||
{
|
||||
dataBlock = "AIObjectiveMarker";
|
||||
};
|
||||
case "Touch FlipFlop":
|
||||
%objective = new AIObjective(AIOTouchObject)
|
||||
{
|
||||
dataBlock = "AIObjectiveMarker";
|
||||
};
|
||||
case "Mortar Target":
|
||||
%objective = new AIObjective(AIOMortarObject)
|
||||
{
|
||||
dataBlock = "AIObjectiveMarker";
|
||||
};
|
||||
case "Deploy Inventory":
|
||||
%Objective = new AIObjective(AIODeployEquipment)
|
||||
{
|
||||
dataBlock = "AIObjectiveMarker";
|
||||
weightLevel1 = 4100;
|
||||
weightLevel2 = 0;
|
||||
description = "Deploy Inventory Station";
|
||||
offense = false;
|
||||
defense = true;
|
||||
targetObjectId = -1;
|
||||
targetObject = -1;
|
||||
targetClientId = -1;
|
||||
equipment = "InventoryDeployable";
|
||||
buyEquipmentSet = "MediumInventorySet";
|
||||
};
|
||||
case "New Group":
|
||||
%set = new SimGroup("ObjectiveSet");
|
||||
%tGroup.add(%set);
|
||||
return;
|
||||
default:
|
||||
error("no defined type.");
|
||||
return;
|
||||
}
|
||||
|
||||
$InstantGroup.add(%objective);
|
||||
aiEdit.clearSelection();
|
||||
aiEdit.selectObject(%objective);
|
||||
aiEdit.dropSelection();
|
||||
%objective.location = %objective.getWorldBoxCenter();
|
||||
Inspector.inspect(%objective);
|
||||
InspectorNameEdit.setValue(%objective.getName());
|
||||
}
|
||||
|
||||
function ObjectiveList::onSelect(%this, %id, %text)
|
||||
{
|
||||
addNewObjective(%text);
|
||||
ObjectiveList.setText("New Objective");
|
||||
}
|
||||
162
base/gui/AIEFrameSetDlg.gui
Normal file
162
base/gui/AIEFrameSetDlg.gui
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(AIEFrameSetDlg) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
activeToolCount = "0";
|
||||
|
||||
new GuiFrameSetCtrl(AIEFrameSet) {
|
||||
profile = "EditorContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "120 30";
|
||||
extent = "520 420";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
columns = "0";
|
||||
rows = "0";
|
||||
borderWidth = "4";
|
||||
borderColor = "206 206 206 206";
|
||||
borderEnable = "dynamic";
|
||||
borderMovable = "dynamic";
|
||||
autoBalance = "0";
|
||||
|
||||
new GuiControl(AIEFrame) {
|
||||
profile = "EditTSControlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "520 420";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
borderWidth = "2";
|
||||
|
||||
};
|
||||
new GuiFrameSetCtrl(AIEToolFrameSet) {
|
||||
profile = "EditorContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "520 420";
|
||||
extent = "20 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
columns = "0";
|
||||
borderWidth = "3";
|
||||
borderColor = "206 206 206 206";
|
||||
borderEnable = "dynamic";
|
||||
borderMovable = "dynamic";
|
||||
autoBalance = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIEFrameSetDlg::getPrefs(%this)
|
||||
{
|
||||
}
|
||||
|
||||
function AIEFrameSetDlg::setPrefs(%this)
|
||||
{
|
||||
}
|
||||
|
||||
function AIEFrameSetDlg::onWake(%this)
|
||||
{
|
||||
$AIEdit = true;
|
||||
AIEditorMap.push();
|
||||
aiEdit.clearIgnoreList();
|
||||
aiEdit.ignoreObjClass(AIObjective);
|
||||
aiEdit.toggleIgnoreList = true;
|
||||
aiEdit.renderNav = true;
|
||||
}
|
||||
|
||||
function AIEFrameSetDlg::onSleep(%this)
|
||||
{
|
||||
$AIEdit = false;
|
||||
AIEditorMap.pop();
|
||||
EditorTree.open("MissionGroup");
|
||||
}
|
||||
|
||||
function AIEFrameSetDlg::init(%this)
|
||||
{
|
||||
AIEFrame.add(aiEdit);
|
||||
%this.resetFrames();
|
||||
}
|
||||
|
||||
function AIEFrameSetDlg::update(%this)
|
||||
{
|
||||
// check the frame to see if it is visible
|
||||
if(AIEToolFrameSet.getCount())
|
||||
{
|
||||
%res = getResolution();
|
||||
|
||||
//90 = width of button bar
|
||||
%width = getWord(%res, 0) - 90;
|
||||
|
||||
if(AIEFrameSet.getColumnOffset(1) > %width - editor.minToolFrameWidth)
|
||||
AIEFrameSet.setColumnOffset(1, %width - editor.minToolFrameWidth);
|
||||
}
|
||||
}
|
||||
|
||||
function AIEFrameSetDlg::resetFrames(%this)
|
||||
{
|
||||
%tools = AIEToolFrameSet;
|
||||
while(%tools.getRowCount() > %tools.getCount())
|
||||
%tools.removeRow();
|
||||
while(%tools.getRowCount() < %tools.getCount())
|
||||
%tools.addRow();
|
||||
|
||||
%offset = 400;
|
||||
|
||||
// update the frame view
|
||||
%frameSet = AIEFrameSet;
|
||||
if(!%tools.getCount() && (%frameSet.getColumnCount() > 1))
|
||||
{
|
||||
%Offset = %frameSet.getColumnOffset(1);
|
||||
%frameSet.removeColumn();
|
||||
}
|
||||
if(%tools.getCount() && (%frameSet.getColumnCount() == 1))
|
||||
{
|
||||
%frameSet.addColumn();
|
||||
%frameSet.setColumnOffset(1, %offset);
|
||||
}
|
||||
|
||||
//if(%tools.getCount())
|
||||
//%this.toolPaneOffset = AIEFrameSet.getColumnOffset(1);
|
||||
%this.activeToolCount = %tools.getCount();
|
||||
}
|
||||
|
||||
function AIEFrameSetDlg::addTool(%this, %tool)
|
||||
{
|
||||
%group = nameToId("MissionGroup/Teams/team" @ $AIEditor::inspectTeam @ "/AIObjectives");
|
||||
|
||||
if(%group == -1)
|
||||
return false;
|
||||
|
||||
if($AIEditor::inspectTeam == 1)
|
||||
EditorTree.open("MissionGroup/Teams/team1/AIObjectives");
|
||||
else
|
||||
EditorTree.open("MissionGroup/Teams/team2/AIObjectives");
|
||||
|
||||
AIEToolFrameSet.add(%tool);
|
||||
%this.resetFrames();
|
||||
return true;
|
||||
}
|
||||
|
||||
function AIEFrameSetDlg::removeTool(%this, %tool)
|
||||
{
|
||||
AIEToolFrameSet.remove(%tool);
|
||||
%this.resetFrames();
|
||||
}
|
||||
|
||||
83
base/gui/AIEStatusbarDlg.gui
Normal file
83
base/gui/AIEStatusbarDlg.gui
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(AIEStatusBarDlg) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "EditorContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "top";
|
||||
position = "0 450";
|
||||
extent = "640 30";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "6 8";
|
||||
extent = "39 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Mission:";
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "49 6";
|
||||
extent = "188 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(AIEMissionNameText) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "3 2";
|
||||
extent = "8 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIEStatusBarDlg::init(%this)
|
||||
{
|
||||
%this.update();
|
||||
}
|
||||
|
||||
function AIEStatusBarDlg::update(%this)
|
||||
{
|
||||
if($MissionName $= "")
|
||||
AIEMissionNameText.setValue("<none>");
|
||||
else
|
||||
AIEMissionNameText.setValue($MissionName);
|
||||
}
|
||||
66
base/gui/AIEWorkingDlg.gui
Normal file
66
base/gui/AIEWorkingDlg.gui
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(AIEWorkingDlg) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiChunkedBitmapCtrl() {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "234 5";
|
||||
extent = "400 130";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellLargeLabelProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "16 10";
|
||||
extent = "378 40";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Building Graph ...";
|
||||
};
|
||||
new GuiProgressCtrl(GraphBuildProgress) {
|
||||
profile = "ShellProgressBarProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "top";
|
||||
position = "29 50";
|
||||
extent = "342 31";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
setValue = "0";
|
||||
};
|
||||
new GuiTextCtrl(GraphCurrentOperation) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "35 96";
|
||||
extent = "8 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
46
base/gui/AIEditorGui.gui
Normal file
46
base/gui/AIEditorGui.gui
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
|
||||
new WorldEditor(aiEdit)
|
||||
{
|
||||
profile = "";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "520 420";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AIworking(%working)
|
||||
{
|
||||
if(%working)
|
||||
{
|
||||
Canvas.pushDialog(AIEWorkingDlg);
|
||||
GraphBuildProgress.setValue(0.0);
|
||||
}
|
||||
else
|
||||
Canvas.popDialog(AIEWorkingDlg);
|
||||
|
||||
Canvas.repaint();
|
||||
}
|
||||
|
||||
new ActionMap(AIEditorMap);
|
||||
//AIEditorMap.bindCmd(keyboard, "space", "aiEdit.nextMode();", "");
|
||||
|
||||
AIEditorMap.bindCmd(keyboard, "ctrl c", "aiEdit.copySelection();", "");
|
||||
AIEditorMap.bindCmd(keyboard, "ctrl x", "aiEdit.copySelection();aiEdit.deleteSelection();", "");
|
||||
AIEditorMap.bindCmd(keyboard, "delete", "aiEdit.copySelection();aiEdit.deleteSelection();", "");
|
||||
AIEditorMap.bindCmd(keyboard, "ctrl v", "aiEdit.pasteSelection();", "");
|
||||
AIEditorMap.bindCmd(keyboard, "ctrl h", "aiEdit.hideSelection(true);", "");
|
||||
AIEditorMap.bindCmd(keyboard, "alt h", "aiEdit.hideSelection(false);", "");
|
||||
AIEditorMap.bindCmd(keyboard, "i", "Canvas.pushDialog(interiorDebugDialog);", "");
|
||||
AIEditorMap.bindCmd(keyboard, "ctrl d", "aiEdit.dropSelection();", "");
|
||||
AIEditorMap.bindCmd(keyboard, "ctrl q", "aiEdit.dropCameraToSelection();", "");
|
||||
AIEditorMap.bindCmd(keyboard, "ctrl m", "aiEdit.moveSelectionInPlace();", "");
|
||||
AIEditorMap.bindCmd(keyboard, "ctrl r", "aiEdit.resetTransforms();", "");
|
||||
AIEditorMap.bindCmd(keyboard, "space", "aiEdit.nextMode();", "");
|
||||
|
||||
|
||||
90
base/gui/AIEditorToolBar.gui
Normal file
90
base/gui/AIEditorToolBar.gui
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(AIEditorToolBar) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "EditorContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 30";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiCheckBoxCtrl(AIEditorObjectivesTree1CheckBox) {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "290 5";
|
||||
extent = "114 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "AIEditorObjectivesTree1CheckBox.setTreeGui(1);";
|
||||
helpTag = "0";
|
||||
text = "Objectives Team 1";
|
||||
};
|
||||
new GuiCheckBoxCtrl(AIEditorObjectivesTree2CheckBox) {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "405 5";
|
||||
extent = "114 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "AIEditorObjectivesTree2CheckBox.setTreeGui(2);";
|
||||
helpTag = "0";
|
||||
text = "Objectives Team 2";
|
||||
};
|
||||
new GuiCheckBoxCtrl(AIEditorObjectivesInspectorCheckBox) {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "520 5";
|
||||
extent = "114 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
command = "if($ThisControl.getValue()) AIEFrameSetDlg.addTool(EditorToolInspectorGui); else AIEFrameSetDlg.removeTool(EditorToolInspectorGui);";
|
||||
helpTag = "0";
|
||||
text = "Objectives Inspector";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
function AIEditorToolBar::init(%this)
|
||||
{
|
||||
}
|
||||
|
||||
function AIEditorObjectivesTree1CheckBox::setTreeGui(%this, %team)
|
||||
{
|
||||
$AIEditor::inspectTeam = %team;
|
||||
AIEditorObjectivesTree2CheckBox.setValue(false);
|
||||
|
||||
if($ThisControl.getValue())
|
||||
%isSet = AIEFrameSetDlg.addTool(EditorToolTreeViewGui);
|
||||
else
|
||||
%isSet = AIEFrameSetDlg.removeTool(EditorToolTreeViewGui);
|
||||
|
||||
$ThisControl.setValue(%isSet);
|
||||
}
|
||||
|
||||
function AIEditorObjectivesTree2CheckBox::setTreeGui(%this, %team)
|
||||
{
|
||||
$AIEditor::inspectTeam = %team;
|
||||
AIEditorObjectivesTree1CheckBox.setValue(false);
|
||||
|
||||
if($ThisControl.getValue())
|
||||
%isSet = AIEFrameSetDlg.addTool(EditorToolTreeViewGui);
|
||||
else
|
||||
%isSet = AIEFrameSetDlg.removeTool(EditorToolTreeViewGui);
|
||||
|
||||
$ThisControl.setValue(%isSet);
|
||||
}
|
||||
338
base/gui/AddressDlg.gui
Normal file
338
base/gui/AddressDlg.gui
Normal file
|
|
@ -0,0 +1,338 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(AddressDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lbstate = "buddylist";
|
||||
msg = "Request Processed";
|
||||
lbline = "6";
|
||||
DestList = "1";
|
||||
key = "28";
|
||||
state = "noprocess";
|
||||
lbcount = "6";
|
||||
blstate = "DONE";
|
||||
useVariable = "0";
|
||||
doRefresh = "1";
|
||||
SrcList = "2";
|
||||
err = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "79 68";
|
||||
extent = "481 344";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "LIST CONTROL";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellBitmapButton(LC_CCListBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "219 178";
|
||||
extent = "75 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "AddressDlg.AddCC();";
|
||||
helpTag = "0";
|
||||
text = "DEL";
|
||||
simpleStyle = "0";
|
||||
direction = "1";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "30 115";
|
||||
extent = "183 178";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 7";
|
||||
extent = "159 164";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextList(LC_BigList) {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "159 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$LCBigList";
|
||||
command = "AddressDlg.onClick(\"BIGLIST\");";
|
||||
altCommand = "AddressDlg.onDblClick(0);";
|
||||
helpTag = "0";
|
||||
enumerate = "1";
|
||||
resizeCell = "1";
|
||||
columns = "0";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(LC_ToListBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "219 38";
|
||||
extent = "75 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "AddressDlg.AddTo();";
|
||||
helpTag = "0";
|
||||
text = "DEL";
|
||||
simpleStyle = "0";
|
||||
direction = "1";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "284 40";
|
||||
extent = "168 119";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 7";
|
||||
extent = "144 105";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextList(LC_ToList) {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "144 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$LCToList";
|
||||
command = "AddressDlg.onClick(\"TOLIST\");";
|
||||
altCommand = "AddressDlg.onDblClick(1);";
|
||||
helpTag = "0";
|
||||
enumerate = "1";
|
||||
resizeCell = "1";
|
||||
columns = "0";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
direction = "1";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(LC_BuddyListBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 288";
|
||||
extent = "194 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "AddressDlg.AddBuddyList();";
|
||||
helpTag = "0";
|
||||
text = "ADD TO BUDDYLIST";
|
||||
simpleStyle = "0";
|
||||
direction = "0";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "284 175";
|
||||
extent = "168 118";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 7";
|
||||
extent = "144 104";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextList(LC_CCList) {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "144 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$LCCCList";
|
||||
command = "AddressDlg.OnClick(\"CCLIST\");";
|
||||
altCommand = "AddressDlg.onDblClick(2);";
|
||||
helpTag = "0";
|
||||
enumerate = "1";
|
||||
resizeCell = "1";
|
||||
columns = "0";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(LC_OKBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "368 288";
|
||||
extent = "89 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "AddressDlg.OK();";
|
||||
helpTag = "0";
|
||||
text = "OK";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "288 29";
|
||||
extent = "40 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "TO List:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "288 163";
|
||||
extent = "41 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CC List:";
|
||||
};
|
||||
new ShellBitmapButton(LC_CancelBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "278 288";
|
||||
extent = "89 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "AddressDlg.Cancel();";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellPopupMenu(LC_ListBox) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "27 76";
|
||||
extent = "193 36";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
command = "AddressDlg.onClick(\"LISTBOX\");";
|
||||
helpTag = "0";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new ShellTextEditCtrl(LC_Search) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "25 38";
|
||||
extent = "158 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$LCSearch";
|
||||
command = "AddressDlg.onClick(\"SEARCHBOX\");";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "255";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "37 29";
|
||||
extent = "38 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Search:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "37 68";
|
||||
extent = "22 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "List:";
|
||||
};
|
||||
new ShellBitmapButton(LC_GoSearchBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "167 38";
|
||||
extent = "53 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "AddressDlg.GoSearch();";
|
||||
helpTag = "0";
|
||||
text = "GO";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
406
base/gui/AdvancedHostDlg.gui
Normal file
406
base/gui/AdvancedHostDlg.gui
Normal file
|
|
@ -0,0 +1,406 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(AdvancedHostDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "70 30";
|
||||
extent = "500 420";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "ADVANCED HOST OPTIONS";
|
||||
maxLength = "255";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "88 40";
|
||||
extent = "40 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Port:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellTextEditCtrl(AH_HostPort) {
|
||||
profile = "NewTextEditNumericProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "124 32";
|
||||
extent = "98 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
maxLength = "8";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "223 40";
|
||||
extent = "64 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Time Limit:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellTextEditCtrl(AH_TimeLimit) {
|
||||
profile = "NewTextEditNumericProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "283 32";
|
||||
extent = "68 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
maxLength = "3";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "349 40";
|
||||
extent = "41 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Minutes";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "97 70";
|
||||
extent = "110 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Admin Password:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellTextEditCtrl(AH_AdminPassword) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "203 62";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
maxLength = "16";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellToggleButton(AH_DedicatedTgl) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "82 106";
|
||||
extent = "150 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "DEDICATED";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellToggleButton(AH_AdminVoteTgl) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "268 106";
|
||||
extent = "150 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "ALLOW ADMIN VOTES";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellToggleButton(AH_TournamentTgl) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "82 136";
|
||||
extent = "150 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "TOURNAMENT MODE";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellToggleButton(AH_AllowSmurfTgl) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "268 136";
|
||||
extent = "150 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "ALLOW ALIASES";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "62 174";
|
||||
extent = "114 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Vote Pass Percentage:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl(AH_VotePassText) {
|
||||
profile = "ShellAltTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "181 175";
|
||||
extent = "29 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "60%";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellSliderCtrl(AH_VotePassSlider) {
|
||||
profile = "ShellSliderProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 189";
|
||||
extent = "170 24";
|
||||
minExtent = "12 24";
|
||||
visible = "1";
|
||||
variable = "value";
|
||||
altCommand = "AH_VotePassText.update();";
|
||||
helpTag = "0";
|
||||
range = "50.000000 100.000000";
|
||||
ticks = "51";
|
||||
value = "70";
|
||||
usePlusMinus = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "62 214";
|
||||
extent = "54 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Vote Time:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl(AH_VoteTimeText) {
|
||||
profile = "ShellAltTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "121 215";
|
||||
extent = "69 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "20 seconds";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellSliderCtrl(AH_VoteTimeSlider) {
|
||||
profile = "ShellSliderProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 229";
|
||||
extent = "170 24";
|
||||
minExtent = "12 24";
|
||||
visible = "1";
|
||||
variable = "value";
|
||||
altCommand = "AH_VoteTimeText.update();";
|
||||
helpTag = "0";
|
||||
range = "10.000000 60.000000";
|
||||
ticks = "51";
|
||||
value = "20";
|
||||
usePlusMinus = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "260 175";
|
||||
extent = "93 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Observer Timeout:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl(AH_RespawnText) {
|
||||
profile = "ShellAltTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "358 176";
|
||||
extent = "69 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "30 seconds";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellSliderCtrl(AH_RespawnSlider) {
|
||||
profile = "ShellSliderProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "270 190";
|
||||
extent = "170 24";
|
||||
minExtent = "12 24";
|
||||
visible = "1";
|
||||
variable = "value";
|
||||
altCommand = "AH_RespawnText.update();";
|
||||
helpTag = "0";
|
||||
range = "10.000000 60.000000";
|
||||
ticks = "51";
|
||||
value = "45";
|
||||
usePlusMinus = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "260 215";
|
||||
extent = "72 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Warmup Time:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl(AH_WarmupText) {
|
||||
profile = "ShellAltTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "337 216";
|
||||
extent = "69 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "30 seconds";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellSliderCtrl(AH_WarmupSlider) {
|
||||
profile = "ShellSliderProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "270 230";
|
||||
extent = "170 24";
|
||||
minExtent = "12 24";
|
||||
visible = "1";
|
||||
variable = "value";
|
||||
altCommand = "AH_WarmupText.update();";
|
||||
helpTag = "0";
|
||||
range = "0.000000 30.000000";
|
||||
ticks = "31";
|
||||
value = "20";
|
||||
usePlusMinus = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "123 262";
|
||||
extent = "58 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Server Info:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "120 275";
|
||||
extent = "260 85";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "7 7";
|
||||
extent = "230 71";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextEditCtrl(AH_ServerInfo) {
|
||||
profile = "ShellMessageTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "230 71";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "-1";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "74 365";
|
||||
extent = "140 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog( AdvancedHostDlg );";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "287 365";
|
||||
extent = "140 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "AdvancedHostDlg.Accept();";
|
||||
helpTag = "0";
|
||||
text = "SAVE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
96
base/gui/BrowserEditInfoDlg.gui
Normal file
96
base/gui/BrowserEditInfoDlg.gui
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(BrowserEditInfoDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "70 80";
|
||||
extent = "500 320";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EDIT DESCRIPTION";
|
||||
maxLength = "255";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "81 265";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "TribePropertiesDlg.pendingChanges = \"\";Canvas.popDialog(BrowserEditInfoDlg);";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "25 34";
|
||||
extent = "449 233";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 7";
|
||||
extent = "419 219";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextEditCtrl(EditDescriptionText) {
|
||||
profile = "ShellMessageTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "419 219";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "1";
|
||||
maxChars = "3600";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "291 265";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EditDescriptionApply();";
|
||||
helpTag = "0";
|
||||
text = "APPLY";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
147
base/gui/BrowserSearchDlg.gui
Normal file
147
base/gui/BrowserSearchDlg.gui
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(BrowserSearchDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl(BrowserSearchPane) {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "120 61";
|
||||
extent = "399 358";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "97 46";
|
||||
extent = "44 16";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Search:";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "84 93";
|
||||
extent = "226 187";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 7";
|
||||
extent = "202 173";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextList(BrowserSearchMatchList) {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "202 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
altCommand = "BrowserSearchDone();";
|
||||
helpTag = "0";
|
||||
enumerate = "0";
|
||||
resizeCell = "1";
|
||||
columns = "0";
|
||||
fitParentWidth = "1";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(BSearchOKBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "201 288";
|
||||
extent = "115 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "BrowserSearchDone();";
|
||||
helpTag = "0";
|
||||
text = "OK";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "172 80";
|
||||
extent = "47 16";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Matches:";
|
||||
};
|
||||
new ShellTextEditCtrl(Search_EditField) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "139 33";
|
||||
extent = "133 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$BrowserSearchField";
|
||||
altCommand = "BrowserStartSearch();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "255";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "80 288";
|
||||
extent = "116 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog(BrowserSearchDlg);";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "262 33";
|
||||
extent = "51 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "BrowserStartSearch();";
|
||||
helpTag = "0";
|
||||
text = "GO";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
26
base/gui/CenterPrint.gui
Normal file
26
base/gui/CenterPrint.gui
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(CenterPrintDlg) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "638 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(CenterPrintText) {
|
||||
profile = "ShellProgressBarTextProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "300 240";
|
||||
extent = "640 128";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "6";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
//--- OBJECT WRITE END ---
|
||||
107
base/gui/ChannelBanDlg.gui
Normal file
107
base/gui/ChannelBanDlg.gui
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ChannelBanDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl(ChannelBanPane) {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "154 65";
|
||||
extent = "332 346";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EDIT BAN LIST";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "27 28";
|
||||
extent = "72 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Warrior Name:";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "22 42";
|
||||
extent = "287 248";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 7";
|
||||
extent = "279 234";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellChatMemberList(ChannelBanList) {
|
||||
profile = "ShellChatMemberListProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "263 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
enumerate = "0";
|
||||
resizeCell = "1";
|
||||
columns = "0 169";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(ChannelBanRemoveBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "32 291";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ChannelRemoveBan();";
|
||||
helpTag = "0";
|
||||
text = "REMOVE BAN";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "169 291";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog(ChannelBanDlg);";
|
||||
helpTag = "0";
|
||||
text = "DONE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
110
base/gui/ChannelKeyDlg.gui
Normal file
110
base/gui/ChannelKeyDlg.gui
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ChannelKeyDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "120 160";
|
||||
extent = "400 159";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CHANNEL PASSWORD";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "34 40";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Channel:";
|
||||
};
|
||||
new ShellFieldCtrl() {
|
||||
profile = "ShellFieldProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "119 38";
|
||||
extent = "221 24";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(KeyChannelName) {
|
||||
profile = "ShellStaticTextProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "bottom";
|
||||
position = "8 3";
|
||||
extent = "205 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "34 70";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Password:";
|
||||
};
|
||||
new ShellTextEditCtrl(EditChannelKey) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "110 62";
|
||||
extent = "238 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "255";
|
||||
password = "1";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "48 104";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog(ChannelKeyDlg);";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "224 104";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "KeyChannelJoin();";
|
||||
helpTag = "0";
|
||||
text = "JOIN";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
224
base/gui/ChannelOptionsDlg.gui
Normal file
224
base/gui/ChannelOptionsDlg.gui
Normal file
|
|
@ -0,0 +1,224 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ChannelOptionsDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "75 102";
|
||||
extent = "490 276";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CHANNEL OPTIONS";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "25 38";
|
||||
extent = "60 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Channel:";
|
||||
};
|
||||
new ShellFieldCtrl() {
|
||||
profile = "ShellFieldProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "91 36";
|
||||
extent = "218 24";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(EditChannelName) {
|
||||
profile = "ShellStaticTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "8 3";
|
||||
extent = "202 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "25 68";
|
||||
extent = "60 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Topic:";
|
||||
};
|
||||
new ShellTextEditCtrl(EditChannelTopic) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "81 60";
|
||||
extent = "362 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "64";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellToggleButton(ButtonChannelInvite) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "63 106";
|
||||
extent = "150 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$EditChannelInvite";
|
||||
command = "ToggleChannelInvite();";
|
||||
helpTag = "0";
|
||||
text = "INVITE ONLY";
|
||||
};
|
||||
new ShellToggleButton(ButtonChannelModerate) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "277 106";
|
||||
extent = "150 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$EditChannelModerate";
|
||||
helpTag = "0";
|
||||
text = "MODERATE";
|
||||
};
|
||||
new ShellToggleButton(ButtonChannelLimit) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "45 148";
|
||||
extent = "150 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$EditChannelLimit";
|
||||
command = "ToggleChannelLimit();";
|
||||
helpTag = "0";
|
||||
text = "LIMIT MEMBERS";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "201 151";
|
||||
extent = "60 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Max:";
|
||||
};
|
||||
new ShellTextEditCtrl(EditChannelMaxMembers) {
|
||||
profile = "NewTextEditNumericProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "256 143";
|
||||
extent = "99 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "5";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellToggleButton(ButtonChannelKey) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "45 178";
|
||||
extent = "150 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$EditChannelKey";
|
||||
command = "ToggleChannelKey();";
|
||||
helpTag = "0";
|
||||
text = "REQUIRE PASSWORD";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "201 181";
|
||||
extent = "60 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Password:";
|
||||
};
|
||||
new ShellTextEditCtrl(EditChannelPassword) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "256 173";
|
||||
extent = "198 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "16";
|
||||
password = "1";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "315 30";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.pushDialog(ChannelBanDlg);";
|
||||
helpTag = "0";
|
||||
text = "BAN LIST";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "78 221";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CancelChannelOptions();";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(ButtonChannelAccept) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "284 221";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "AcceptChannelOptions();";
|
||||
helpTag = "0";
|
||||
text = "ACCEPT";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
125
base/gui/ChatDlg.gui
Normal file
125
base/gui/ChatDlg.gui
Normal file
|
|
@ -0,0 +1,125 @@
|
|||
new GuiControl(MainChatHud) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
modal = "1";
|
||||
setFirstResponder = "0";
|
||||
|
||||
new GuiNoMouseCtrl() {
|
||||
profile = "defaultGuiProfile";
|
||||
horizSizing = "relative";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "400 300";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
|
||||
new HudHorzCtrl(mainVoteHud) {
|
||||
profile = "HudVoteBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "8 75";
|
||||
extent = "256 5";
|
||||
minExtent = "2 2";
|
||||
visible = "0";
|
||||
|
||||
new GuiVoteCtrl(voteHud) {
|
||||
profile = "ShellProgressBarProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "6 2";
|
||||
extent = "244 3";
|
||||
minExtent = "2 2";
|
||||
visible = "0";
|
||||
};
|
||||
};
|
||||
|
||||
new ShellFieldCtrl(OuterChatHud)
|
||||
{
|
||||
profile = "GuiChatBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "8 8";
|
||||
extent = "256 72";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
|
||||
new GuiBitmapCtrl(chatPageDown)
|
||||
{
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "250 50";
|
||||
extent = "13 13";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
bitmap = "gui/hud_chatPageDown.png";
|
||||
};
|
||||
|
||||
new GuiScrollCtrl(ChatScrollHud)
|
||||
{
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "252 64";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOff";
|
||||
constantThumbHeight = "0";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "252 64";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMessageVectorCtrl(ChatHud)
|
||||
{
|
||||
profile = "GuiChatHudProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "4 4";
|
||||
extent = "252 64";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
lineSpacing = "0";
|
||||
lineContinuedIndex = "10";
|
||||
allowedMatches[0] = "http";
|
||||
allowedMatches[1] = "t2server";
|
||||
matchColors[0] = "0 0 255 255";
|
||||
matchColors[1] = "255 0 0 255";
|
||||
matchColors[2] = "0 0 255 255";
|
||||
matchColors[3] = "0 0 255 255";
|
||||
matchColors[4] = "0 0 255 255";
|
||||
matchColors[5] = "0 0 255 255";
|
||||
matchColors[6] = "0 0 255 255";
|
||||
matchColors[7] = "0 0 255 255";
|
||||
matchColors[8] = "0 0 255 255";
|
||||
matchColors[9] = "0 0 255 255";
|
||||
matchColors[10] = "0 0 255 255";
|
||||
matchColors[11] = "0 0 255 255";
|
||||
matchColors[12] = "0 0 255 255";
|
||||
matchColors[13] = "0 0 255 255";
|
||||
matchColors[14] = "0 0 255 255";
|
||||
matchColors[15] = "0 0 255 255";
|
||||
maxColorIndex = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
220
base/gui/ChatGui.gui
Normal file
220
base/gui/ChatGui.gui
Normal file
|
|
@ -0,0 +1,220 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiChunkedBitmapCtrl(ChatGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$ShellBackground";
|
||||
helpTag = "0";
|
||||
useVariable = "1";
|
||||
|
||||
new ShellPaneCtrl(ChatChannelPane) {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "12 46";
|
||||
extent = "620 390";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CHAT";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellTabFrame(ChatTabFrame) {
|
||||
profile = "ShellHorzTabFrameProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "22 54";
|
||||
extent = "576 254";
|
||||
minExtent = "26 254";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
isVertical = "0";
|
||||
useCloseButton = "0";
|
||||
edgeInset = "0";
|
||||
};
|
||||
new ShellTabGroupCtrl(ChatTabView) {
|
||||
profile = "TabGroupProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "30 25";
|
||||
extent = "560 29";
|
||||
minExtent = "38 29";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
glowOffset = "7";
|
||||
tabSpacing = "2";
|
||||
maxTabWidth = "150";
|
||||
stretchToFit = "0";
|
||||
};
|
||||
new ShellScrollCtrl(ChatGuiScroll) {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "33 91";
|
||||
extent = "381 251";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "2 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "6 7";
|
||||
extent = "353 237";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiChannelVectorCtrl(ChatGuiMessageVector) {
|
||||
profile = "GuiChannelVectorProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "357 19";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "0";
|
||||
lineContinuedIndex = "5";
|
||||
allowedMatches[0] = "http";
|
||||
matchColor = "0 0 255 255";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "height";
|
||||
position = "412 62";
|
||||
extent = "175 308";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 2";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 6";
|
||||
extent = "151 296";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellChatMemberList(ChatRoomMemberList) {
|
||||
profile = "ShellChatMemberListProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "149 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
altCommand = "ChatPrivate();";
|
||||
helpTag = "0";
|
||||
enumerate = "1";
|
||||
resizeCell = "1";
|
||||
columns = "0";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellTextEditCtrl(ChatMessageEntry) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "top";
|
||||
position = "27 337";
|
||||
extent = "392 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
altCommand = "ChatSendText();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "255";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "34 69";
|
||||
extent = "38 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "TOPIC:";
|
||||
};
|
||||
new GuiBubbleTextCtrl(ChatChannelTopic) {
|
||||
profile = "ShellTopicTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "78 69";
|
||||
extent = "207 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "This is a sample chat topic";
|
||||
};
|
||||
new ShellBitmapButton(ChatOpenPaneBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "285 60";
|
||||
extent = "100 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ChatTabView.openNewPane();";
|
||||
helpTag = "0";
|
||||
text = "CHANNELS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(ChatClosePaneBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "377 60";
|
||||
extent = "43 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ChatTabView.closeCurrentPane();";
|
||||
accelerator = "x";
|
||||
helpTag = "0";
|
||||
text = "X";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(ChatEditChannelBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "15 -5";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "0";
|
||||
command = "EditChannelOptions();";
|
||||
helpTag = "0";
|
||||
text = "CHANNEL OPTIONS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
148
base/gui/ChooseFilterDlg.gui
Normal file
148
base/gui/ChooseFilterDlg.gui
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ChooseFilterDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "95 78";
|
||||
extent = "450 324";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CHANGE FILTER";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "44 32";
|
||||
extent = "98 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CHOOSE A FILTER:";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "39 49";
|
||||
extent = "218 220";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 7";
|
||||
extent = "188 206";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextList(CF_FilterList) {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "188 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
altCommand = "ChooseFilterDlg.editFilter();";
|
||||
helpTag = "0";
|
||||
enumerate = "0";
|
||||
resizeCell = "1";
|
||||
columns = "0";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(CF_NewFilterBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "280 46";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ChooseFilterDlg.newFilter();";
|
||||
helpTag = "0";
|
||||
text = "NEW FILTER";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(CF_EditFilterBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "280 76";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ChooseFilterDlg.editFilter();";
|
||||
helpTag = "0";
|
||||
text = "EDIT FILTER";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(CF_DeleteFilterBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "280 106";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ChooseFilterDlg.deleteFilter();";
|
||||
helpTag = "0";
|
||||
text = "DELETE FILTER";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "65 269";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog(ChooseFilterDlg);";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(CF_GoBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "257 269";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ChooseFilterDlg.go();";
|
||||
helpTag = "0";
|
||||
text = "GO!";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
81
base/gui/CommanderChatDlg.gui
Normal file
81
base/gui/CommanderChatDlg.gui
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiCommanderNoFocusCtrl(CommanderChatDlg)
|
||||
{
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new HudFancyCtrl()
|
||||
{
|
||||
profile = "GuiChatBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "60 0";
|
||||
extent = "330 80";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiScrollCtrl()
|
||||
{
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "7 4";
|
||||
extent = "320 70";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "0";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOff";
|
||||
constantThumbHeight = "0";
|
||||
|
||||
new GuiMessageVectorCtrl(CommanderChatHud)
|
||||
{
|
||||
profile = "GuiChatHudProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "7 4";
|
||||
extent = "320 70";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "0";
|
||||
helpTag = "0";
|
||||
lineSpacing = "0";
|
||||
lineContinuedIndex = "5";
|
||||
allowedMatches[0] = "http";
|
||||
allowedMatches[1] = "t2server";
|
||||
matchColors[0] = "0 0 255 255";
|
||||
matchColors[1] = "255 0 0 255";
|
||||
matchColors[2] = "0 0 255 255";
|
||||
matchColors[3] = "0 0 255 255";
|
||||
matchColors[4] = "0 0 255 255";
|
||||
matchColors[5] = "0 0 255 255";
|
||||
matchColors[6] = "0 0 255 255";
|
||||
matchColors[7] = "0 0 255 255";
|
||||
matchColors[8] = "0 0 255 255";
|
||||
matchColors[9] = "0 0 255 255";
|
||||
matchColors[10] = "0 0 255 255";
|
||||
matchColors[11] = "0 0 255 255";
|
||||
matchColors[12] = "0 0 255 255";
|
||||
matchColors[13] = "0 0 255 255";
|
||||
matchColors[14] = "0 0 255 255";
|
||||
matchColors[15] = "0 0 255 255";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
284
base/gui/CommanderMapGui.gui
Normal file
284
base/gui/CommanderMapGui.gui
Normal file
|
|
@ -0,0 +1,284 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(CommanderMapGui)
|
||||
{
|
||||
profile = "CommanderGuiProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
visible = "1";
|
||||
|
||||
new GuiCommanderMap(CommanderMap)
|
||||
{
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "475 480";
|
||||
|
||||
// field data
|
||||
defaultCursor = DefaultCursor;
|
||||
arrowCursor = CMDCursorArrow;
|
||||
handCursor = CMDCursorHandOpen;
|
||||
moveCursor = CMDCursorHandClosed;
|
||||
zoomCursor = CMDCursorZoom;
|
||||
addCursor = CMDCursorSelectAdd;
|
||||
removeCursor = CMDCursorSelectRemove;
|
||||
mouseSelectRectColor = "255 255 0 255";
|
||||
cameraOffset = 10;
|
||||
cameraVelocity = 500;
|
||||
defaultIconName = CMDDefaultIcon;
|
||||
waypintIconName = CMDWaypointIcon;
|
||||
assignedTaskIconName = CMDAssignedTaskIcon;
|
||||
potentialTaskIconName = CMDPotentialTaskIcon;
|
||||
sensorSphereFrameAlpha = 75;
|
||||
sensorSphereFillAlpha = 30;
|
||||
renderMissionArea = true;
|
||||
missionAreaFillColor = "60 60 60 80";
|
||||
missionAreaFrameColor = "128 0 0 255";
|
||||
renderText = true;
|
||||
textOffset = 2;
|
||||
hilightedObjectColor = "234 154 4 200";
|
||||
selectedObjectColor = "2 247 248 200";
|
||||
playerMarkerAngle = 30;
|
||||
playerMarkerOffset = 8;
|
||||
playerMarkerLen = 8;
|
||||
playerMarkerColor = "0 255 0 200";
|
||||
minIconSize = 20;
|
||||
maxIconSize = 64;
|
||||
iconProjLen = "20.0";
|
||||
minDistanceScale = "0.02";
|
||||
maxDistanceScale = "0.05";
|
||||
enableEdgeMarkers = true;
|
||||
edgeMarkerSize = 32;
|
||||
renderSensors = false;
|
||||
};
|
||||
|
||||
new ShellScrollCtrl(CommanderTreeContainer)
|
||||
{
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "height";
|
||||
vScrollBar = "alwaysOn";
|
||||
hScrollBar = "alwaysOff";
|
||||
position = "471 -4";
|
||||
extent = "173 458";
|
||||
|
||||
new GuiScrollContentCtrl()
|
||||
{
|
||||
profile = "CommanderScrollContentProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "height";
|
||||
|
||||
new GuiCommanderTree(CommanderTree)
|
||||
{
|
||||
profile = "CommanderTreeProfile";
|
||||
position = "0 0";
|
||||
extent = "150 459";
|
||||
horizSizing = "left";
|
||||
vertSizing = "height";
|
||||
visible = "true";
|
||||
|
||||
// field data
|
||||
backdropBitmapName = "commander/gui/cmd_gradient";
|
||||
headerFontType = "Arial Bold";
|
||||
entryFontType = "Arial";
|
||||
clientNoneFontType = "Arial";
|
||||
headerFontSize = 14;
|
||||
entryFontSize = 13;
|
||||
clientNoneFontSize = 13;
|
||||
entryIconOffset = "2 1";
|
||||
entryTextOffset = "20 3";
|
||||
headerBitmapName = "commander/gui/cmd_columnheadbar";
|
||||
headerTextOffset = "10 4";
|
||||
clientNoneText = "None Selected";
|
||||
headerHeight = 20;
|
||||
entryHeight = 20;
|
||||
entryHilightColor = "44 168 219 100";
|
||||
entrySelectColor = "255 0 0 100";
|
||||
categoryOpenTime = 250;
|
||||
damageColors = "0 255 0 20 255 255 0 70 255 0 0 100";
|
||||
objectControlRect = "128 2 16 16";
|
||||
objectControlBitmapName = "commander/gui/cmd_control_checkbox";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
// boob-tube
|
||||
new GuiCommanderTV(CommanderTV)
|
||||
{
|
||||
profile = "CommanderButtonBackdropProfile";
|
||||
position = "475 300";
|
||||
extent = "165 150";
|
||||
visible = "false";
|
||||
vertSizing = "top";
|
||||
horizSizing = "left";
|
||||
frameBitmap = "commander/gui/cmd_tv_frame";
|
||||
staticBitmap = "commander/gui/cmd_tv_static";
|
||||
open = false;
|
||||
target = -1;
|
||||
|
||||
new GuiMouseEventCtrl(CommanderTVScreen)
|
||||
{
|
||||
profile = "DefaultProfile";
|
||||
position = "0 0";
|
||||
extent = "165 150";
|
||||
vertSizing = "top";
|
||||
horizSizing = "left";
|
||||
visible = "true";
|
||||
};
|
||||
};
|
||||
|
||||
// return to game
|
||||
new GuiControl()
|
||||
{
|
||||
profile = "CommanderButtonBackdropProfile";
|
||||
position = "475 450";
|
||||
extent = "165 31";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
|
||||
new ShellBitmapButton()
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
opaque = "true";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
visible = "1";
|
||||
position = "-6 -2";
|
||||
extent = "177 31";
|
||||
command = "CommanderMapGui.close();";
|
||||
text = "RETURN TO GAME";
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
// top button bar
|
||||
new GuiControl()
|
||||
{
|
||||
profile = "DefaultProfile";
|
||||
position = "437 -4";
|
||||
extent = "44 228";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
visible = "true";
|
||||
|
||||
new GuiCommanderMapCheckbox(CMDPlayersButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 0";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_players";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDTacticalButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 31";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_tactical";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDDeployedTacticalButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 62";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_tactical_D";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDMiscButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 93";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_misc";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDDeployedMiscButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 124";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_misc_D";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDWaypointsButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 155";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_waypoints";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDObjectivesButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 186";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_objectives";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
};
|
||||
|
||||
// bottom button bar
|
||||
new GuiControl()
|
||||
{
|
||||
profile = "DefaultProfile";
|
||||
position = "437 286";
|
||||
extent = "44 199";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
visible = "true";
|
||||
|
||||
new GuiCommanderMapCheckbox(CMDShowSensorsButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 0";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_sensor";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDMoveSelectButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 31";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_moveselect";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDZoomButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 62";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_zoom";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapButton(CMDCenterButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 93";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_center";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDTextButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 124";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_text";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
new GuiCommanderMapCheckbox(CMDCameraButton)
|
||||
{
|
||||
profile = "CommanderButtonProfile";
|
||||
position = "0 155";
|
||||
extent = "44 44";
|
||||
bitmap = "commander/gui/cmd_icon_camera";
|
||||
mouseRegion = "7 7 31 31";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
133
base/gui/CommonLoadDlg.gui
Normal file
133
base/gui/CommonLoadDlg.gui
Normal file
|
|
@ -0,0 +1,133 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(loadFileDialog) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "205 148";
|
||||
extent = "260 242";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "LOAD FILE";
|
||||
resizeWidth = "True";
|
||||
resizeHeight = "True";
|
||||
canMove = "True";
|
||||
canClose = "True";
|
||||
canMinimize = "True";
|
||||
canMaximize = "True";
|
||||
minSize = "50 50";
|
||||
closeCommand = "Canvas.popDialog(loadFileDialog);";
|
||||
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 24";
|
||||
extent = "181 212";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "dynamic";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "False";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiScrollContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "161 210";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextListCtrl(loadFileList) {
|
||||
profile = "GuiTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "64 64";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
altCommand = "eval($loadFileCommand); Canvas.popDialog(loadFileDialog);";
|
||||
helpTag = "0";
|
||||
enumerate = "False";
|
||||
resizeCell = "True";
|
||||
columns = "0";
|
||||
noDuplicates = "false";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "191 181";
|
||||
extent = "60 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "eval($loadFileCommand); Canvas.popDialog(loadFileDialog);";
|
||||
helpTag = "0";
|
||||
text = "LOAD";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "191 205";
|
||||
extent = "60 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.popDialog(loadFileDialog);";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
|
||||
function fillFileList(%filespec, %ctrl)
|
||||
{
|
||||
%ctrl.clear();
|
||||
%i = 0;
|
||||
for(%file = findFirstFile(%filespec); %file !$= ""; %file = findNextFile(%filespec))
|
||||
%ctrl.addRow(%i++, fileBase(%file) @ fileExt(%file));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// ex: getLoadFilename("stuff\*.*", loadStuff);
|
||||
// -- calls 'loadStuff(%filename)' on dblclick or ok
|
||||
//------------------------------------------------------------------------------
|
||||
function getLoadFilename(%filespec, %callback)
|
||||
{
|
||||
$loadFileCommand = "if(loadFileList.getSelectedId() >= 0)" @ %callback @ "(loadFileList.getValue());";
|
||||
Canvas.pushDialog(loadFileDialog, 99);
|
||||
fillFileList(%filespec, loadFileList);
|
||||
}
|
||||
|
||||
143
base/gui/CommonSaveDlg.gui
Normal file
143
base/gui/CommonSaveDlg.gui
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(saveFileDialog) {
|
||||
profile = "GuiDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "217 140";
|
||||
extent = "280 264";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "SAVE FILE";
|
||||
resizeWidth = "True";
|
||||
resizeHeight = "True";
|
||||
canMove = "True";
|
||||
canClose = "True";
|
||||
canMinimize = "True";
|
||||
canMaximize = "True";
|
||||
minSize = "50 50";
|
||||
closeCommand = "Canvas.popDialog(saveFileDialog);";
|
||||
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 24";
|
||||
extent = "196 212";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "dynamic";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "False";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiScrollContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "176 210";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextListCtrl(saveFileList) {
|
||||
profile = "GuiTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "64 64";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
altCommand = "eval($saveFileCommand); Canvas.popDialog(saveFileDialog);";
|
||||
helpTag = "0";
|
||||
enumerate = "False";
|
||||
resizeCell = "True";
|
||||
columns = "0";
|
||||
noDuplicates = "false";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "209 181";
|
||||
extent = "60 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "eval($saveFileCommand); Canvas.popDialog(saveFileDialog);";
|
||||
helpTag = "0";
|
||||
text = "SAVE";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "209 205";
|
||||
extent = "60 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.popDialog(saveFileDialog);";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
};
|
||||
new GuiTextEditCtrl(saveNameEdit) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 240";
|
||||
extent = "196 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
|
||||
function saveFileList::onSelect(%this, %id)
|
||||
{
|
||||
saveNameEdit.setValue(%this.getValue());
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// ex: getSaveFilename("stuff\*.*", saveStuff);
|
||||
// -- calls 'saveStuff(%filename)' on dblclick or ok
|
||||
//------------------------------------------------------------------------------
|
||||
function getSaveFilename(%filespec, %callback, %currentFile)
|
||||
{
|
||||
saveNameEdit.setValue(%currentFile);
|
||||
$saveFileCommand = "if(saveNameEdit.getValue() !$= \"\")" @ %callback @ "(saveNameEdit.getValue());";
|
||||
Canvas.pushDialog(saveFileDialog, 99);
|
||||
fillFileList(%filespec, saveFileList);
|
||||
}
|
||||
211
base/gui/CompTestGui.gui
Normal file
211
base/gui/CompTestGui.gui
Normal file
|
|
@ -0,0 +1,211 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(CompTestGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 10";
|
||||
extent = "620 460";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "alwaysOn";
|
||||
vScrollBar = "alwaysOff";
|
||||
constantThumbHeight = "False";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "618 440";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new CompTest(compObj) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "65536 460";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 20";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.setContent(MainMenuGui);";
|
||||
helpTag = "0";
|
||||
text = "Main Menu";
|
||||
};
|
||||
new GuiButtonCtrl(histoToggle) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 40";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "toggleHisto();";
|
||||
helpTag = "0";
|
||||
text = "Normal";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "124 20";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "compTestOpenFile();";
|
||||
helpTag = "0";
|
||||
text = "Open File";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "124 40";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "compTestSaveFile();";
|
||||
helpTag = "0";
|
||||
text = "Save File";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "244 20";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "compObj.buildRep(baseline);$CompTestType = baseline;";
|
||||
helpTag = "0";
|
||||
text = "Baseline";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "348 20";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "compObj.buildRep(hilbert);$CompTestType = hilbert;";
|
||||
helpTag = "0";
|
||||
text = "Hilbert";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "452 20";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "compObj.buildRep(delta);$CompTestType = delta;";
|
||||
helpTag = "0";
|
||||
text = "Delta";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "452 40";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "compObj.buildRep(delta2);$CompTestType = delta2;";
|
||||
helpTag = "0";
|
||||
text = "Delta2";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "452 60";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "compObj.buildRep(delta3);$CompTestType = delta3;";
|
||||
helpTag = "0";
|
||||
text = "Delta3";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
function compTest()
|
||||
{
|
||||
$CompTestShift = 0;
|
||||
$CompTestHisto = 0;
|
||||
$CompTestSaveHiLo = 0;
|
||||
$CompTestFile = "heights.out";
|
||||
$CompTestType = "baseline";
|
||||
Canvas.setContent(CompTestGui);
|
||||
compObj.buildRep($CompTestType);
|
||||
}
|
||||
|
||||
|
||||
function toggleHisto()
|
||||
{
|
||||
if($CompTestHisto)
|
||||
{
|
||||
histoToggle.setValue(Normal);
|
||||
$CompTestHisto = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
histoToggle.setValue(Histo);
|
||||
$CompTestHisto = 1;
|
||||
}
|
||||
compObj.buildRep($CompTestType);
|
||||
}
|
||||
|
||||
80
base/gui/ConsoleDlg.gui
Normal file
80
base/gui/ConsoleDlg.gui
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ConsoleDlg) {
|
||||
profile = "GuiDefaultProfile";
|
||||
|
||||
new GuiWindowCtrl()
|
||||
{
|
||||
profile = "GuiWindowProfile";
|
||||
position = "0 0";
|
||||
extent = "640 370";
|
||||
text = "Console";
|
||||
|
||||
new GuiScrollCtrl()
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
position = "0 0";
|
||||
extent = "640 350";
|
||||
hScrollBar = "alwaysOn";
|
||||
vScrollBar = "alwaysOn";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
|
||||
new GuiScrollContentCtrl("testScrollContentCtrl")
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
|
||||
new GuiConsole("testArrayCtrl")
|
||||
{
|
||||
profile = "GuiConsoleProfile";
|
||||
position = "0 0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
new GuiConsoleEditCtrl("ConsoleEntry")
|
||||
{
|
||||
profile = "GuiTextEditProfile";
|
||||
position = "0 350";
|
||||
extent = "640 20";
|
||||
historySize = 20;
|
||||
altCommand = "ConsoleEntry::eval();";
|
||||
horizSizing = "width";
|
||||
vertSizing = "top";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
$ConsoleActive = false;
|
||||
|
||||
function ConsoleEntry::eval()
|
||||
{
|
||||
%text = ConsoleEntry.getValue();
|
||||
echo("==>" @ %text);
|
||||
eval(%text);
|
||||
ConsoleEntry.setValue("");
|
||||
}
|
||||
|
||||
function ToggleConsole(%make)
|
||||
{
|
||||
if (%make)
|
||||
{
|
||||
if ($ConsoleActive)
|
||||
{
|
||||
Canvas.popDialog(ConsoleDlg);
|
||||
$ConsoleActive = false;
|
||||
if(!ConsoleDlg.mouseOn)
|
||||
CursorOff();
|
||||
}
|
||||
else
|
||||
{
|
||||
Canvas.pushDialog(ConsoleDlg, 99);
|
||||
ConsoleDlg.mouseOn = Canvas.isCursorOn();
|
||||
$ConsoleActive = true;
|
||||
if(!ConsoleDlg.mouseOn)
|
||||
CursorOn();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
316
base/gui/CreateAccountDlg.gui
Normal file
316
base/gui/CreateAccountDlg.gui
Normal file
|
|
@ -0,0 +1,316 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(CreateAccountDlg) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
open = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "70 36";
|
||||
extent = "500 408";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "ACCOUNT INFORMATION";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "35 35";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Login Name:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "35 110";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Password:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "35 140";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Confirm Password:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "35 170";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CD Key:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "35 218";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Email:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "174 289";
|
||||
extent = "134 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "We are COPPA compliant.";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "73 305";
|
||||
extent = "351 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "If you are under 13, you are not allowed to create a Tribes 2 account.";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "35 64";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Warrior Name:";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "131 27";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$CreateAccountLoginName";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "16";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "131 56";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$CreateAccountWarriorName";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "16";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "131 102";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$CreateAccountPassword";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "16";
|
||||
password = "1";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "131 132";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$CreateAccountConfirmPassword";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "16";
|
||||
password = "1";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl(CreateAccountCDKey1) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "131 162";
|
||||
extent = "72 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateAccountCDKey1.process();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "4";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl(CreateAccountCDKey2) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "191 162";
|
||||
extent = "72 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateAccountCDKey2.process();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "4";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl(CreateAccountCDKey3) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "251 162";
|
||||
extent = "72 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateAccountCDKey3.process();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "4";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl(CreateAccountCDKey4) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "311 162";
|
||||
extent = "72 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateAccountCDKey4.process();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "4";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl(CreateAccountCDKey5) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "371 162";
|
||||
extent = "72 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateAccountCDKey5.process();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "4";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "131 209";
|
||||
extent = "269 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$CreateAccountEmail";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "128";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellToggleButton() {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "63 244";
|
||||
extent = "366 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$CreateAccountSendInfo";
|
||||
helpTag = "0";
|
||||
text = "SEND ME INFORMATION ABOUT TRIBES 2 AND OTHER PRODUCTS";
|
||||
};
|
||||
new ShellToggleButton() {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "148 325";
|
||||
extent = "201 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$CreateAccountAgeGood";
|
||||
helpTag = "0";
|
||||
text = "I AM AT LEAST 13 YEARS OF AGE";
|
||||
};
|
||||
new ShellBitmapButton(CreateAccountSubmitBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "282 351";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateAccountDlg.onSubmit();";
|
||||
helpTag = "0";
|
||||
text = "SUBMIT";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 351";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateAccountDlg.onCancel();";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
224
base/gui/CreateTribeDlg.gui
Normal file
224
base/gui/CreateTribeDlg.gui
Normal file
|
|
@ -0,0 +1,224 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(CreateTribeDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "70 36";
|
||||
extent = "500 408";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CREATE TRIBE";
|
||||
maxLength = "255";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "18 38";
|
||||
extent = "70 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Tribe Name:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "18 68";
|
||||
extent = "70 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Tribe Tag:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "18 128";
|
||||
extent = "70 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Description:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "84 30";
|
||||
extent = "260 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$CreateTribeName";
|
||||
helpTag = "0";
|
||||
maxLength = "24";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl(CT_TagText) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "84 60";
|
||||
extent = "107 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$CreateTribeTag";
|
||||
command = "updateTribeTagPreview();";
|
||||
helpTag = "0";
|
||||
maxLength = "8";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellToggleButton(rbAppendTag) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "189 64";
|
||||
extent = "146 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$CreateTribeAppend";
|
||||
command = "updateTribeTagPreview();";
|
||||
helpTag = "0";
|
||||
text = "APPEND TRIBE TAG";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellToggleButton(rbRecruiting) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "308 95";
|
||||
extent = "162 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$CreateTribeRecruiting";
|
||||
helpTag = "0";
|
||||
text = "RECRUITING";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "18 98";
|
||||
extent = "70 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Preview:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellFieldCtrl() {
|
||||
profile = "ShellFieldProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "93 97";
|
||||
extent = "192 22";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(CT_PreviewText) {
|
||||
profile = "ShellAltTextCenterProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "3 2";
|
||||
extent = "186 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
maxLength = "255";
|
||||
};
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "26 143";
|
||||
extent = "448 208";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 7";
|
||||
extent = "418 194";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextEditCtrl(CreateTribeDescription) {
|
||||
profile = "ShellMessageTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "418 194";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "3600";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "81 354";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateTribeDlg.Cancel();";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(CreateTribeBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "291 354";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "CreateTribeDlg.CreateTribe();";
|
||||
helpTag = "0";
|
||||
text = "CREATE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
93
base/gui/CreateWarriorDlg.gui
Normal file
93
base/gui/CreateWarriorDlg.gui
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(CreateWarriorDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "130 123";
|
||||
extent = "380 233";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CREATE WARRIOR";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiMLTextCtrl(CreateWarriorText) {
|
||||
profile = "ShellMediumTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "37 37";
|
||||
extent = "306 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "48 142";
|
||||
extent = "92 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Warrior Name:";
|
||||
};
|
||||
new ShellTextEditCtrl(CreateWarriorNameEdit) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "136 134";
|
||||
extent = "182 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$CreateAccountWarriorName";
|
||||
command = "CreateWarriorNameEdit.checkValidPlayerName();";
|
||||
altCommand = "LoginCreateWarrior();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "16";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellBitmapButton(CreateWarriorBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "211 178";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "LoginCreateWarrior();";
|
||||
helpTag = "0";
|
||||
text = "DONE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "41 178";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "quit();";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "QUIT";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
74
base/gui/CreditsGui.gui
Normal file
74
base/gui/CreditsGui.gui
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiChunkedBitmapCtrl(CreditsGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$ShellBackground";
|
||||
helpTag = "0";
|
||||
useVariable = "1";
|
||||
qLineCount = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "28 13";
|
||||
extent = "584 459";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
noTitleBar = "1";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "relative";
|
||||
vertSizing = "height";
|
||||
position = "26 34";
|
||||
extent = "312 402";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(CREDITS_Text) {
|
||||
profile = "ShellLoadTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "312 1";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "ShellLoadFrameProfile";
|
||||
horizSizing = "relative";
|
||||
vertSizing = "relative";
|
||||
position = "349 8";
|
||||
extent = "212 428";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiChunkedBitmapCtrl(CREDITS_Pic) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "1 1";
|
||||
extent = "210 426";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
bitmap = "gui/loading.png";
|
||||
useVariable = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
253
base/gui/DebriefGui.gui
Normal file
253
base/gui/DebriefGui.gui
Normal file
|
|
@ -0,0 +1,253 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiChunkedBitmapCtrl(DebriefGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$ShellBackground";
|
||||
helpTag = "0";
|
||||
useVariable = "1";
|
||||
|
||||
new ShellPaneCtrl(DB_Pane) {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "28 13";
|
||||
extent = "584 459";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
noTitleBar = "1";
|
||||
};
|
||||
new GuiProgressCtrl(DB_LoadingProgress) {
|
||||
profile = "ShellProgressBarProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "67 423";
|
||||
extent = "300 25";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(DB_LoadingProgressTxt) {
|
||||
profile = "ShellProgressBarTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 3";
|
||||
extent = "300 19";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "LOADING MISSION...";
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "relative";
|
||||
vertSizing = "relative";
|
||||
position = "0 0";
|
||||
extent = "300 236";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellScrollCtrl(DB_ChatScroll) {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "50 18";
|
||||
extent = "251 184";
|
||||
minExtent = "24 24";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "7 7";
|
||||
extent = "221 170";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMessageVectorCtrl(DB_ChatVector) {
|
||||
profile = "GuiChatHudProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "221 170";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "0";
|
||||
lineContinuedIndex = "10";
|
||||
allowedMatches[0] = "http";
|
||||
allowedMatches[1] = "t2server";
|
||||
matchColor = "0 0 255 255";
|
||||
maxColorIndex = "5";
|
||||
matchColors1 = "255 0 0 255";
|
||||
matchColors0 = "0 0 255 255";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "relative";
|
||||
vertSizing = "height";
|
||||
position = "300 15";
|
||||
extent = "340 405";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellFieldCtrl(DB_ResultPane) {
|
||||
profile = "ShellFieldProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "5 7";
|
||||
extent = "280 392";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(DebriefResultText) {
|
||||
profile = "DebriefHeadlineTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "4 3";
|
||||
extent = "272 28";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
};
|
||||
new ShellScrollCtrl(DB_ResultScroll) {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "2 58";
|
||||
extent = "276 332";
|
||||
minExtent = "24 24";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "7 7";
|
||||
extent = "262 318";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(DebriefText) {
|
||||
profile = "DebriefTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "262 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "1";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonNoTabProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "372 417";
|
||||
extent = "115 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
command = "debriefDisconnect();";
|
||||
helpTag = "0";
|
||||
text = "DISCONNECT";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonNoTabProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "478 417";
|
||||
extent = "115 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
command = "debriefContinue();";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CONTINUE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DB_ChatDlg) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "relative";
|
||||
vertSizing = "relative";
|
||||
position = "0 0";
|
||||
extent = "300 236";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextEditCtrl(DB_ChatEntry) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "top";
|
||||
position = "45 197";
|
||||
extent = "261 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
altCommand = "DB_ChatEntry.sendChat();";
|
||||
escapeCommand = "DB_ChatEntry.onEscape();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "120";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
145
base/gui/DebuggerBreakConditionDlg.gui
Normal file
145
base/gui/DebuggerBreakConditionDlg.gui
Normal file
|
|
@ -0,0 +1,145 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DebuggerBreakConditionDlg) {
|
||||
profile = "GuiDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "220 146";
|
||||
extent = "200 188";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Set the break condition";
|
||||
resizeWidth = "True";
|
||||
resizeHeight = "True";
|
||||
canMove = "False";
|
||||
canClose = "False";
|
||||
canMinimize = "False";
|
||||
canMaximize = "False";
|
||||
minSize = "50 50";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 28";
|
||||
extent = "121 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Enter the break condition:";
|
||||
};
|
||||
new GuiTextEditCtrl(BreakCondition) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 44";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
altCommand = "DbgBreakConditionSet();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 68";
|
||||
extent = "57 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Pass Count:";
|
||||
};
|
||||
new GuiTextEditCtrl(BreakPassCount) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 84";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
returnTab = "true";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 108";
|
||||
extent = "27 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Clear:";
|
||||
};
|
||||
new GuiTextEditCtrl(BreakClear) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 124";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
returnTab = "true";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "56 156";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DbgBreakConditionSet();";
|
||||
helpTag = "0";
|
||||
text = "Set";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "104 156";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.popDialog(DebuggerBreakConditionDlg);";
|
||||
helpTag = "0";
|
||||
text = "Cancel";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
148
base/gui/DebuggerConnectDlg.gui
Normal file
148
base/gui/DebuggerConnectDlg.gui
Normal file
|
|
@ -0,0 +1,148 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DebuggerConnectDlg) {
|
||||
profile = "GuiDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "220 146";
|
||||
extent = "200 188";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Connect to server:";
|
||||
resizeWidth = "True";
|
||||
resizeHeight = "True";
|
||||
canMove = "False";
|
||||
canClose = "False";
|
||||
canMinimize = "False";
|
||||
canMaximize = "False";
|
||||
minSize = "50 50";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 28";
|
||||
extent = "55 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "IP Address:";
|
||||
};
|
||||
new GuiTextEditCtrl(DebuggerConnectAddress) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 44";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
variable = "$pref::DBGConnectAddress";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
returnTab = "true";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 68";
|
||||
extent = "21 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Port:";
|
||||
};
|
||||
new GuiTextEditCtrl(DebuggerConnectPort) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 84";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
variable = "$pref::DBGConnectPort";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
returnTab = "true";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 108";
|
||||
extent = "52 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Password:";
|
||||
};
|
||||
new GuiTextEditCtrl(DebuggerConnectPassword) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 124";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
variable = "$pref::DBGConnectPassword";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
returnTab = "true";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "56 156";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DbgConnect();";
|
||||
helpTag = "0";
|
||||
text = "Open";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "104 156";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.popDialog(DebuggerConnectDlg);";
|
||||
helpTag = "0";
|
||||
text = "Cancel";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
93
base/gui/DebuggerEditWatchDlg.gui
Normal file
93
base/gui/DebuggerEditWatchDlg.gui
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DebuggerEditWatchDlg) {
|
||||
profile = "GuiDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "220 180";
|
||||
extent = "200 108";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Edit a Variable";
|
||||
resizeWidth = "True";
|
||||
resizeHeight = "True";
|
||||
canMove = "False";
|
||||
canClose = "False";
|
||||
canMinimize = "False";
|
||||
canMaximize = "False";
|
||||
minSize = "50 50";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 28";
|
||||
extent = "99 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Enter the new value:";
|
||||
};
|
||||
new GuiTextEditCtrl(EditWatchDialogValue) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 44";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
altCommand = "DbgWatchDialogEdit();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
fontHL = "14 253 Arial";
|
||||
font = "14 244 Arial";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "56 80";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DbgWatchDialogEdit();";
|
||||
helpTag = "0";
|
||||
text = "Edit";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "104 80";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.popDialog(DebuggerEditWatchDlg);";
|
||||
helpTag = "0";
|
||||
text = "Cancel";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
93
base/gui/DebuggerFindDlg.gui
Normal file
93
base/gui/DebuggerFindDlg.gui
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DebuggerFindDlg) {
|
||||
profile = "GuiDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "220 180";
|
||||
extent = "200 108";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "File Search";
|
||||
resizeWidth = "True";
|
||||
resizeHeight = "True";
|
||||
canMove = "False";
|
||||
canClose = "False";
|
||||
canMinimize = "False";
|
||||
canMaximize = "False";
|
||||
minSize = "50 50";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 28";
|
||||
extent = "99 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Search for:";
|
||||
};
|
||||
new GuiTextEditCtrl(DebuggerFindStringText) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 44";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
altCommand = "DbgFileViewFind();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
fontHL = "14 253 Arial";
|
||||
font = "14 244 Arial";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "56 80";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DbgFileViewFind();";
|
||||
helpTag = "0";
|
||||
text = "Find";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "104 80";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.popDialog(DebuggerFindDlg);";
|
||||
helpTag = "0";
|
||||
text = "Cancel";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
641
base/gui/DebuggerGui.gui
Normal file
641
base/gui/DebuggerGui.gui
Normal file
|
|
@ -0,0 +1,641 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DebuggerGui) {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.pushDialog(DebuggerConnectDlg, 80);";
|
||||
helpTag = "0";
|
||||
text = "Connect";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.pushDialog(OpenFileDialog, 80);";
|
||||
helpTag = "0";
|
||||
text = "File";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "dbgStepIn();";
|
||||
accelerator = "f7";
|
||||
helpTag = "0";
|
||||
text = "Step In";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "136 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "dbgStepOver();";
|
||||
accelerator = "f8";
|
||||
helpTag = "0";
|
||||
text = "Step Over";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "200 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "dbgStepOut();";
|
||||
accelerator = "f6";
|
||||
helpTag = "0";
|
||||
text = "Step Out";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "264 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "dbgContinue();";
|
||||
accelerator = "f9";
|
||||
helpTag = "0";
|
||||
text = "Run";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "328 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.pushDialog(DebuggerFindDlg, 80);";
|
||||
helpTag = "0";
|
||||
text = "Find";
|
||||
};
|
||||
new GuiTextCtrl(DebuggerCursorWatch) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "398 4";
|
||||
extent = "126 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "";
|
||||
justify = "left";
|
||||
};
|
||||
new GuiTextCtrl(DebuggerStatus) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "532 4";
|
||||
extent = "60 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "NOT CONNECTED";
|
||||
justify = "right";
|
||||
};
|
||||
new GuiFrameSetCtrl(DebuggerRootFrame) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 24";
|
||||
extent = "640 456";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
columns = "0 486";
|
||||
rows = "0";
|
||||
borderWidth = "4";
|
||||
borderColor = "0.000000, 0.000000, 0.000000, 0.000000";
|
||||
borderEnable = "dynamic";
|
||||
borderMovable = "dynamic";
|
||||
|
||||
new GuiFrameSetCtrl(DebuggerLeftFrame) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "482 456";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
columns = "0";
|
||||
rows = "0 350";
|
||||
borderWidth = "4";
|
||||
borderColor = "0.000000, 0.000000, 0.000000, 0.000000";
|
||||
borderEnable = "dynamic";
|
||||
borderMovable = "dynamic";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "482 346";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 4";
|
||||
extent = "47 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Open File:";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(DebuggerFilePopup) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "64 4";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
maxPopupHeight = "200";
|
||||
};
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 24";
|
||||
extent = "482 321";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "dynamic";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "False";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiScrollContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "1 1";
|
||||
extent = "462 301";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new DbgFileView(DebuggerFileView) {
|
||||
profile = "GuiTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 -433";
|
||||
extent = "509 3904";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 350";
|
||||
extent = "482 106";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.pushDialog(DebuggerWatchDlg, 80);";
|
||||
helpTag = "0";
|
||||
text = "Add";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.pushDialog(DebuggerEditWatchDlg, 80);";
|
||||
helpTag = "0";
|
||||
text = "Edit";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "136 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DbgDeleteSelectedWatch();";
|
||||
helpTag = "0";
|
||||
text = "Delete";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "200 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DebuggerWatchView.clear();";
|
||||
helpTag = "0";
|
||||
text = "Clear";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "264 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DbgRefreshWatches();";
|
||||
helpTag = "0";
|
||||
text = "Refresh";
|
||||
};
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 24";
|
||||
extent = "481 80";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "dynamic";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "False";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiScrollContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "1 1";
|
||||
extent = "479 60";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextListCtrl(DebuggerWatchView) {
|
||||
profile = "GuiTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 8";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
enumerate = "False";
|
||||
resizeCell = "True";
|
||||
columns = "0 200";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiFrameSetCtrl(DebuggerRightFrame) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "486 0";
|
||||
extent = "154 456";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
columns = "0";
|
||||
rows = "0 150 350";
|
||||
borderWidth = "4";
|
||||
borderColor = "0.000000, 0.000000, 0.000000, 0.000000";
|
||||
borderEnable = "dynamic";
|
||||
borderMovable = "dynamic";
|
||||
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "154 146";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "dynamic";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "False";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiScrollContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "1 1";
|
||||
extent = "152 126";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextListCtrl(DebuggerCallStack) {
|
||||
profile = "GuiTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 8";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
enumerate = "False";
|
||||
resizeCell = "True";
|
||||
columns = "-1 -1 0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 150";
|
||||
extent = "154 196";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.pushDialog(DebuggerBreakConditionDlg, 80);";
|
||||
helpTag = "0";
|
||||
text = "Condition";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "68 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DbgDeleteSelectedBreak();";
|
||||
helpTag = "0";
|
||||
text = "Delete";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "132 4";
|
||||
extent = "56 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DebuggerBreakPoints.clearBreaks();";
|
||||
helpTag = "0";
|
||||
text = "Clear";
|
||||
};
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 24";
|
||||
extent = "153 171";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "dynamic";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "False";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiScrollContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "1 1";
|
||||
extent = "151 151";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextListCtrl(DebuggerBreakPoints) {
|
||||
profile = "GuiTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "182 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
enumerate = "False";
|
||||
resizeCell = "True";
|
||||
columns = "16 56 156";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 350";
|
||||
extent = "154 106";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "153 80";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "dynamic";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "False";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiScrollContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "1 1";
|
||||
extent = "151 78";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextListCtrl(DebuggerConsoleView) {
|
||||
profile = "GuiTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "62 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
enumerate = "False";
|
||||
resizeCell = "True";
|
||||
columns = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "15 83";
|
||||
extent = "9 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "%";
|
||||
};
|
||||
new GuiTextEditCtrl(DbgConsoleEntry) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "top";
|
||||
position = "29 83";
|
||||
extent = "120 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
altCommand = "DbgConsoleEntryReturn();";
|
||||
helpTag = "0";
|
||||
historySize = "32";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
92
base/gui/DebuggerWatchDlg.gui
Normal file
92
base/gui/DebuggerWatchDlg.gui
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DebuggerWatchDlg) {
|
||||
profile = "GuiDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "220 180";
|
||||
extent = "200 108";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Add a Watch Expression:";
|
||||
resizeWidth = "True";
|
||||
resizeHeight = "True";
|
||||
canMove = "False";
|
||||
canClose = "False";
|
||||
canMinimize = "False";
|
||||
canMaximize = "False";
|
||||
minSize = "50 50";
|
||||
opaque = "true";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 28";
|
||||
extent = "88 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Enter the Variable:";
|
||||
};
|
||||
new GuiTextEditCtrl(WatchDialogExpression) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 44";
|
||||
extent = "160 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
altCommand = "DbgWatchDialogAdd();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "56 80";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DbgWatchDialogAdd();";
|
||||
helpTag = "0";
|
||||
text = "Add";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "104 80";
|
||||
extent = "40 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.popDialog(DebuggerWatchDlg);";
|
||||
helpTag = "0";
|
||||
text = "Cancel";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
868
base/gui/DetailSetDlg.gui
Normal file
868
base/gui/DetailSetDlg.gui
Normal file
|
|
@ -0,0 +1,868 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DetailSetDlg) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 -1";
|
||||
extent = "129 281";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Detail Settings";
|
||||
resizeWidth = "True";
|
||||
resizeHeight = "True";
|
||||
canMove = "True";
|
||||
canClose = "True";
|
||||
canMinimize = "True";
|
||||
canMaximize = "True";
|
||||
minSize = "50 50";
|
||||
closeCommand = "DetailSetDgl::onCleanup(true);";
|
||||
|
||||
new GuiPopUpMenuCtrl(DetailMenu) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "5 21";
|
||||
extent = "91 21";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Detail Options";
|
||||
maxPopupHeight = "200";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 197";
|
||||
extent = "32 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DetailAdjustTabs(Low);";
|
||||
helpTag = "0";
|
||||
text = "Low";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "47 197";
|
||||
extent = "30 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DetailAdjustTabs(Medium);";
|
||||
helpTag = "0";
|
||||
text = "Med";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "84 198";
|
||||
extent = "35 16";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DetailAdjustTabs(High);";
|
||||
helpTag = "0";
|
||||
text = "High";
|
||||
};
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 43";
|
||||
extent = "112 151";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "True";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOff";
|
||||
constantThumbHeight = "True";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "110 149";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl(Sky_Tab) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "112 151";
|
||||
minExtent = "8 8";
|
||||
visible = "False";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "2 5";
|
||||
extent = "84 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Sky Settings:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl(Sky_Slider) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 38";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
command = "Sky::DetailSliders(\"Sky_Slider\");";
|
||||
helpTag = "0";
|
||||
text = "1";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "1 99";
|
||||
increment = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 23";
|
||||
extent = "37 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Sphere:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl(Cloud_Slider) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 75";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "3";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 3";
|
||||
increment = "1";
|
||||
command = "Sky::DetailSliders(\"Cloud_Slider\");";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 60";
|
||||
extent = "29 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Cloud Layers:";
|
||||
};
|
||||
};
|
||||
new GuiControl(Texture_Tab) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "112 151";
|
||||
minExtent = "8 8";
|
||||
visible = "False";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 5";
|
||||
extent = "99 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Texture Settings";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 23";
|
||||
extent = "39 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Texture:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 38";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 60";
|
||||
extent = "75 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Interior Texture:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 75";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
};
|
||||
new GuiControl(Terrain_Tab) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "112 151";
|
||||
minExtent = "8 8";
|
||||
visible = "False";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "3 5";
|
||||
extent = "97 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Terrain Settings";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 23";
|
||||
extent = "36 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Terrain:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 38";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 60";
|
||||
extent = "64 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Screen Error:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl(DetailScreenError) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 75";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
command = "$screenerror = DetailScreenError.getValue();";
|
||||
helpTag = "0";
|
||||
text = "3";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 10";
|
||||
increment = "1";
|
||||
};
|
||||
};
|
||||
new GuiControl(Shape_Tab) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "112 151";
|
||||
minExtent = "8 8";
|
||||
visible = "False";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "2 5";
|
||||
extent = "89 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Shape Settings";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 23";
|
||||
extent = "63 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Static Shape:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 38";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 60";
|
||||
extent = "66 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Player Shape:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 75";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
};
|
||||
new GuiControl(Damage_Tab) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "-1 0";
|
||||
extent = "112 151";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "2 7";
|
||||
extent = "103 66";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Damage Settings";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "23 26";
|
||||
extent = "70 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Damage Detail:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 41";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "23 63";
|
||||
extent = "64 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Damage Skin:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 78";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
};
|
||||
new GuiControl(Decal_Tab) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "112 151";
|
||||
minExtent = "8 8";
|
||||
visible = "False";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "3 6";
|
||||
extent = "84 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Decal Settings";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 23";
|
||||
extent = "29 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Decal:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 38";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 60";
|
||||
extent = "57 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Smoke Trail:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 75";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
};
|
||||
new GuiControl(Lighting_Tab) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "112 151";
|
||||
minExtent = "8 8";
|
||||
visible = "False";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "2 4";
|
||||
extent = "101 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Lighting Settings";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 23";
|
||||
extent = "57 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Interior light:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 38";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "24 60";
|
||||
extent = "69 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "Dynamic Light:";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 75";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
historySize = "0";
|
||||
format = "%1.0f";
|
||||
range = "0 1";
|
||||
increment = "1";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "5 255";
|
||||
extent = "63 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "DetailSetDgl::onCleanup(true);";
|
||||
helpTag = "0";
|
||||
text = "Close";
|
||||
};
|
||||
new GuiRadioCtrl(RadioOutline) {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "9 217";
|
||||
extent = "55 19";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "displayMode(True);";
|
||||
helpTag = "0";
|
||||
text = "OutLine";
|
||||
groupNum = "1";
|
||||
};
|
||||
new GuiRadioCtrl(RadioTexture) {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "66 216";
|
||||
extent = "55 19";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "displayMode(False);";
|
||||
helpTag = "0";
|
||||
text = "Texture";
|
||||
groupNum = "1";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
function DetailSetDialog()
|
||||
{
|
||||
showTabs();
|
||||
$currentTab = "";
|
||||
$currentSelected = "";
|
||||
DetailMenu.clear();
|
||||
DetailMenu.add("Sky",0);
|
||||
DetailMenu.add("Texture",1);
|
||||
DetailMenu.add("Terrain",2);
|
||||
DetailMenu.add("Lighting",3);
|
||||
DetailMenu.add("Decal",4);
|
||||
DetailMenu.add("Shape",5);
|
||||
DetailMenu.add("Damage",6);
|
||||
DetailMenu.setText("Detail Options");
|
||||
RadioTexture.setValue(true);
|
||||
Canvas.pushDialog(DetailSetDlg,99);
|
||||
}
|
||||
|
||||
function DetailMenu::onSelect(%this, %row)
|
||||
{
|
||||
%label = %this.getValue();
|
||||
$currentTab = %label;
|
||||
%this.setText("Detail Options");
|
||||
DetailSetDgl::onCleanup();
|
||||
showTabs(%label);
|
||||
}
|
||||
|
||||
function showTabs(%tab)
|
||||
{
|
||||
%tab = %tab @ "_Tab";
|
||||
GameCtrl.setvisible(false);
|
||||
Sky_Tab.setvisible(false);
|
||||
Texture_Tab.setvisible(false);
|
||||
Terrain_Tab.setvisible(false);
|
||||
Shape_Tab.setvisible(false);
|
||||
Damage_Tab.setvisible(false);
|
||||
Decal_Tab.setvisible(false);
|
||||
Lighting_Tab.setvisible(false);
|
||||
%tab.setvisible(true);
|
||||
}
|
||||
|
||||
function displayMode(%bool)
|
||||
{
|
||||
echo("CurrentTab: ",$currentTab);
|
||||
echo("CurrentSelected: ",$currentSelected);
|
||||
echo("BOOL: ",%bool);
|
||||
if($currentTab $= "Sky")
|
||||
{
|
||||
if($currentSelected $= "Sky")
|
||||
{
|
||||
echo("went in here: ",%bool);
|
||||
$pref::SkyOutline = %bool;
|
||||
}
|
||||
else
|
||||
{
|
||||
$pref::CloudOutline = %bool;
|
||||
}
|
||||
}
|
||||
else if ($currentTab $= "Terrain")
|
||||
DetailScreenError.setValue($screenerror);
|
||||
}
|
||||
|
||||
function DetailSetDgl::onCleanup(%close)
|
||||
{
|
||||
$pref::SkyOutline = false;
|
||||
$pref::CloudOutline = false;
|
||||
$pref::CloudsOn = true;
|
||||
RadioTexture.setValue(true);
|
||||
if(%close == true)
|
||||
Canvas.popDialog(DetailSetDlg);
|
||||
}
|
||||
|
||||
function Sky::detailSliders(%slider)
|
||||
{
|
||||
if(%slider $= "Sky_Slider")
|
||||
{
|
||||
$pref::sphereDetail = %slider.getValue();
|
||||
$pref::CloudsOn = false;
|
||||
$currentSelected = "Sky";
|
||||
if($pref::SkyOutline)
|
||||
RadioOutline.setValue(true);
|
||||
else
|
||||
RadioTexture.setValue(true);
|
||||
}
|
||||
else if(%slider $= "Cloud_Slider")
|
||||
{
|
||||
$pref::NumCloudLayers = %slider.getValue();
|
||||
$pref::CloudsOn = true;
|
||||
$currentSelected = "Cloud";
|
||||
if($pref::CloudOutline)
|
||||
RadioOutline.setValue(true);
|
||||
else
|
||||
RadioTexture.setValue(true);
|
||||
}
|
||||
}
|
||||
77
base/gui/DriverInfoDlg.gui
Normal file
77
base/gui/DriverInfoDlg.gui
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(DriverInfoDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "120 90";
|
||||
extent = "400 300";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "DRIVER INFO";
|
||||
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "bottom";
|
||||
position = "27 35";
|
||||
extent = "346 209";
|
||||
minExtent = "24 52";
|
||||
childMargin = "4 2";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "322 201";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(DriverInfoText) {
|
||||
profile = "ShellAltTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "313 420";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "bottom";
|
||||
position = "136 245";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog(DriverInfoDlg);";
|
||||
accelerator = "space";
|
||||
helpTag = "0";
|
||||
text = "OK";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
2
base/gui/EULADlg.gui
Normal file
2
base/gui/EULADlg.gui
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
//--- OBJECT WRITE END ---
|
||||
177
base/gui/EditChatCommandDlg.gui
Normal file
177
base/gui/EditChatCommandDlg.gui
Normal file
|
|
@ -0,0 +1,177 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(EditChatCommandDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "150 110";
|
||||
extent = "340 260";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EDIT ITEM";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "21 42";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Key:";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "97 34";
|
||||
extent = "49 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$ECI::key";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "1";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "21 80";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Menu text:";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "97 72";
|
||||
extent = "208 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$ECI::text";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "25";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "21 119";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Command:";
|
||||
};
|
||||
new ShellPopupMenu(EditChatCommandList) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "97 110";
|
||||
extent = "209 36";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "21 158";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Message:";
|
||||
};
|
||||
new ShellFieldCtrl() {
|
||||
profile = "ShellFieldProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "106 159";
|
||||
extent = "191 36";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(EditChatCommandMessage) {
|
||||
profile = "ShellAltTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "5 1";
|
||||
extent = "187 16";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(ChatCommandTestBtn) {
|
||||
profile = "SoundTestButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "80 175";
|
||||
extent = "24 24";
|
||||
minExtent = "24 24";
|
||||
visible = "1";
|
||||
command = "testChatCommand($ECI::command);";
|
||||
helpTag = "0";
|
||||
simpleStyle = "1";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "180 205";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "eval($ECI::OKCommand);";
|
||||
helpTag = "0";
|
||||
text = "OK";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "32 205";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog( EditChatCommandDlg );";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
106
base/gui/EditChatMenuDlg.gui
Normal file
106
base/gui/EditChatMenuDlg.gui
Normal file
|
|
@ -0,0 +1,106 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(EditChatMenuDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "150 156";
|
||||
extent = "340 167";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EDIT MENU";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "21 42";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Key:";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "97 34";
|
||||
extent = "50 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$ECI::key";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "1";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "21 80";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Menu text:";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "97 72";
|
||||
extent = "208 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$ECI::text";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "25";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "180 112";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "eval($ECI::OKCommand);";
|
||||
helpTag = "0";
|
||||
text = "OK";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "32 112";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog( EditChatMenuDlg );";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
159
base/gui/EditChatMenuGui.gui
Normal file
159
base/gui/EditChatMenuGui.gui
Normal file
|
|
@ -0,0 +1,159 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(EditChatMenuGui) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "20 55";
|
||||
extent = "600 370";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EDIT CHAT MENU";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "25 32";
|
||||
extent = "408 315";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 0";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "384 307";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiChatMenuTreeCtrl(chatMenuGuiTree) {
|
||||
profile = "ShellTreeViewProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "431 372";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
altCommand = "editSelectedChatMenuItem();";
|
||||
helpTag = "0";
|
||||
tabSize = "16";
|
||||
imagesBitmap = "gui/shll_treeView.png";
|
||||
numImages = "13";
|
||||
textOffset = "2";
|
||||
fullRowSelect = "0";
|
||||
itemHeight = "15";
|
||||
altFontColor = "6 215 245 255";
|
||||
altFontColorHL = "6 215 245 255";
|
||||
altFontColorSE = "25 56 68 255";
|
||||
dirty = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "445 29";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "newChatMenu();";
|
||||
helpTag = "0";
|
||||
text = "CLEAR";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "445 67";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "resetChatMenu();";
|
||||
helpTag = "0";
|
||||
text = "RESET";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "445 105";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "saveChatMenu();";
|
||||
helpTag = "0";
|
||||
text = "SAVE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "445 315";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "leaveChatMenuEditor();";
|
||||
helpTag = "0";
|
||||
text = "DONE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ChatMenuItemActionDlg) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPopupMenu(ChatMenuItemActionPopup) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "0 0";
|
||||
minExtent = "0 0";
|
||||
visible = "1";
|
||||
command = "ChatMenuItemActionPopup.reset();";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
maxPopupHeight = "200";
|
||||
noButtonStyle = "1";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
320
base/gui/EditorGui.gui
Normal file
320
base/gui/EditorGui.gui
Normal file
|
|
@ -0,0 +1,320 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
|
||||
new EditManager(Editor)
|
||||
{
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
open = false;
|
||||
};
|
||||
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Editor Cursors
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
new GuiCursor(Editor_HandCursor)
|
||||
{
|
||||
hotSpot = "5 1";
|
||||
bitmapName = "gui/CUR_Hand.png";
|
||||
};
|
||||
|
||||
new GuiCursor(Editor_RotateCursor)
|
||||
{
|
||||
hotSpot = "11 18";
|
||||
bitmapName = "gui/CUR_Rotate.png";
|
||||
};
|
||||
|
||||
new GuiCursor(Editor_MoveCursor)
|
||||
{
|
||||
hotSpot = "9 13";
|
||||
bitmapName = "gui/CUR_Grab.png";
|
||||
};
|
||||
|
||||
new GuiCursor(Editor_ArrowCursor)
|
||||
{
|
||||
hotSpot = "0 0";
|
||||
bitmapName = "gui/CUR_3dArrow.png";
|
||||
};
|
||||
|
||||
new GuiControl(EmptyControl)
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
};
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function getPrefSetting(%pref, %default)
|
||||
{
|
||||
//
|
||||
if(%pref $= "")
|
||||
return(%default);
|
||||
else
|
||||
return(%pref);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function Editor::getPrefs(%this)
|
||||
{
|
||||
%this.currentEditor = getPrefSetting($pref::Editor::currentEditor, "WorldEditor");
|
||||
%this.resolution = getPrefSetting($pref::Editor::screenResolution, getResolution());
|
||||
%this.minToolFrameWidth = getPrefSetting($pref::Editor::minToolFrameWidth, 80);
|
||||
}
|
||||
|
||||
function Editor::setPrefs(%this)
|
||||
{
|
||||
$pref::Editor::currentEditor = %this.currentEditor;
|
||||
$pref::Editor::screenResolution = getResolution();
|
||||
$pref::Editor::minToolFrameWidth = %this.minToolFrameWidth;
|
||||
}
|
||||
|
||||
function Editor::init(%this)
|
||||
{
|
||||
if(%this.initialized)
|
||||
return;
|
||||
|
||||
%this.initialized = true;
|
||||
|
||||
loadGui(EditorToolbarDlg);
|
||||
|
||||
// load in the editors
|
||||
loadGui(WorldEditorGui);
|
||||
loadGui(WorldEditorToolbarDlg);
|
||||
loadGui(WorldEditorStatusbarDlg);
|
||||
loadGui(WorldEditorButtonbarDlg);
|
||||
loadGui(WorldEditorFrameSetDlg);
|
||||
loadGui(WorldEditorSettingsDlg);
|
||||
|
||||
loadGui(TerrainEditorGui);
|
||||
loadGui(TerrainEditorToolbarDlg);
|
||||
loadGui(TerrainEditorExtraToolbarDlg);
|
||||
loadGui(TerrainEditorStatusbarDlg);
|
||||
loadGui(TerrainEditorButtonbarDlg);
|
||||
loadGui(TerrainEditorFrameSetDlg);
|
||||
loadGui(TerrainEditorTextureSelectGui);
|
||||
loadGui(TerrainEditorValuesSettingsGui);
|
||||
|
||||
loadGui(AIEditorGui);
|
||||
loadGui(AIEditorToolBar);
|
||||
loadGui(AIEButtonBarDlg);
|
||||
loadGui(AIEFrameSetDlg);
|
||||
loadGui(AIEWorkingDlg);
|
||||
|
||||
//
|
||||
loadGui(EditorSaveMissionDlg);
|
||||
|
||||
// tools
|
||||
loadGui(EditorToolCreatorGui);
|
||||
loadGui(EditorToolInspectorGui);
|
||||
loadGui(EditorToolMissionAreaGui);
|
||||
loadGui(EditorToolTreeViewGui);
|
||||
loadGui(ObjectBuilderGui);
|
||||
|
||||
// do gui initialization...
|
||||
wEditor.init();
|
||||
tEditor.init();
|
||||
TerraformerGui.init();
|
||||
aiEdit.init();
|
||||
|
||||
//
|
||||
Creator.init();
|
||||
Inspector.init();
|
||||
AreaEditor.init();
|
||||
EditorTree.init();
|
||||
ObjectBuilderGui.init();
|
||||
|
||||
//
|
||||
WorldEditorFrameSetDlg.init();
|
||||
WorldEditorStatusbarDlg.init();
|
||||
WorldEditorButtonbarDlg.init();
|
||||
WorldEditorToolbarDlg.init();
|
||||
WorldEditorSettingsDlg.init();
|
||||
|
||||
//
|
||||
TerrainEditorFrameSetDlg.init();
|
||||
TerrainEditorStatusbarDlg.init();
|
||||
TerrainEditorButtonbarDlg.init();
|
||||
TerrainEditorToolbarDlg.init();
|
||||
TerrainEditorExtraToolbarDlg.init();
|
||||
|
||||
AIEFrameSetDlg.init();
|
||||
AIEButtonBarDlg.init();
|
||||
AIEditorToolBar.init();
|
||||
|
||||
//
|
||||
exec("scripts/editorRender.cs");
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function Editor::pushDialog(%this, %name)
|
||||
{
|
||||
%this.pushedDialogs[%this.numPushedDialogs] = %name;
|
||||
%this.numPushedDialogs++;
|
||||
Canvas.pushDialog(%name);
|
||||
}
|
||||
|
||||
function Editor::popDialogs(%this)
|
||||
{
|
||||
// remove current dialogs
|
||||
for(%i = 0; %i < %this.numPushedDialogs; %i++)
|
||||
Canvas.popDialog(%this.pushedDialogs[%i]);
|
||||
%this.numPushedDialogs = 0;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function Editor::open(%this)
|
||||
{
|
||||
if(%this.open)
|
||||
return;
|
||||
|
||||
// get the defaults
|
||||
%this.getPrefs();
|
||||
|
||||
%this.prevResolution = getResolution();
|
||||
%this.prevContent = Canvas.getContent();
|
||||
|
||||
%this.init();
|
||||
|
||||
GlobalActionMap.bind(keyboard, "f11", toggleEditor);
|
||||
GlobalActionMap.bind(keyboard, "f12", GuiEdit);
|
||||
|
||||
//jff: hangs when switching resolutions
|
||||
// setResolution(getWord(%this.resolution, 0), getWord(%this.resolution, 1));
|
||||
Canvas.setContent(Editor);
|
||||
}
|
||||
|
||||
function Editor::close(%this)
|
||||
{
|
||||
if(!%this.open)
|
||||
return;
|
||||
|
||||
if(%this.prevResolution $= "")
|
||||
%this.prevResolution = getResolution();
|
||||
if(%this.prevContent == -1 || %this.prevContent == "")
|
||||
%this.prevContent = "PlayGui";
|
||||
|
||||
Canvas.setContent(%this.prevContent);
|
||||
|
||||
//jff: hangs when switching resolutions
|
||||
// setResolution(getWord(%this.prevResolution, 0), getWord(%this.prevResolution, 1));
|
||||
closeMessageHud();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function Editor::setEditor(%this, %editor)
|
||||
{
|
||||
//
|
||||
%this.currentEditor = %editor;
|
||||
%this.popDialogs();
|
||||
|
||||
switch$(%this.currentEditor)
|
||||
{
|
||||
case "WorldEditor":
|
||||
%this.pushDialog(WorldEditorToolbarDlg);
|
||||
%this.pushDialog(WorldEditorStatusbarDlg);
|
||||
%this.pushDialog(WorldEditorButtonbarDlg);
|
||||
%this.pushDialog(WorldEditorFrameSetDlg);
|
||||
|
||||
case "TerrainEditor":
|
||||
%this.pushDialog(TerrainEditorToolbarDlg);
|
||||
%this.pushDialog(TerrainEditorExtraToolbarDlg);
|
||||
%this.pushDialog(TerrainEditorStatusbarDlg);
|
||||
%this.pushDialog(TerrainEditorButtonbarDlg);
|
||||
%this.pushDialog(TerrainEditorFrameSetDlg);
|
||||
|
||||
case "Terraformer":
|
||||
%this.pushDialog(TerraformerGui);
|
||||
|
||||
case "AIEditor":
|
||||
%this.pushDialog(AIEditorToolBar);
|
||||
%this.pushDialog(WorldEditorStatusbarDlg);
|
||||
%this.pushDialog(AIEButtonBarDlg);
|
||||
%this.pushDialog(AIEFrameSetDlg);
|
||||
|
||||
default:
|
||||
error("Editor::setEditor: attempting to set unknown editor '" @ %editor @ "'.");
|
||||
return;
|
||||
}
|
||||
|
||||
%this.pushDialog(EditorToolbarDlg);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function toggleMouse()
|
||||
{
|
||||
if(Canvas.isCursorOn())
|
||||
CursorOff();
|
||||
else
|
||||
CursorOn();
|
||||
}
|
||||
|
||||
function Editor::onWake(%this)
|
||||
{
|
||||
%this.open = true;
|
||||
|
||||
MoveMap.push();
|
||||
EditorMap.push();
|
||||
GlobalActionMap.bindcmd(keyboard, "tab", "", "toggleMouse();");
|
||||
%this.setEditor(%this.currentEditor);
|
||||
}
|
||||
|
||||
function Editor::onSleep(%this)
|
||||
{
|
||||
%this.open = false;
|
||||
|
||||
EditorMap.pop();
|
||||
MoveMap.pop();
|
||||
GlobalActionMap.unbind(keyboard, "tab");
|
||||
lockMouse(false);
|
||||
CursorOn();
|
||||
|
||||
%this.popDialogs();
|
||||
|
||||
%this.setPrefs();
|
||||
|
||||
// only canvas level content gets onWake and onSleep calls..
|
||||
wEditor.setPrefs();
|
||||
tEditor.setPrefs();
|
||||
aiEdit.setPrefs();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// keys
|
||||
new ActionMap(EditorMap);
|
||||
|
||||
EditorMap.bindCmd(keyboard, "f2", "editor.setEditor(WorldEditor);", "");
|
||||
EditorMap.bindCmd(keyboard, "f3", "editor.setEditor(TerrainEditor);", "");
|
||||
EditorMap.bindCmd(keyboard, "f4", "editor.setEditor(Terraformer);", "");
|
||||
EditorMap.bindCmd(keyboard, "f5", "editor.setEditor(AIEditor);", "");
|
||||
|
||||
EditorMap.bindCmd(keyboard, "alt s", "Canvas.pushDialog(EditorSaveMissionDlg);", "");
|
||||
EditorMap.bindCmd(keyboard, "alt r", "lightScene(\"\", forceAlways);", "");
|
||||
EditorMap.bindCmd(keyboard, "escape", "editor.close();", "");
|
||||
|
||||
// Bookmarks
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// alt-#: set bookmark
|
||||
for(%i = 0; %i < 9; %i++)
|
||||
EditorMap.bindCmd(keyboard, "alt " @ %i, "editor.setBookmark(" @ %i @ ");", "");
|
||||
|
||||
// ctrl-#: goto bookmark
|
||||
for(%i = 0; %i < 9; %i++)
|
||||
EditorMap.bindCmd(keyboard, "ctrl " @ %i, "editor.gotoBookmark(" @ %i @ ");", "");
|
||||
336
base/gui/EditorSaveMissionDlg.gui
Normal file
336
base/gui/EditorSaveMissionDlg.gui
Normal file
|
|
@ -0,0 +1,336 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(EditorSaveMissionDlg) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "168 81";
|
||||
extent = "333 313";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Save Mission...";
|
||||
resizeWidth = "1";
|
||||
resizeHeight = "1";
|
||||
canMove = "1";
|
||||
canClose = "1";
|
||||
canMinimize = "1";
|
||||
canMaximize = "1";
|
||||
minSize = "50 50";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 50";
|
||||
extent = "317 226";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiMediumBoldTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "6 6";
|
||||
extent = "249 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Select the files which you wish to save:";
|
||||
};
|
||||
new GuiCheckBoxCtrl(SaveMissionCheckBox) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 32";
|
||||
extent = "132 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Mission File";
|
||||
};
|
||||
new GuiTextCtrl(SaveMissionText) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "22 56";
|
||||
extent = "64 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl(SaveTerrainText) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "22 102";
|
||||
extent = "56 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiCheckBoxCtrl(SaveTerrainCheckBox) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 77";
|
||||
extent = "132 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Terrain";
|
||||
};
|
||||
new GuiCheckBoxCtrl(SaveHeightFieldScriptCheckBox) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 122";
|
||||
extent = "132 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Heightfield Script";
|
||||
};
|
||||
new GuiTextCtrl(SaveHeightFieldScriptText) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "22 148";
|
||||
extent = "162 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl(SaveTextureScriptText) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "22 194";
|
||||
extent = "132 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiCheckBoxCtrl(SaveTerrainScriptCheckBox) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 167";
|
||||
extent = "132 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Texture Script";
|
||||
};
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "158 284";
|
||||
extent = "72 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "EditorSaveMissionDlg.doSave();Canvas.popDialog(EditorSaveMissionDlg);";
|
||||
helpTag = "0";
|
||||
text = "OK";
|
||||
};
|
||||
new GuiTextEditCtrl(MissionNameTextEdit) {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "87 26";
|
||||
extent = "238 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
altCommand = "EditorSaveMissionDlg.missionName = $ThisControl.getValue();EditorSaveMissionDlg.updateTextFields();";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "241 284";
|
||||
extent = "72 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "Canvas.popDialog(EditorSaveMissionDlg);";
|
||||
helpTag = "0";
|
||||
text = "Cancel";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "13 28";
|
||||
extent = "66 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Mission Name";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function EditorSaveMissionDlg::updateTextFields(%this)
|
||||
{
|
||||
SaveMissionText.setValue("missions/" @ %this.missionName @ ".mis");
|
||||
SaveTerrainText.setValue("terrains/" @ %this.missionName @ ".ter");
|
||||
SaveTextureScriptText.setValue("terrains/texture/" @ %this.missionName @ "_texture.cs");
|
||||
SaveHeightFieldScriptText.setValue("terrains/heightfield/" @ %this.missionName @ "_heightfield.cs");
|
||||
}
|
||||
|
||||
function EditorSaveMissionDlg::onWake(%this)
|
||||
{
|
||||
%this.missionName = fileBase($MissionName);
|
||||
|
||||
//
|
||||
MissionNameTextEdit.setValue(%this.missionName);
|
||||
%this.updateTextFields();
|
||||
|
||||
// set all to be saved
|
||||
if(%this.initialized != true)
|
||||
{
|
||||
SaveMissionCheckBox.setValue(1);
|
||||
SaveTerrainCheckBox.setValue(1);
|
||||
SaveTerrainScriptCheckBox.setValue(1);
|
||||
SaveHeightFieldScriptCheckBox.setValue(1);
|
||||
|
||||
%this.initialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
function EditorSaveMissionDlg::doSave(%this)
|
||||
{
|
||||
//
|
||||
if(!isObject(MissionGroup))
|
||||
{
|
||||
error("No mission exists to save!");
|
||||
return;
|
||||
}
|
||||
|
||||
// check the files for write access
|
||||
//---------------------------------
|
||||
if(SaveMissionCheckBox.getValue())
|
||||
{
|
||||
%file = "base/missions/" @ %this.missionName @ ".mis";
|
||||
if(!isWriteableFileName(%file))
|
||||
{
|
||||
error("Mission file '" @ %file @ "' is not writeable.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(SaveTerrainCheckBox.getValue())
|
||||
{
|
||||
%file = "base/terrains/" @ %this.missionName @ ".ter";
|
||||
if(!isWriteableFileName(%file))
|
||||
{
|
||||
error("Terrain file '" @ %file @ "' is not writeable.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(SaveTerrainScriptCheckBox.getValue())
|
||||
{
|
||||
%file = "base/terrains/texture/" @ %this.missionName @ "_texture.cs";
|
||||
if(!isWriteableFileName(%file))
|
||||
{
|
||||
error("Terrain texture script file '" @ %file @ "' is not writeable.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(SaveHeightFieldScriptCheckBox.getValue())
|
||||
{
|
||||
%file = "base/terrains/heightfield/" @ %this.missionName @ "_heightfield.cs";
|
||||
if(!isWriteableFileName(%file))
|
||||
{
|
||||
error("Terrain heightfield script file '" @ %file @ "' is not writeable.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Now, save out the files...
|
||||
//---------------------------------
|
||||
if(SaveMissionCheckBox.getValue())
|
||||
{
|
||||
// rename the terrainFile field in the TerrainBlock obj
|
||||
if(SaveTerrainCheckBox.getValue())
|
||||
if(isObject(terrain))
|
||||
terrain.terrainFile = %this.missionName @ ".ter";
|
||||
|
||||
//
|
||||
missionGroup.save("missions/" @ %this.missionName @ ".mis");
|
||||
$MissionName = %this.missionName @ ".mis";
|
||||
}
|
||||
|
||||
// requires that the terrain object be named 'terrain'
|
||||
if(SaveTerrainCheckBox.getValue())
|
||||
if(isObject(terrain))
|
||||
terrain.save(%this.missionName @ ".ter");
|
||||
else
|
||||
warn(" Failed to save TerrainObject (no object exists)");
|
||||
|
||||
//
|
||||
if(SaveTerrainScriptCheckBox.getValue())
|
||||
if(Texture_material.rowCount())
|
||||
Texture::save(%this.missionName @ "_texture.cs");
|
||||
else
|
||||
warn(" Failed to save Terrain Script file. Nothing to save.");
|
||||
|
||||
//
|
||||
if(SaveHeightFieldScriptCheckBox.getValue())
|
||||
if(Heightfield_operation.rowCount())
|
||||
HeightField::doSaveHeightfield(%this.missionName @ "_heightfield.cs");
|
||||
else
|
||||
warn(" Failed to save HeightField Script file. Nothing to save.");
|
||||
}
|
||||
71
base/gui/EditorToolBarGui.gui
Normal file
71
base/gui/EditorToolBarGui.gui
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(EditorToolBarGui) {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "2 2";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Editor.close();";
|
||||
helpTag = "0";
|
||||
text = "Back";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "452 2";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Canvas.setContent(TerraformerGui);";
|
||||
helpTag = "0";
|
||||
text = "Terraformer";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "370 2";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Editor.setView(TerrainEditorView);";
|
||||
helpTag = "0";
|
||||
text = "Terrain Editor";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "288 2";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "False";
|
||||
modal = "True";
|
||||
command = "Editor.setView(WorldEditorView);";
|
||||
helpTag = "0";
|
||||
text = "World Editor";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
322
base/gui/EditorToolCreatorGui.gui
Normal file
322
base/gui/EditorToolCreatorGui.gui
Normal file
|
|
@ -0,0 +1,322 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
|
||||
new GuiScrollCtrl(EditorToolCreatorGui)
|
||||
{
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
vScrollBar = "allwaysOn";
|
||||
hScrollBar = "dynamic";
|
||||
|
||||
new GuiScrollContentCtrl()
|
||||
{
|
||||
profile = "GuiScrollContentProfile";
|
||||
|
||||
new CreatorTree(Creator)
|
||||
{
|
||||
profile = "GuiTreeViewProfile";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function Creator::init(%this)
|
||||
{
|
||||
%this.clear();
|
||||
|
||||
// %this.currentSel = -1;
|
||||
// %this.currentRoot = -1;
|
||||
// %this.currentObj = -1;
|
||||
|
||||
$InstantGroup = "MissionGroup";
|
||||
|
||||
// *** INTERIORS
|
||||
%base = %this.addGroup(0, "Interiors");
|
||||
%misc = %this.addGroup(%base, "Misc.");
|
||||
|
||||
//
|
||||
%shapeGroup[0] = "Blood Eagle - Lush";
|
||||
%shapeGroup[1] = "Diamond Sword - Volcanic";
|
||||
%shapeGroup[2] = "Star Wolf - Ice";
|
||||
%shapeGroup[3] = "Children of the Phoenix - Desert";
|
||||
%shapeGroup[4] = "Bioderm - Badlands";
|
||||
|
||||
%groupShort[0] = "b";
|
||||
%groupShort[1] = "d";
|
||||
%groupShort[2] = "s";
|
||||
%groupShort[3] = "p";
|
||||
%groupShort[4] = "x";
|
||||
|
||||
//
|
||||
%shapeType[0] = "Towers";
|
||||
%shapeType[1] = "Bunkers";
|
||||
%shapeType[2] = "Base";
|
||||
%shapeType[3] = "Platform";
|
||||
%shapeType[4] = "Bridge";
|
||||
%shapeType[5] = "Wall";
|
||||
%shapeType[6] = "Unique";
|
||||
%shapeType[7] = "Power";
|
||||
%shapeType[8] = "Misc.";
|
||||
%shapeType[9] = "Vehicle";
|
||||
%shapeType[10] = "Rocks";
|
||||
|
||||
%typeShort[0] = "towr";
|
||||
%typeShort[1] = "bunk";
|
||||
%typeShort[2] = "base";
|
||||
%typeShort[3] = "plat";
|
||||
%typeShort[4] = "brdg";
|
||||
%typeShort[5] = "wall";
|
||||
%typeShort[6] = "uniq";
|
||||
%typeShort[7] = "powr";
|
||||
%typeShort[8] = "misc";
|
||||
%typeShort[9] = "vbay";
|
||||
%typeShort[10] = "rock";
|
||||
|
||||
// create the groups
|
||||
%grpCount = 0;
|
||||
for(%i = 0; %shapeGroup[%i] !$= ""; %i++)
|
||||
{
|
||||
%parent = Creator.addGroup(%base, %shapeGroup[%i]);
|
||||
for(%j = 0; %shapeType[%j] !$= ""; %j++)
|
||||
{
|
||||
%group[%grpCount] = %this.addGroup(%parent, %shapeType[%j]);
|
||||
%grpCount++;
|
||||
}
|
||||
}
|
||||
|
||||
// walk all the interiors and add them to the correct group
|
||||
%file = findFirstFile("interiors/*.dif");
|
||||
while(%file !$= "")
|
||||
{
|
||||
%file = fileBase(%file);
|
||||
|
||||
%grpCount = 0;
|
||||
%added = false;
|
||||
for(%i = 0; !%added && %shapeGroup[%i] !$= ""; %i++)
|
||||
{
|
||||
for(%j = 0; %shapeType[%j] !$= ""; %j++)
|
||||
{
|
||||
if(%this.fileNameMatch(%groupShort[%i], %typeShort[%j], %file))
|
||||
{
|
||||
%this.addItem(%group[%grpCount], %file, "createInterior(" @ "\"" @ %file @ ".dif\"" @ ");");
|
||||
%added = true;
|
||||
}
|
||||
%grpCount++;
|
||||
}
|
||||
}
|
||||
|
||||
// throw it in the 'misc' directory
|
||||
if(!%added)
|
||||
%this.addItem(%misc, %file, "createInterior(" @ "\"" @ %file @ ".dif\"" @ ");");
|
||||
|
||||
%file = findNextFile("interiors/*.dif");
|
||||
}
|
||||
|
||||
// *** SHAPES - add in all the shapes now...
|
||||
%base = %this.addGroup(0, "Shapes");
|
||||
%dataGroup = "DataBlockGroup";
|
||||
|
||||
for(%i = 0; %i < %dataGroup.getCount(); %i++)
|
||||
{
|
||||
%obj = %dataGroup.getObject(%i);
|
||||
if(%obj.catagory !$= "" || %obj.catagory != 0)
|
||||
{
|
||||
%grp = %this.addGroup(%base, %obj.catagory);
|
||||
%this.addItem(%grp, %obj.getName(), %obj.getClassName() @ "::create(" @ %obj.getName() @ ");");
|
||||
}
|
||||
}
|
||||
|
||||
// Statics
|
||||
%staticBase = %this.addGroup(0, "Static Objects");
|
||||
for (%i = 0; %i < $NumStaticTSObjects; %i++) {
|
||||
echo("This: " SPC $StaticTSObjects[%i]);
|
||||
echo(getWord($StaticTSObjects[%i], 2));
|
||||
|
||||
%grp = %this.addGroup(%staticBase, getWord($StaticTSObjects[%i], 0));
|
||||
echo("TSStatic::create(" @ getWord($StaticTSObjects[%i], 2) @");");
|
||||
%this.addItem(%grp, getWord($StaticTSObjects[%i], 1), "TSStatic::create(\"" @ getWord($StaticTSObjects[%i], 2) @"\");");
|
||||
}
|
||||
|
||||
|
||||
// *** OBJECTS - do the objects now...
|
||||
%objGroup[0] = "Environment";
|
||||
%objGroup[1] = "Mission";
|
||||
%objGroup[2] = "System";
|
||||
%objGroup[3] = "AI";
|
||||
|
||||
%Environment_Item[0] = "Sky";
|
||||
%Environment_Item[1] = "Sun";
|
||||
%Environment_Item[2] = "Lightning";
|
||||
%Environment_Item[3] = "Water";
|
||||
%Environment_Item[4] = "Terrain";
|
||||
%Environment_Item[5] = "AudioEmitter";
|
||||
%Environment_Item[6] = "Precipitation";
|
||||
%Environment_Item[7] = "ParticleEmitter";
|
||||
|
||||
%Mission_Item[0] = "MissionArea";
|
||||
%Mission_Item[1] = "GameType";
|
||||
%Mission_Item[2] = "Marker";
|
||||
%Mission_Item[3] = "Forcefield";
|
||||
%Mission_Item[4] = "Trigger";
|
||||
%Mission_Item[5] = "PhysicalZone";
|
||||
%Mission_Item[6] = "Camera";
|
||||
|
||||
%System_Item[0] = "SimGroup";
|
||||
|
||||
%AI_Item[0] = "Objective";
|
||||
//%AI_Item[1] = "NavigationGraph";
|
||||
|
||||
// objects group
|
||||
%base = %this.addGroup(0, "Objects");
|
||||
|
||||
// create 'em
|
||||
for(%i = 0; %objGroup[%i] !$= ""; %i++)
|
||||
{
|
||||
%grp = %this.addGroup(%base, %objGroup[%i]);
|
||||
|
||||
%groupTag = "%" @ %objGroup[%i] @ "_Item";
|
||||
|
||||
%done = false;
|
||||
for(%j = 0; !%done; %j++)
|
||||
{
|
||||
eval("%itemTag = " @ %groupTag @ %j @ ";");
|
||||
if(%itemTag $= "")
|
||||
%done = true;
|
||||
else
|
||||
%this.addItem(%grp, %itemTag, "ObjectBuilderGui.build" @ %itemTag @ "();");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function createInterior(%name)
|
||||
{
|
||||
%obj = new InteriorInstance()
|
||||
{
|
||||
position = "0 0 0";
|
||||
rotation = "0 0 0";
|
||||
interiorFile = %name;
|
||||
};
|
||||
|
||||
return(%obj);
|
||||
}
|
||||
|
||||
function Creator::onAction(%this)
|
||||
{
|
||||
// %this.currentSel = -1;
|
||||
// %this.currentRoot = -1;
|
||||
// %this.currentObj = -1;
|
||||
|
||||
%sel = %this.getSelected();
|
||||
if(%sel == -1 || %this.isGroup(%sel) || !$MissionRunning)
|
||||
return;
|
||||
|
||||
// the value is the callback function..
|
||||
if(%this.getValue(%sel) $= "")
|
||||
return;
|
||||
|
||||
%this.currentSel = %sel;
|
||||
%this.currentRoot = %this.getRootGroup(%sel);
|
||||
|
||||
%this.create(%sel);
|
||||
}
|
||||
|
||||
function Creator::create(%this, %sel)
|
||||
{
|
||||
// create the obj and add to the instant group
|
||||
%obj = eval(%this.getValue(%sel));
|
||||
|
||||
if(%obj == -1 || %obj == 0)
|
||||
return;
|
||||
|
||||
// %this.currentObj = %obj;
|
||||
|
||||
$InstantGroup.add(%obj);
|
||||
|
||||
// drop it from the editor - only SceneObjects can be selected...
|
||||
wEditor.clearSelection();
|
||||
wEditor.selectObject(%obj);
|
||||
wEditor.dropSelection();
|
||||
}
|
||||
|
||||
//function Creator::getRootGroup(%sel)
|
||||
//{
|
||||
// if(%sel == -1 || %sel == 0)
|
||||
// return(-1);
|
||||
//
|
||||
// %parent = %this.getParent(%sel);
|
||||
// while(%parent != 0 || %parent != -1)
|
||||
// {
|
||||
// %sel = %parent;
|
||||
// %parent = %this.getParent(%sel);
|
||||
// }
|
||||
//
|
||||
// return(%sel);
|
||||
//}
|
||||
//
|
||||
//function Creator::getLastItem(%rootGroup)
|
||||
//{
|
||||
// %traverse = %rootGroup + 1;
|
||||
// while(%this.getRootGroup(%traverse) == %rootGroup)
|
||||
// %traverse++;
|
||||
// return(%traverse - 1);
|
||||
//}
|
||||
//
|
||||
//function Creator::createNext(%this)
|
||||
//{
|
||||
// if(%this.currentSel == -1 || %this.currentRoot == -1 || %this.currentObj == -1)
|
||||
// return;
|
||||
//
|
||||
// %sel = %this.currentSel;
|
||||
// %this.currentSel++;
|
||||
//
|
||||
// while(%this.currentSel != %sel)
|
||||
// {
|
||||
// if(%this.getRootGroup(%this.currentSel) != %this.currentRoot)
|
||||
// %this.currentSel = %this.currentRoot + 1;
|
||||
//
|
||||
// if(%this.isGroup(%this.currentSel))
|
||||
// %this.currentSel++;
|
||||
// else
|
||||
// %sel = %this.currentSel;
|
||||
// }
|
||||
//
|
||||
// //
|
||||
// %this.currentObj.delete();
|
||||
// %this.create(%sel);
|
||||
//}
|
||||
//
|
||||
//function Creator::createPrevious(%this)
|
||||
//{
|
||||
// if(%this.currentSel == -1 || %this.currentGroup == -1 || %this.currentObj == -1)
|
||||
// return;
|
||||
//
|
||||
// %sel = %this.currentSel;
|
||||
// %this.currentSel--;
|
||||
//
|
||||
// while(%this.currentSel != %sel)
|
||||
// {
|
||||
// if(%this.getRootGroup(%this.currentSel) != %this.currentRoot)
|
||||
// %this.currentSel = getLastItem(%this.currentRoot);
|
||||
//
|
||||
// if(%this.isGroup(%this.currentSel))
|
||||
// %this.currentSel--;
|
||||
// else
|
||||
// %sel = %this.currentSel;
|
||||
// }
|
||||
//
|
||||
// //
|
||||
// %this.currentObj.delete();
|
||||
// %this.create(%sel);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
59
base/gui/EditorToolInspectorGui.gui
Normal file
59
base/gui/EditorToolInspectorGui.gui
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
|
||||
new GuiControl(EditorToolInspectorGui)
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
position = "0 0";
|
||||
extent = "200 200";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
|
||||
new GuiButtonCtrl()
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
position = "2 2";
|
||||
extent = "40 20";
|
||||
text = "Apply";
|
||||
command = "inspector.apply(InspectorNameEdit.getValue());";
|
||||
};
|
||||
|
||||
new GuiTextEditCtrl(InspectorNameEdit)
|
||||
{
|
||||
profile = "GuiTextEditProfile";
|
||||
position = "44 2";
|
||||
extent = "160 20";
|
||||
text = "";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
};
|
||||
|
||||
new GuiScrollCtrl()
|
||||
{
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
vScrollBar = "alwaysOn";
|
||||
hScrollBar = "dynamic";
|
||||
vertSizing = "height";
|
||||
horizSizing = "width";
|
||||
position = "0 24";
|
||||
|
||||
new GuiScrollContentCtrl()
|
||||
{
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
|
||||
new GuiInspector(Inspector)
|
||||
{
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
function Inspector::init()
|
||||
{
|
||||
}
|
||||
195
base/gui/EditorToolMissionAreaGui.gui
Normal file
195
base/gui/EditorToolMissionAreaGui.gui
Normal file
|
|
@ -0,0 +1,195 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(editortoolmissionareagui) {
|
||||
profile = "EditorContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl(AE_MainBar) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiCheckBoxCtrl() {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "2 2";
|
||||
extent = "60 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
variable = "AreaEditor.enableEditing";
|
||||
command = "AreaEditor.enableEditing = $ThisControl.getValue();";
|
||||
helpTag = "0";
|
||||
text = "Edit Area";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "63 2";
|
||||
extent = "60 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "AreaEditor.centerWorld();";
|
||||
helpTag = "0";
|
||||
text = "Center";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "125 2";
|
||||
extent = "60 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "AreaEditor.enableMirroring = true;AE_MainBar.setVisible(0);AE_MirrorBar.setVisible(1);";
|
||||
helpTag = "0";
|
||||
text = "Mirror";
|
||||
};
|
||||
};
|
||||
new GuiControl(AE_MirrorBar) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 20";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 1";
|
||||
extent = "30 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "if(AreaEditor.mirrorIndex == 0) AreaEditor.mirrorIndex = 7; else AreaEditor.mirrorIndex--;";
|
||||
helpTag = "0";
|
||||
text = "<--";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "37 1";
|
||||
extent = "30 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "if(AreaEditor.mirrorIndex == 7) AreaEditor.mirrorIndex = 0; else AreaEditor.mirrorIndex++;";
|
||||
helpTag = "0";
|
||||
text = "-->";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "78 1";
|
||||
extent = "60 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "AreaEditor.enableMirroring = false;tEditor.mirrorTerrain(AreaEditor.mirrorIndex);AreaEditor.updateTerrain();AE_MirrorBar.setVisible(0);AE_MainBar.setVisible(1);";
|
||||
helpTag = "0";
|
||||
text = "Apply";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "141 1";
|
||||
extent = "60 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "AreaEditor.enableMirroring = false;AE_MirrorBar.setVisible(0);AE_MainBar.setVisible(1);";
|
||||
helpTag = "0";
|
||||
text = "Cancel";
|
||||
};
|
||||
};
|
||||
new MissionAreaEditor(AreaEditor) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 20";
|
||||
extent = "640 440";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
wrap = "0";
|
||||
squareBitmap = "1";
|
||||
enableEditing = "0";
|
||||
renderCamera = "1";
|
||||
handleFrameColor = "255 255 255 255";
|
||||
handleFillColor = "0 0 0 255";
|
||||
defaultObjectColor = "0 255 0 100";
|
||||
waterObjectColor = "0 0 255 100";
|
||||
missionBoundsColor = "255 0 0 255";
|
||||
cameraColor = "255 0 0 255";
|
||||
enableMirroring = "0";
|
||||
mirrorIndex = "0";
|
||||
mirrorLineColor = "255 0 255 255";
|
||||
mirrorArrowColor = "255 0 255 128";
|
||||
};
|
||||
new GuiTextCtrl(AreaEditingText) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "5 460";
|
||||
extent = "640 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function AreaEditor::init(%this)
|
||||
{
|
||||
}
|
||||
|
||||
function AreaEditor::onUpdate(%this, %area)
|
||||
{
|
||||
AreaEditingText.setValue( "X: " @ getWord(%area,0) @ " Y: " @ getWord(%area,1) @ " W: " @ getWord(%area,2) @ " H: " @ getWord(%area,3));
|
||||
}
|
||||
|
||||
function AreaEditor::onWorldOffset(%this, %offset)
|
||||
{
|
||||
}
|
||||
30
base/gui/EditorToolThumbnailGui.gui
Normal file
30
base/gui/EditorToolThumbnailGui.gui
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
|
||||
new GuiScrollCtrl(ThumbnailView)
|
||||
{
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
vScrollBar = "allwaysOn";
|
||||
hScrollBar = "dynamic";
|
||||
|
||||
new GuiScrollContentCtrl()
|
||||
{
|
||||
profile = "GuiScrollContentProfile";
|
||||
|
||||
new GuiBitmapCtrl(ThumbnailPreview)
|
||||
{
|
||||
profile = "GuiScrollContentProfile";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function ThumbnailPreview::init(%this)
|
||||
{
|
||||
}
|
||||
108
base/gui/EditorToolTreeViewGui.gui
Normal file
108
base/gui/EditorToolTreeViewGui.gui
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
|
||||
new GuiScrollCtrl(EditorToolTreeViewGui)
|
||||
{
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
vScrollBar = "alwaysOn";
|
||||
hScrollBar = "dynamic";
|
||||
position = "0 0";
|
||||
extent = "200 400";
|
||||
|
||||
new GuiScrollContentCtrl()
|
||||
{
|
||||
profile = "GuiScrollContentProfile";
|
||||
|
||||
// new GuiTreeViewCtrl(EditorTree)
|
||||
new GuiTreeView(EditorTree)
|
||||
{
|
||||
profile = "GuiTreeViewProfile";
|
||||
position = "0 0";
|
||||
extent = "300 300";
|
||||
horizSizing = "width";
|
||||
allowMultipleSelections = "true";
|
||||
recurseSets = "true";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Functions
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
function EditorTree::init(%this)
|
||||
{
|
||||
%this.open(MissionGroup);
|
||||
|
||||
// context menu
|
||||
new GuiControl(ETContextPopupDlg)
|
||||
{
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
|
||||
new GuiPopUpMenuCtrl(ETContextPopup)
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
position = "0 0";
|
||||
extent = "0 0";
|
||||
minExtent = "0 0";
|
||||
maxPopupHeight = "200";
|
||||
command = "canvas.popDialog(ETContextPopupDlg);";
|
||||
};
|
||||
};
|
||||
ETContextPopup.setVisible(false);
|
||||
}
|
||||
|
||||
function EditorTree::onInspect(%this, %obj)
|
||||
{
|
||||
Inspector.inspect(%obj);
|
||||
InspectorNameEdit.setValue(%obj.getName());
|
||||
}
|
||||
|
||||
function EditorTree::onSelect(%this, %obj)
|
||||
{
|
||||
if($AIEdit)
|
||||
aiEdit.selectObject(%obj);
|
||||
else
|
||||
wEditor.selectObject(%obj);
|
||||
|
||||
}
|
||||
|
||||
function EditorTree::onUnselect(%this, %obj)
|
||||
{
|
||||
if($AIEdit)
|
||||
aiEdit.unselectObject(%obj);
|
||||
else
|
||||
wEditor.unselectObject(%obj);
|
||||
}
|
||||
|
||||
function EditorTree::onContextMenu(%this, %mousePos, %obj)
|
||||
{
|
||||
ETContextPopup.position = %mousePos;
|
||||
ETContextPopup.clear();
|
||||
ETContextPopup.add("Delete", 0);
|
||||
|
||||
canvas.pushDialog(ETContextPopupDlg);
|
||||
ETContextPopup.forceOnAction();
|
||||
|
||||
%this.contextObj = %obj;
|
||||
}
|
||||
|
||||
function ETContextPopup::onSelect(%this, %index, %value)
|
||||
{
|
||||
switch(%index)
|
||||
{
|
||||
case 0:
|
||||
EditorTree.contextObj.delete();
|
||||
}
|
||||
}
|
||||
85
base/gui/EditorToolbarDlg.gui
Normal file
85
base/gui/EditorToolbarDlg.gui
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(EditorToolbarDlg) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "editor.close();";
|
||||
helpTag = "0";
|
||||
text = "Back";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "123 4";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "Editor.setEditor(WorldEditor);";
|
||||
helpTag = "0";
|
||||
text = "World Editor";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "207 4";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "Editor.setEditor(TerrainEditor);";
|
||||
helpTag = "0";
|
||||
text = "Terrain Editor";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "291 4";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "Editor.setEditor(Terraformer);";
|
||||
helpTag = "0";
|
||||
text = "Terraformer";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "375 4";
|
||||
extent = "80 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "Editor.setEditor(AIEditor);";
|
||||
helpTag = "0";
|
||||
text = "AI Editor";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
118
base/gui/EmailBlockDlg.gui
Normal file
118
base/gui/EmailBlockDlg.gui
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(EmailBlockDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "154 64";
|
||||
extent = "332 320";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EDIT BLOCK LIST";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "32 265";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailBlockRemove();";
|
||||
helpTag = "0";
|
||||
text = "REMOVE BLOCK";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "22 42";
|
||||
extent = "287 222";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 7";
|
||||
extent = "279 208";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextList(EmailBlockList) {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "263 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
enumerate = "0";
|
||||
resizeCell = "1";
|
||||
columns = "0 169";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 28";
|
||||
extent = "45 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Sender:";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "169 265";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog(EmailBlockDlg);";
|
||||
helpTag = "0";
|
||||
text = "DONE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "179 28";
|
||||
extent = "103 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "# Blocked Emails:";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
183
base/gui/EmailComposeDlg.gui
Normal file
183
base/gui/EmailComposeDlg.gui
Normal file
|
|
@ -0,0 +1,183 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(EMailComposeDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
key = "76";
|
||||
state = "replyMail";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "70 36";
|
||||
extent = "500 408";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "COMPOSE EMAIL";
|
||||
maxLength = "255";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellTextEditCtrl(Email_ToEdit) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 22";
|
||||
extent = "408 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$EmailToAddress";
|
||||
helpTag = "0";
|
||||
text = "BigDevDawg,Symlink,Diamondback,Todesritter";
|
||||
maxLength = "2000";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl(EMail_CCEdit) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 48";
|
||||
extent = "408 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$EmailCCAddress";
|
||||
helpTag = "0";
|
||||
text = "brunhilda,jett,DrAwkward,Rated z";
|
||||
maxLength = "2000";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellTextEditCtrl(Email_Subject) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "72 74";
|
||||
extent = "408 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$EmailSubject";
|
||||
helpTag = "0";
|
||||
maxLength = "48";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "27 109";
|
||||
extent = "447 244";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "7 7";
|
||||
extent = "417 230";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextEditCtrl(EmailBodyText) {
|
||||
profile = "ShellMessageTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "417 230";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "3600";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "81 353";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailComposeDlg.Cancel();";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "291 353";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EMailComposeDlg.SendMail();";
|
||||
helpTag = "0";
|
||||
text = "SEND";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "28 84";
|
||||
extent = "47 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Subject:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellBitmapButton(ToButton) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "38 22";
|
||||
extent = "50 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "LaunchAddressDlg();";
|
||||
helpTag = "0";
|
||||
text = "TO:";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(CCButton) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "38 48";
|
||||
extent = "50 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "LaunchAddressDlg();";
|
||||
helpTag = "0";
|
||||
text = "CC:";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
354
base/gui/EmailGui.gui
Normal file
354
base/gui/EmailGui.gui
Normal file
|
|
@ -0,0 +1,354 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiChunkedBitmapCtrl(EmailGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$ShellBackground";
|
||||
helpTag = "0";
|
||||
useVariable = "1";
|
||||
key = "2";
|
||||
messageCount = "1";
|
||||
state = "done";
|
||||
cacheLoaded = "1";
|
||||
soundPlayed = "0";
|
||||
eid = "593";
|
||||
checkingEMail = "1";
|
||||
checkSchedule = "596";
|
||||
btnClicked = "0";
|
||||
STATUS = "error";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "12 46";
|
||||
extent = "620 390";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EMAIL";
|
||||
maxLength = "255";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellBitmapButton(EM_BlockEditBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "324 42";
|
||||
extent = "90 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailEditBlocks();";
|
||||
helpTag = "0";
|
||||
text = "BLOCK LIST";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(EM_AddBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "427 29";
|
||||
extent = "93 38";
|
||||
minExtent = "32 38";
|
||||
visible = "0";
|
||||
command = "EmailBlockSender();";
|
||||
helpTag = "0";
|
||||
text = "TRACK SENDER";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(EM_DeleteBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "275 42";
|
||||
extent = "65 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailMessageDelete();";
|
||||
accelerator = "delete";
|
||||
helpTag = "0";
|
||||
text = "DELETE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(EM_ForwardBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "216 42";
|
||||
extent = "75 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailMessageForward();";
|
||||
helpTag = "0";
|
||||
text = "FORWARD";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(EM_ReplyToAllBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "152 42";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailMessageReplyAll();";
|
||||
helpTag = "0";
|
||||
text = "REPLY ALL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(EM_ReplyBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "108 42";
|
||||
extent = "60 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailMessageReply();";
|
||||
helpTag = "0";
|
||||
text = "REPLY";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(em_NewMailbtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "71 42";
|
||||
extent = "53 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailMessageNew();";
|
||||
helpTag = "0";
|
||||
text = "NEW";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new GuiFrameSetCtrl(EM_Frame) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "18 70";
|
||||
extent = "583 301";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
columns = "0";
|
||||
rows = "0 146";
|
||||
borderWidth = "4";
|
||||
borderColor = "5 199 145 255";
|
||||
borderEnable = "dynamic";
|
||||
borderMovable = "dynamic";
|
||||
autoBalance = "0";
|
||||
fudgeFactor = "4";
|
||||
|
||||
new ShellFancyArrayScrollCtrl(EM_BrowserPane) {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "583 142";
|
||||
minExtent = "8 72";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
fixedHorizontal = "1";
|
||||
vertSpacerBitmap = "gui/shll_vertspacer";
|
||||
horzSpacerBitmap = "gui/shll_horzspacer";
|
||||
|
||||
new VirtualScrollCtrl() {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 16";
|
||||
extent = "583 126";
|
||||
minExtent = "8 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "0";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 0";
|
||||
|
||||
new VirtualScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "559 118";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "8 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiEmailBrowser(EM_Browser) {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "563 138";
|
||||
minExtent = "8 20";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
startScrollRegion = "4 0";
|
||||
headerBitmap = "gui/server_tabs";
|
||||
sortArrowBitmap = "gui/shll_sortarrow";
|
||||
fieldBase = "gui/shll_field";
|
||||
barBase = "gui/shll_bar";
|
||||
glowOffset = "4";
|
||||
rowHeight = "19";
|
||||
headerFontType = "Univers Condensed";
|
||||
headerFontSize = "16";
|
||||
headerFontColor = "8 19 6 255";
|
||||
headerFontColorHL = "25 68 56 255";
|
||||
separatorColor = "192 192 192 255";
|
||||
drawSeparators = "0";
|
||||
headerSort = "1";
|
||||
allowReposition = "1";
|
||||
iconBase = "gui/email";
|
||||
unreadFontType = "Univers Bold";
|
||||
unreadFontSize = "16";
|
||||
unreadFontColor = "6 245 215 255";
|
||||
headerGlowOffset = "4";
|
||||
};
|
||||
};
|
||||
new ShellScrollCtrl(EM_MessagePane) {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "height";
|
||||
position = "0 146";
|
||||
extent = "583 155";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 7";
|
||||
extent = "553 141";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(EMailInboxBodyText) {
|
||||
profile = "ShellMessageTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "551 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "-1";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(EM_BuddyEditBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "504 29";
|
||||
extent = "100 38";
|
||||
minExtent = "32 38";
|
||||
visible = "0";
|
||||
command = "EmailEditBuddys();";
|
||||
helpTag = "0";
|
||||
text = "TRACKING LIST";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(EM_BlockBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "398 42";
|
||||
extent = "105 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "EmailBlockSender();";
|
||||
helpTag = "0";
|
||||
text = "BLOCK SENDER";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(em_GetMailBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "12 42";
|
||||
extent = "75 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "GetEmailBtnClick();";
|
||||
helpTag = "0";
|
||||
text = "GET MAIL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellRadioButton(rbInbox) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "15 24";
|
||||
extent = "101 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "EMailGui.ButtonClick(0);";
|
||||
helpTag = "0";
|
||||
text = "INBOX";
|
||||
maxLength = "255";
|
||||
groupNum = "0";
|
||||
};
|
||||
new ShellRadioButton(rbSendItems) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "222 24";
|
||||
extent = "110 30";
|
||||
minExtent = "26 27";
|
||||
visible = "0";
|
||||
helpTag = "0";
|
||||
text = "SENT MAIL";
|
||||
maxLength = "255";
|
||||
groupNum = "0";
|
||||
};
|
||||
new ShellRadioButton(rbDeleted) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "113 24";
|
||||
extent = "112 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "EmailGui.buttonClick(1);";
|
||||
helpTag = "0";
|
||||
text = "DELETED MAIL";
|
||||
maxLength = "255";
|
||||
groupNum = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
297
base/gui/FilterEditDlg.gui
Normal file
297
base/gui/FilterEditDlg.gui
Normal file
|
|
@ -0,0 +1,297 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(FilterEditDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "20 55";
|
||||
extent = "600 370";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EDIT GAME FILTER";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "48 40";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Filter Name:";
|
||||
};
|
||||
new ShellTextEditCtrl(FilterEditName) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "124 32";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "New Filter";
|
||||
historySize = "0";
|
||||
maxLength = "16";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "53 78";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Rules Set:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "53 108";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Game Type:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "326 78";
|
||||
extent = "106 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Min Player Count:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "326 108";
|
||||
extent = "106 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Max Player Count:";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "111 197";
|
||||
extent = "82 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Server Location:";
|
||||
};
|
||||
new ShellPopupMenu(FilterEditGameType) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "150 69";
|
||||
extent = "150 36";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Any";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new ShellTextEditCtrl(FilterEditMinPlayers) {
|
||||
profile = "NewTextEditNumericProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "428 70";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
validate = "FilterEditDlg.setMinPlayers();";
|
||||
historySize = "0";
|
||||
maxLength = "3";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellPopupMenu(FilterEditMissionType) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "150 99";
|
||||
extent = "150 36";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Any";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new ShellTextEditCtrl(FilterEditMaxPlayers) {
|
||||
profile = "NewTextEditNumericProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "428 100";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "255";
|
||||
validate = "FilterEditDlg.setMaxPlayers();";
|
||||
historySize = "0";
|
||||
maxLength = "3";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellToggleButton(FilterEditUsePingTgl) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "108 155";
|
||||
extent = "165 27";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "FILTER BY MAX PING";
|
||||
};
|
||||
new ShellTextEditCtrl(FilterEditMaxPing) {
|
||||
profile = "NewTextEditNumericProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "277 150";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "0";
|
||||
validate = "FilterEditDlg.setMaxPing();";
|
||||
historySize = "0";
|
||||
maxLength = "3";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellToggleButton(FilterEditLocMask0) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "108 219";
|
||||
extent = "165 27";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "FilterEditDlg.checkRegionMasks( 0 );";
|
||||
helpTag = "0";
|
||||
text = "NORTH AMERICA EAST";
|
||||
};
|
||||
new ShellToggleButton(FilterEditLocMask3) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "322 219";
|
||||
extent = "165 27";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "FilterEditDlg.checkRegionMasks( 3 );";
|
||||
helpTag = "0";
|
||||
text = "AUSTRALIA";
|
||||
};
|
||||
new ShellToggleButton(FilterEditLocMask1) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "108 247";
|
||||
extent = "165 27";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "FilterEditDlg.checkRegionMasks( 1 );";
|
||||
helpTag = "0";
|
||||
text = "NORTH AMERICA WEST";
|
||||
};
|
||||
new ShellToggleButton(FilterEditLocMask4) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "322 247";
|
||||
extent = "165 27";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "FilterEditDlg.checkRegionMasks( 4 );";
|
||||
helpTag = "0";
|
||||
text = "ASIA";
|
||||
};
|
||||
new ShellToggleButton(FilterEditLocMask2) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "108 275";
|
||||
extent = "165 27";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "FilterEditDlg.checkRegionMasks( 2 );";
|
||||
helpTag = "0";
|
||||
text = "SOUTH AMERICA";
|
||||
};
|
||||
new ShellToggleButton(FilterEditLocMask5) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "322 275";
|
||||
extent = "165 27";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "FilterEditDlg.checkRegionMasks( 5 );";
|
||||
helpTag = "0";
|
||||
text = "EUROPE";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "83 315";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog(FilterEditDlg);";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "396 315";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ChooseFilterDlg.saveFilter();";
|
||||
helpTag = "0";
|
||||
text = "SAVE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
140
base/gui/ForumsComposeDlg.gui
Normal file
140
base/gui/ForumsComposeDlg.gui
Normal file
|
|
@ -0,0 +1,140 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ForumsComposeDlg) {
|
||||
profile = "DlgBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
action = "Reply";
|
||||
parentPost = "18598";
|
||||
forum = "58";
|
||||
post = "12846";
|
||||
topic = "3822";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellDlgPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "70 36";
|
||||
extent = "500 408";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "FORUMS POST";
|
||||
maxLength = "255";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "22 37";
|
||||
extent = "47 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Subject:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellTextEditCtrl(FP_SubjectEdit) {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "65 29";
|
||||
extent = "360 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$ForumsSubject";
|
||||
helpTag = "0";
|
||||
maxLength = "255";
|
||||
historySize = "0";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "27 63";
|
||||
extent = "448 298";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 7";
|
||||
extent = "418 284";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextEditCtrl(ForumsBodyText) {
|
||||
profile = "ShellMessageTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 -130";
|
||||
extent = "418 414";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "1";
|
||||
maxChars = "3600";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "239 358";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.popDialog(ForumsComposeDlg);";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "351 358";
|
||||
extent = "128 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ForumsPost();";
|
||||
helpTag = "0";
|
||||
text = "POST";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(QuoteBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "22 357";
|
||||
extent = "172 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "GetQuotedText();";
|
||||
helpTag = "0";
|
||||
text = "INCLUDE TOPIC POST TEXT";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
534
base/gui/ForumsGui.gui
Normal file
534
base/gui/ForumsGui.gui
Normal file
|
|
@ -0,0 +1,534 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiChunkedBitmapCtrl(ForumsGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$ShellBackground";
|
||||
helpTag = "0";
|
||||
useVariable = "1";
|
||||
eid = "979";
|
||||
key = "93";
|
||||
state = "done";
|
||||
ebstat = "1";
|
||||
initialized = "1";
|
||||
refreshTarget = "1";
|
||||
TextCheck = "0";
|
||||
refreshFlag = "0";
|
||||
forumCount = "-1";
|
||||
bflag = "4";
|
||||
|
||||
new ShellPaneCtrl(ForumShell) {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "13 46";
|
||||
extent = "620 390";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "FORUMS";
|
||||
maxLength = "255";
|
||||
noTitleBar = "0";
|
||||
|
||||
new GuiControl(ForumsThreadPane) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "19 26";
|
||||
extent = "582 350";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 3";
|
||||
extent = "36 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "TOPIC:";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiTextCtrl(FO_TopicText) {
|
||||
profile = "ShellTopicTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "50 3";
|
||||
extent = "522 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Actual Topic Will Go Here";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiFrameSetCtrl(FO_Frame) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "2 18";
|
||||
extent = "578 292";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
columns = "0";
|
||||
rows = "0 158";
|
||||
borderWidth = "4";
|
||||
borderColor = "5 199 145 255";
|
||||
borderEnable = "dynamic";
|
||||
borderMovable = "dynamic";
|
||||
autoBalance = "0";
|
||||
fudgeFactor = "4";
|
||||
|
||||
new ShellFancyArrayScrollCtrl(FO_MessagePane) {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "578 154";
|
||||
minExtent = "24 72";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
fixedHorizontal = "1";
|
||||
vertSpacerBitmap = "gui/shll_vertspacer";
|
||||
horzSpacerBitmap = "gui/shll_horzspacer";
|
||||
|
||||
new VirtualScrollCtrl() {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 16";
|
||||
extent = "578 138";
|
||||
minExtent = "8 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "0";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 0";
|
||||
|
||||
new VirtualScrollContentCtrl() {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "554 130";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "8 21";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellFancyTextList(ForumsMessageList) {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "558 150";
|
||||
minExtent = "8 20";
|
||||
visible = "1";
|
||||
altCommand = "LinkBrowser(getField(ForumsMessageList.getRowTextById(ForumsMessageList.getSelectedID()),6),\"Warrior\");";
|
||||
helpTag = "0";
|
||||
startScrollRegion = "3 0";
|
||||
headerBitmap = "gui/server_tabs";
|
||||
sortArrowBitmap = "gui/shll_sortarrow";
|
||||
fieldBase = "gui/shll_field";
|
||||
barBase = "gui/shll_bar";
|
||||
glowOffset = "4";
|
||||
rowHeight = "19";
|
||||
headerFontType = "Univers Condensed";
|
||||
headerFontSize = "16";
|
||||
headerFontColor = "8 19 6 255";
|
||||
headerFontColorHL = "25 68 56 255";
|
||||
separatorColor = "192 192 192 255";
|
||||
drawSeparators = "0";
|
||||
headerSort = "0";
|
||||
allowReposition = "0";
|
||||
updateCount = "0";
|
||||
key = "71";
|
||||
state = "replyPost";
|
||||
lastId = "16480";
|
||||
highestUpdate = "16480";
|
||||
bflag = "1";
|
||||
};
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 158";
|
||||
extent = "578 134";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "7 7";
|
||||
extent = "548 120";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(ForumsText) {
|
||||
profile = "ShellMessageTextProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "532 180";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(FO_EditBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "38 309";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "0";
|
||||
command = "ForumsEditPost();";
|
||||
helpTag = "0";
|
||||
text = "EDIT";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(FO_AcceptBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "110 309";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "0";
|
||||
command = "ForumsAcceptPost();";
|
||||
accelerator = "alt a";
|
||||
helpTag = "0";
|
||||
text = "ACCEPT";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(FO_RejectBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "182 309";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "0";
|
||||
command = "ForumsRejectPost();";
|
||||
accelerator = "delete";
|
||||
helpTag = "0";
|
||||
text = "DELETE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(FO_ReplyBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "275 309";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ForumsReply();";
|
||||
accelerator = "alt r";
|
||||
helpTag = "0";
|
||||
text = "REPLY";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(FO_NextBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "405 309";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ForumsNext();";
|
||||
accelerator = "s";
|
||||
helpTag = "0";
|
||||
text = "NEXT";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(FO_PreviousBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "340 309";
|
||||
extent = "80 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ForumsPrevious();";
|
||||
accelerator = "w";
|
||||
helpTag = "0";
|
||||
text = "PREVIOUS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "470 309";
|
||||
extent = "115 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ForumsGoTopics();";
|
||||
accelerator = "backspace";
|
||||
helpTag = "0";
|
||||
text = "BACK TO TOPICS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
new GuiControl(ForumsTopicsPane) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "15 26";
|
||||
extent = "580 349";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "7 16";
|
||||
extent = "161 291";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 2";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 6";
|
||||
extent = "137 279";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextList(ForumsList) {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "137 1908";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
enumerate = "1";
|
||||
resizeCell = "1";
|
||||
columns = "0";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
forum = "58";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellFancyArrayScrollCtrl() {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "166 1";
|
||||
extent = "418 306";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
fixedHorizontal = "1";
|
||||
vertSpacerBitmap = "gui/shll_vertspacer";
|
||||
horzSpacerBitmap = "gui/shll_horzspacer";
|
||||
|
||||
new VirtualScrollCtrl() {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "344 16";
|
||||
extent = "74 290";
|
||||
minExtent = "8 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "0";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 3";
|
||||
|
||||
new VirtualScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 7";
|
||||
extent = "50 276";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "52 1161";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellFancyTextList(ForumsTopicsList) {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "398 302";
|
||||
minExtent = "8 20";
|
||||
visible = "1";
|
||||
altCommand = "ForumsOpenThread();";
|
||||
helpTag = "0";
|
||||
startScrollRegion = "3 0";
|
||||
headerBitmap = "gui/server_tabs";
|
||||
sortArrowBitmap = "gui/shll_sortarrow";
|
||||
fieldBase = "gui/shll_field";
|
||||
barBase = "gui/shll_bar";
|
||||
glowOffset = "4";
|
||||
rowHeight = "19";
|
||||
headerFontType = "Univers Condensed";
|
||||
headerFontSize = "16";
|
||||
headerFontColor = "8 19 6 255";
|
||||
headerFontColorHL = "25 68 56 255";
|
||||
separatorColor = "192 192 192 255";
|
||||
drawSeparators = "0";
|
||||
headerSort = "1";
|
||||
allowReposition = "0";
|
||||
key = "43";
|
||||
state = "lines";
|
||||
selId = "0";
|
||||
count = "0";
|
||||
refreshFlag = "0";
|
||||
forum = "0";
|
||||
autoSelect = "1";
|
||||
FirstCount = "0";
|
||||
};
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 3";
|
||||
extent = "47 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "FORUMS";
|
||||
maxLength = "255";
|
||||
};
|
||||
new ShellBitmapButton(FM_NewTopic) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "160 300";
|
||||
extent = "90 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ForumsNewTopic();";
|
||||
helpTag = "0";
|
||||
text = "NEW TOPIC";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(FM_TopThreads) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "234 300";
|
||||
extent = "117 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "ForumsRefreshTopics();";
|
||||
helpTag = "0";
|
||||
text = "REFRESH TOPICS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(FM_NextThreads) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "406 309";
|
||||
extent = "90 38";
|
||||
minExtent = "32 38";
|
||||
visible = "0";
|
||||
command = "ForumsGoTopics(1);";
|
||||
helpTag = "0";
|
||||
text = "NEXT TOPICS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(FM_PrevThreads) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "324 309";
|
||||
extent = "90 38";
|
||||
minExtent = "32 38";
|
||||
visible = "0";
|
||||
command = "ForumsGoTopics(2);";
|
||||
helpTag = "0";
|
||||
text = "PREV TOPICS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(RForumsBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "1 300";
|
||||
extent = "118 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "GetForumsList();";
|
||||
helpTag = "0";
|
||||
text = "REFRESH FORUMS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
28
base/gui/FrameOverlayGui.gui
Normal file
28
base/gui/FrameOverlayGui.gui
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(FrameOverlayGui) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "false";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiConsoleTextCtrl(TextOverlayControl) {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "5 5";
|
||||
extent = "15 18";
|
||||
minExtent = "8 8";
|
||||
visible = "True";
|
||||
setFirstResponder = "True";
|
||||
modal = "True";
|
||||
helpTag = "0";
|
||||
expression = "10";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
872
base/gui/GameGui.gui
Normal file
872
base/gui/GameGui.gui
Normal file
|
|
@ -0,0 +1,872 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiChunkedBitmapCtrl(GameGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
variable = "$ShellBackground";
|
||||
helpTag = "0";
|
||||
useVariable = "1";
|
||||
|
||||
new ShellPaneCtrl(GM_Frame) {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "12 46";
|
||||
extent = "620 390";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "GAME";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellTabFrame(GM_TabFrame) {
|
||||
profile = "ShellHorzTabFrameProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "22 54";
|
||||
extent = "576 254";
|
||||
minExtent = "26 254";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
isVertical = "0";
|
||||
useCloseButton = "0";
|
||||
edgeInset = "0";
|
||||
};
|
||||
new ShellTabGroupCtrl(GM_TabView) {
|
||||
profile = "TabGroupProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "30 25";
|
||||
extent = "560 29";
|
||||
minExtent = "38 29";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
glowOffset = "7";
|
||||
tabSpacing = "2";
|
||||
maxTabWidth = "150";
|
||||
stretchToFit = "0";
|
||||
};
|
||||
new GuiControl(GM_JoinPane) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "31 62";
|
||||
extent = "558 312";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "BrowserFilterLabelProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "5 2";
|
||||
extent = "39 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "FILTER:";
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "48 2";
|
||||
extent = "104 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(GMJ_FilterText) {
|
||||
profile = "BrowserFilterTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "8 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
new GuiTextCtrl(GMJ_StatusText) {
|
||||
profile = "BrowserStatusTextProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "157 2";
|
||||
extent = "190 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Status Text...";
|
||||
};
|
||||
new GuiProgressCtrl(GMJ_ProgressBar) {
|
||||
profile = "BrowserProgressProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "354 4";
|
||||
extent = "200 14";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
new ShellFancyArrayScrollCtrl() {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 18";
|
||||
extent = "558 260";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
fixedHorizontal = "0";
|
||||
vertSpacerBitmap = "gui/shll_vertspacer";
|
||||
horzSpacerBitmap = "gui/shll_horzspacer";
|
||||
|
||||
new VirtualScrollCtrl() {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "195 16";
|
||||
extent = "363 244";
|
||||
minExtent = "8 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "0";
|
||||
hScrollBar = "alwaysOn";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 0";
|
||||
|
||||
new VirtualScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "339 220";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "769 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiServerBrowser(GMJ_Browser) {
|
||||
profile = "ShellServerBrowserProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "538 239";
|
||||
minExtent = "8 20";
|
||||
visible = "1";
|
||||
altCommand = "Canvas.pushDialog(ServerInfoDlg);";
|
||||
helpTag = "0";
|
||||
startScrollRegion = "1 0";
|
||||
headerBitmap = "gui/server_tabs";
|
||||
sortArrowBitmap = "gui/shll_sortarrow";
|
||||
barBase = "gui/shll_bar";
|
||||
glowOffset = "4";
|
||||
rowHeight = "19";
|
||||
headerFontType = "Univers Condensed";
|
||||
headerFontSize = "16";
|
||||
headerFontColor = "8 19 6 255";
|
||||
headerFontColorHL = "25 68 56 255";
|
||||
separatorColor = "192 192 192 255";
|
||||
drawSeparators = "0";
|
||||
headerSort = "1";
|
||||
allowReposition = "1";
|
||||
iconBase = "gui/shll_icon";
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(GMJ_FilterBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "38 273";
|
||||
extent = "110 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.pushDialog(ChooseFilterDlg);";
|
||||
helpTag = "0";
|
||||
text = "CHANGE FILTER";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(GMJ_RefreshListBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "140 273";
|
||||
extent = "110 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "GMJ_Browser.runQuery();";
|
||||
helpTag = "0";
|
||||
text = "REFRESH LIST";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(GMJ_RefreshServerBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "242 273";
|
||||
extent = "110 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "GMJ_Browser.refreshSelectedServer();";
|
||||
helpTag = "0";
|
||||
text = "REFRESH SERVER";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(GMJ_InfoBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "344 273";
|
||||
extent = "110 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.pushDialog(ServerInfoDlg);";
|
||||
helpTag = "0";
|
||||
text = "SERVER INFO";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(GMJ_JoinBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "446 273";
|
||||
extent = "110 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "JoinSelectedGame();";
|
||||
helpTag = "0";
|
||||
text = "JOIN GAME";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
new GuiControl(GM_HostPane) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "31 62";
|
||||
extent = "558 312";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "0 0";
|
||||
extent = "558 312";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "34 13";
|
||||
extent = "60 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Game Type:";
|
||||
};
|
||||
new ShellPopupMenu(GMH_MissionType) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "90 4";
|
||||
extent = "165 36";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "GAME TYPE";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "35 40";
|
||||
extent = "75 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Mission Name:";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "31 54";
|
||||
extent = "218 251";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "0 2";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 6";
|
||||
extent = "210 239";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTextList(GMH_MissionList) {
|
||||
profile = "ShellTextArrayProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "210 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
altCommand = "tryToStartHostedGame();";
|
||||
helpTag = "0";
|
||||
enumerate = "1";
|
||||
resizeCell = "1";
|
||||
columns = "0";
|
||||
fitParentWidth = "1";
|
||||
clipColumnText = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "relative";
|
||||
vertSizing = "bottom";
|
||||
position = "266 4";
|
||||
extent = "270 268";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 8";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Server Name:";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "84 0";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$Host::GameName";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "24";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 38";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Password:";
|
||||
};
|
||||
new ShellTextEditCtrl() {
|
||||
profile = "NewTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "84 30";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$Host::Password";
|
||||
helpTag = "0";
|
||||
historySize = "0";
|
||||
maxLength = "16";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 68";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Max Players:";
|
||||
};
|
||||
new ShellTextEditCtrl(GMH_MaxPlayersTE) {
|
||||
profile = "NewTextEditNumericProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "84 60";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
variable = "$Host::MaxPlayers";
|
||||
helpTag = "0";
|
||||
validate = "validateMaxPlayers();";
|
||||
historySize = "0";
|
||||
maxLength = "3";
|
||||
password = "0";
|
||||
glowOffset = "9 9";
|
||||
};
|
||||
new ShellBitmapButton(GMH_AdvancedBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "84 96";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.pushDialog(AdvancedHostDlg);";
|
||||
helpTag = "0";
|
||||
text = "ADVANCED OPTIONS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellToggleButton(GMH_BotsEnabledTgl) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "88 132";
|
||||
extent = "167 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
variable = "$Host::BotsEnabled";
|
||||
helpTag = "0";
|
||||
text = "ENABLE BOTS";
|
||||
};
|
||||
new GuiControl(GMH_EnableBotsGroup) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "1 157";
|
||||
extent = "270 105";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "11 5";
|
||||
extent = "90 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Number of Bots:";
|
||||
};
|
||||
new GuiTextCtrl(GMH_BotCountText) {
|
||||
profile = "ShellAltTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "107 6";
|
||||
extent = "16 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "(0)";
|
||||
};
|
||||
new ShellSliderCtrl(GMH_MinCombatantSlider) {
|
||||
profile = "ShellSliderProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "79 20";
|
||||
extent = "185 24";
|
||||
minExtent = "12 24";
|
||||
visible = "1";
|
||||
variable = "value";
|
||||
altCommand = "setMinCombatants();";
|
||||
helpTag = "0";
|
||||
range = "0.000000 1.000000";
|
||||
ticks = "15";
|
||||
value = "0.333333";
|
||||
usePlusMinus = "1";
|
||||
};
|
||||
new GuiTextCtrl(GMH_BotDiffText) {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "11 45";
|
||||
extent = "90 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Bot Difficulty:";
|
||||
};
|
||||
new GuiTextCtrl(GMH_BotMinText) {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 63";
|
||||
extent = "42 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Min:";
|
||||
};
|
||||
new ShellSliderCtrl(GMH_BotMinSlider) {
|
||||
profile = "ShellSliderProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "79 60";
|
||||
extent = "185 24";
|
||||
minExtent = "12 24";
|
||||
visible = "1";
|
||||
variable = "value";
|
||||
altCommand = "updateMinBotDifficulty();";
|
||||
helpTag = "0";
|
||||
range = "0.000000 0.990000";
|
||||
ticks = "1000";
|
||||
value = "0.99";
|
||||
usePlusMinus = "1";
|
||||
};
|
||||
new GuiTextCtrl(GMH_BotMaxText) {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "31 86";
|
||||
extent = "42 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Max:";
|
||||
};
|
||||
new ShellSliderCtrl(GMH_BotMaxSlider) {
|
||||
profile = "ShellSliderProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "79 83";
|
||||
extent = "185 24";
|
||||
minExtent = "12 24";
|
||||
visible = "1";
|
||||
variable = "value";
|
||||
altCommand = "updateMaxBotDifficulty();";
|
||||
helpTag = "0";
|
||||
range = "0.000000 0.990000";
|
||||
ticks = "1000";
|
||||
value = "0.99";
|
||||
usePlusMinus = "1";
|
||||
};
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(GMH_StartGameBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "top";
|
||||
position = "350 273";
|
||||
extent = "180 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "StartHostedGame();";
|
||||
helpTag = "0";
|
||||
text = "START GAME";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiControl(GM_WarriorPane) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "31 62";
|
||||
extent = "558 312";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "9 12";
|
||||
extent = "74 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Warrior:";
|
||||
};
|
||||
new ShellPopupMenu(GMW_WarriorPopup) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "80 3";
|
||||
extent = "200 38";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Select Warrior";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "center";
|
||||
position = "290 6";
|
||||
extent = "257 300";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellBitmapButton(GMW_PlayerPageBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "94 12";
|
||||
extent = "152 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "GM_WarriorPane.gotoPlayerPage();";
|
||||
helpTag = "0";
|
||||
text = "JUMP TO PLAYER PAGE";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "18 63";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Race/Gender:";
|
||||
};
|
||||
new ShellPopupMenu(GMW_RaceGenderPopup) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "95 54";
|
||||
extent = "152 38";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Select Race/Gender";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "18 99";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Skin:";
|
||||
};
|
||||
new ShellPopupMenu(GMW_SkinPopup) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "95 90";
|
||||
extent = "152 38";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Select Skin";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "18 136";
|
||||
extent = "80 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Voice:";
|
||||
};
|
||||
new ShellPopupMenu(GMW_VoicePopup) {
|
||||
profile = "ShellPopupProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "95 127";
|
||||
extent = "152 38";
|
||||
minExtent = "49 36";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Select Voice";
|
||||
maxPopupHeight = "200";
|
||||
buttonBitmap = "gui/shll_pulldown";
|
||||
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
|
||||
selectedBarBitmap = "gui/shll_pulldownbar_act";
|
||||
noButtonStyle = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "ShellTextRightProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "114 168";
|
||||
extent = "100 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Test Voice:";
|
||||
};
|
||||
new ShellBitmapButton(GMW_VoiceTestBtn) {
|
||||
profile = "SoundTestButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "214 165";
|
||||
extent = "24 24";
|
||||
minExtent = "24 24";
|
||||
visible = "1";
|
||||
command = "GMW_VoicePopup.test();";
|
||||
helpTag = "0";
|
||||
simpleStyle = "1";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "94 206";
|
||||
extent = "152 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "GM_WarriorPane.createNewAlias();";
|
||||
helpTag = "0";
|
||||
text = "NEW ALIAS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton(GMW_DeleteWarriorBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "94 243";
|
||||
extent = "152 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "GM_WarriorPane.deleteWarrior();";
|
||||
helpTag = "0";
|
||||
text = "DELETE ALIAS";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
new ShellFieldCtrl() {
|
||||
profile = "ShellFieldProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "25 41";
|
||||
extent = "261 263";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiPlayerView(GMW_PlayerModel) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "1 1";
|
||||
extent = "259 261";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
new ShellRadioButton(GMW_LightRdo) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "0 176";
|
||||
extent = "80 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "GMW_PlayerModel.update();";
|
||||
helpTag = "0";
|
||||
text = "LIGHT";
|
||||
groupNum = "1";
|
||||
};
|
||||
new ShellRadioButton(GMW_MediumRdo) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "0 206";
|
||||
extent = "80 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "GMW_PlayerModel.update();";
|
||||
helpTag = "0";
|
||||
text = "MEDIUM";
|
||||
groupNum = "1";
|
||||
};
|
||||
new ShellRadioButton(GMW_HeavyRdo) {
|
||||
profile = "ShellRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "0 236";
|
||||
extent = "80 30";
|
||||
minExtent = "26 27";
|
||||
visible = "1";
|
||||
command = "GMW_PlayerModel.update();";
|
||||
helpTag = "0";
|
||||
text = "HEAVY";
|
||||
groupNum = "1";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiTextCtrl(GM_VersionText) {
|
||||
profile = "VersionTextProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "bottom";
|
||||
position = "396 4";
|
||||
extent = "160 20";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
helpTag = "0";
|
||||
text = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
111
base/gui/GenDialog.gui
Normal file
111
base/gui/GenDialog.gui
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(GenDialog) {
|
||||
profile = "ShellWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellDlgFrame() {
|
||||
profile = "ShellDlgProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "185 93";
|
||||
extent = "317 271";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "EDITOR";
|
||||
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "169 229";
|
||||
extent = "79 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "233 229";
|
||||
extent = "79 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "Canvas.PopDIalog(\"GenDialog\");";
|
||||
helpTag = "0";
|
||||
text = "OK";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
new ShellScrollCtrl() {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "9 53";
|
||||
extent = "298 180";
|
||||
minExtent = "24 52";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "274 172";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellFancyTextList() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "289 26";
|
||||
minExtent = "8 20";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
startScrollRegion = "0 0";
|
||||
headerBitmap = "gui/server_tabs";
|
||||
sortArrowBitmap = "gui/shll_sortarrow";
|
||||
barBase = "gui/shll_bar";
|
||||
glowOffset = "4";
|
||||
rowHeight = "17";
|
||||
headerFontColor = "8 19 6 255";
|
||||
headerFontColorHL = "25 68 56 255";
|
||||
separatorColor = "192 192 192 255";
|
||||
drawSeparators = "0";
|
||||
headerSort = "1";
|
||||
allowReposition = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "16 40";
|
||||
extent = "286 17";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "TRIBE";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
434
base/gui/GuiEditorGui.gui
Normal file
434
base/gui/GuiEditorGui.gui
Normal file
|
|
@ -0,0 +1,434 @@
|
|||
//----------------------------------------------------------------
|
||||
|
||||
new GuiControlProfile (HotPinkProfile)
|
||||
{
|
||||
opaque = true;
|
||||
fillColor = "255 128 128";
|
||||
border = true;
|
||||
borderColor = "255 128 128";
|
||||
fontType = "Arial";
|
||||
fontSize = 12;
|
||||
fontColor = "0 0 0";
|
||||
fontColorHL = "32 100 100";
|
||||
fixedExtent = true;
|
||||
justify = "center";
|
||||
};
|
||||
|
||||
new GuiControl(GuiEditorGui) {
|
||||
profile = GuiDefaultProfile;
|
||||
position = "0 0";
|
||||
extent = "800 600";
|
||||
|
||||
new GuiControl() // pink background
|
||||
{
|
||||
profile = HotPinkProfile;
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
};
|
||||
new GuiControl(GuiEditorContent)
|
||||
{
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
};
|
||||
new GuiEditCtrl(GuiEditor)
|
||||
{
|
||||
profile = "GuiTextEditProfile"; // so it's tabable
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
};
|
||||
new GuiFrameSetCtrl()
|
||||
{
|
||||
position = "640 0";
|
||||
extent = "160 600";
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
columns = "0";
|
||||
rows = "0 300";
|
||||
|
||||
new GuiScrollCtrl() // tree view
|
||||
{
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
position = "0 0";
|
||||
extent = "160 300";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
vScrollBar = "alwaysOn";
|
||||
hScrollBar = "dynamic";
|
||||
|
||||
new GuiScrollContentCtrl()
|
||||
{
|
||||
profile = "GuiScrollContentProfile";
|
||||
|
||||
new GuiTreeView (GuiEditorTreeView)
|
||||
{
|
||||
profile = "GuiTreeViewProfile";
|
||||
position = "0 0";
|
||||
horizSizing = "width";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiControl() { // inspector
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "160 300";
|
||||
|
||||
new GuiButtonCtrl () {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "4, 4";
|
||||
extent = "40 16";
|
||||
font = "12 252 Arial";
|
||||
fontHL = "12 253 Arial";
|
||||
text = "APPLY";
|
||||
command = "GuiEditorInspectApply();";
|
||||
fillColor = "249";
|
||||
borderColor = "249";
|
||||
selectBorderColor = "255";
|
||||
};
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
position = "52 4";
|
||||
extent = "30 16";
|
||||
font = "12 244 Arial";
|
||||
text = "Name:";
|
||||
};
|
||||
|
||||
new GuiTextEditCtrl (GuiEditorInspectName) {
|
||||
profile = "GuiTextEditProfile";
|
||||
position = "84 3";
|
||||
extent = "72 18";
|
||||
text = "";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
};
|
||||
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiScrollCtrlProfile";
|
||||
position = "0 24";
|
||||
extent = "160 276";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
vScrollBar = "alwaysOn";
|
||||
hScrollBar = "alwaysOff";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
extent = "140 274";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
|
||||
new GuiInspector (GuiEditorInspectFields) {
|
||||
profile = "GuiDefaultProfile";
|
||||
position = "0 0";
|
||||
extent = "140 0";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
// toolbar
|
||||
new GuiControl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "0 480";
|
||||
extent = "640 120";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "4 24";
|
||||
extent = "70 16";
|
||||
text = "Align Left";
|
||||
command = "GuiEditor.Justify(0);";
|
||||
};
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "80 24";
|
||||
extent = "70 16";
|
||||
text = "Align Right";
|
||||
command = "GuiEditor.Justify(2);";
|
||||
};
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "156 24";
|
||||
extent = "70 16";
|
||||
text = "Center Horiz";
|
||||
command = "GuiEditor.Justify(1);";
|
||||
};
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "232 24";
|
||||
extent = "70 16";
|
||||
text = "Align Top";
|
||||
command = "GuiEditor.Justify(3);";
|
||||
};
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "308 24";
|
||||
extent = "70 16";
|
||||
text = "Align Bottom";
|
||||
command = "GuiEditor.Justify(4);";
|
||||
};
|
||||
new GuiControlListPopup(GuiEditorClassPopup)
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
position = "382 24";
|
||||
extent = "180 16";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(GuiEditorContentList)
|
||||
{
|
||||
profile = "GuiButtonProfile";
|
||||
position = "382 44";
|
||||
extent = "180 16";
|
||||
};
|
||||
new GuiButtonCtrl () {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "570 24";
|
||||
extent = "60 16";
|
||||
text = "New...";
|
||||
command = "GuiEditorStartCreate();";
|
||||
};
|
||||
new GuiButtonCtrl () {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "570 44";
|
||||
extent = "60 16";
|
||||
text = "Save";
|
||||
command = "GuiEditorSaveGui();";
|
||||
};
|
||||
new GuiButtonCtrl ("GuiEditorButtonToggle") {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "4 44";
|
||||
extent = "70 16";
|
||||
text = "Stop Edit";
|
||||
command = "GuiEdit();";
|
||||
};
|
||||
|
||||
new GuiButtonCtrl () {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "80 44";
|
||||
extent = "70 16";
|
||||
text = "Space Vert";
|
||||
command = "GuiEditor.Justify(5);";
|
||||
};
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "156 44";
|
||||
extent = "70 16";
|
||||
text = "Space Horiz";
|
||||
command = "GuiEditor.Justify(6);";
|
||||
};
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "232 44";
|
||||
extent = "70 16";
|
||||
text = "Bring Front";
|
||||
command = "GuiEditor.BringToFront();";
|
||||
};
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "308 44";
|
||||
extent = "70 16";
|
||||
text = "Send Back";
|
||||
command = "GuiEditor.PushToBack();";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
new GuiControl(NewGuiDialog)
|
||||
{
|
||||
profile = "GuiDialogProfile";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
|
||||
new GuiWindowCtrl()
|
||||
{
|
||||
profile = "GuiWindowProfile";
|
||||
position = "220 146";
|
||||
extent = "200 188";
|
||||
text = "Create new GUI";
|
||||
canMove = "false";
|
||||
canClose = "false";
|
||||
canMinimize = "false";
|
||||
canMaximize = "false";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
|
||||
new GuiTextCtrl()
|
||||
{
|
||||
profile = "GuiTextProfile";
|
||||
position = "20 28";
|
||||
text = "GUI Name:";
|
||||
};
|
||||
new GuiTextEditCtrl(NewGuiDialogName)
|
||||
{
|
||||
profile = "GuiTextEditProfile";
|
||||
position = "20 44";
|
||||
extent = "160 20";
|
||||
};
|
||||
new GuiTextCtrl()
|
||||
{
|
||||
profile = "GuiTextProfile";
|
||||
position = "20 68";
|
||||
text = "Class:";
|
||||
};
|
||||
new GuiControlListPopup(NewGuiDialogClass)
|
||||
{
|
||||
profile = "GuiTextEditProfile";
|
||||
position = "20 84";
|
||||
extent = "160 20";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "56 156";
|
||||
extent = "40 16";
|
||||
text = "Create";
|
||||
command = "GuiEditorCreate();";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
position = "104 156";
|
||||
extent = "40 16";
|
||||
text = "Cancel";
|
||||
command = "Canvas.popDialog(NewGuiDialog);";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
function GuiEditorStartCreate()
|
||||
{
|
||||
NewGuiDialogClass.setText("GuiControl");
|
||||
NewGuiDialogClass.sort();
|
||||
NewGuiDialogName.setValue("NewGui");
|
||||
Canvas.pushDialog(NewGuiDialog);
|
||||
}
|
||||
|
||||
function GuiEditorCreate()
|
||||
{
|
||||
%name = NewGuiDialogName.getValue();
|
||||
%class = NewGuiDialogClass.getText();
|
||||
Canvas.popDialog(NewGuiDialog);
|
||||
%obj = eval("return new " @ %class @ "(" @ %name @ ");");
|
||||
GuiEditorOpen(%obj);
|
||||
}
|
||||
|
||||
function GuiEditorSaveGui()
|
||||
{
|
||||
%obj = GuiEditorContent.getObject(0);
|
||||
if(%obj == -1 || %obj.getName() $= "")
|
||||
return;
|
||||
%obj.save("gui/" @ %obj.getName() @ ".gui");
|
||||
}
|
||||
|
||||
function GuiEdit(%val)
|
||||
{
|
||||
if(%val != 0)
|
||||
return;
|
||||
|
||||
%content = Canvas.getContent();
|
||||
|
||||
if(%content == GuiEditorGui.getId())
|
||||
{
|
||||
//GlobalActionMap.bind(mouse, button1, mouselook);
|
||||
|
||||
%obj = GuiEditorContent.getObject(0);
|
||||
if(%obj != -1)
|
||||
{
|
||||
GuiGroup.add(%obj);
|
||||
Canvas.setContent(%obj);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//GlobalActionMap.unbind(mouse, button1);
|
||||
GuiEditorOpen(%content);
|
||||
}
|
||||
}
|
||||
|
||||
function GuiEditorOpen(%content)
|
||||
{
|
||||
Canvas.setContent(GuiEditorGui);
|
||||
while((%obj = GuiEditorContent.getObject(0)) != -1)
|
||||
GuiGroup.add(%obj); // get rid of anything being edited
|
||||
|
||||
%i = 0;
|
||||
GuiEditorContentList.clear();
|
||||
while((%obj = GuiGroup.getObject(%i)) != -1)
|
||||
{
|
||||
if(%obj.getName() !$= Canvas)
|
||||
{
|
||||
if(%obj.getName() $= "")
|
||||
%name = "(unnamed) - " @ %obj;
|
||||
else
|
||||
%name = %obj.getName() @ " - " @ %obj;
|
||||
|
||||
GuiEditorContentList.add(%name, %obj);
|
||||
}
|
||||
%i++;
|
||||
}
|
||||
GuiEditorContent.add(%content);
|
||||
GuiEditorContentList.sort();
|
||||
GuiEditorClassPopup.sort();
|
||||
|
||||
if(%content.getName() $= "")
|
||||
%name = "(unnamed) - " @ %content;
|
||||
else
|
||||
%name = %content.getName() @ " - " @ %content;
|
||||
|
||||
GuiEditorContentList.setText(%name);
|
||||
GuiEditorClassPopup.setText("New Control");
|
||||
GuiEditor.setRoot(%content);
|
||||
%content.resize(0,0,640,480);
|
||||
GuiEditorTreeView.open(%content);
|
||||
}
|
||||
|
||||
function GuiEditorContentList::onSelect(%this, %id)
|
||||
{
|
||||
GuiEditorOpen(%id);
|
||||
}
|
||||
|
||||
function GuiEditorClassPopup::onSelect(%this, %id)
|
||||
{
|
||||
%class = %this.getText();
|
||||
%obj = eval("return new " @ %class @ "();");
|
||||
GuiEditor.addNewCtrl(%obj);
|
||||
GuiEditorClassPopup.setText("New Control");
|
||||
}
|
||||
|
||||
function GuiEditorTreeView::onSelect(%this, %obj)
|
||||
{
|
||||
GuiEditorInspectFields.inspect(%obj);
|
||||
GuiEditorInspectName.setValue(%obj.getName());
|
||||
GuiEditor.select(%obj);
|
||||
}
|
||||
|
||||
function GuiEditorInspectApply()
|
||||
{
|
||||
GuiEditorInspectFields.apply(GuiEditorInspectName.getValue());
|
||||
}
|
||||
|
||||
function GuiEditor::onSelect(%this, %ctrl)
|
||||
{
|
||||
GuiEditorInspectFields.inspect(%ctrl);
|
||||
GuiEditorInspectName.setValue(%ctrl.getName());
|
||||
}
|
||||
|
||||
GlobalActionMap.bind(keyboard, "alt f1", GuiEdit);
|
||||
496
base/gui/GuiTestGui.gui
Normal file
496
base/gui/GuiTestGui.gui
Normal file
|
|
@ -0,0 +1,496 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(GuiTestGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 440";
|
||||
extent = "100 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "canvas.setContent(TestGui);";
|
||||
helpTag = "0";
|
||||
text = "BACK";
|
||||
};
|
||||
new GuiWindowCtrl() {
|
||||
profile = "GuiWindowProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "10 7";
|
||||
extent = "622 430";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "GuiWindowCtrl test";
|
||||
resizeWidth = "1";
|
||||
resizeHeight = "1";
|
||||
canMove = "1";
|
||||
canClose = "1";
|
||||
canMinimize = "1";
|
||||
canMaximize = "1";
|
||||
minSize = "50 50";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
profile = "GuiTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 40";
|
||||
extent = "74 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "GuiTextCtrl test";
|
||||
};
|
||||
new GuiTextEditCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 80";
|
||||
extent = "200 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "GuiTextEditCtrl test";
|
||||
historySize = "5";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 120";
|
||||
extent = "120 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "GuiButtonCtrl test";
|
||||
};
|
||||
new GuiRadioCtrl() {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "230 160";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "$TestRadio = 1;";
|
||||
helpTag = "0";
|
||||
text = "GuiRadioCtrl1 test";
|
||||
groupNum = "1";
|
||||
};
|
||||
new GuiRadioCtrl() {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "230 190";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "$TestRadio = 2;";
|
||||
helpTag = "0";
|
||||
text = "GuiRadioCtrl2 test";
|
||||
groupNum = "1";
|
||||
};
|
||||
new GuiRadioCtrl() {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "230 220";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
command = "$TestRadio = 3;";
|
||||
helpTag = "0";
|
||||
text = "GuiRadioCtrl3 test";
|
||||
groupNum = "1";
|
||||
};
|
||||
new GuiCheckBoxCtrl() {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "230 270";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "CheckBoxCtrl1 test";
|
||||
};
|
||||
new GuiCheckBoxCtrl() {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "230 300";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "CheckBoxCtrl2 test";
|
||||
};
|
||||
new GuiCheckBoxCtrl() {
|
||||
profile = "GuiRadioProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "230 330";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "CheckBoxCtrl3 test";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(Menu1) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "230 35";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Menu1";
|
||||
maxPopupHeight = "200";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(Menu2) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "360 35";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Menu2";
|
||||
maxPopupHeight = "200";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(Menu3) {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "230 375";
|
||||
extent = "125 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "Menu3";
|
||||
maxPopupHeight = "200";
|
||||
};
|
||||
new GuiTextEditSliderCtrl() {
|
||||
profile = "GuiTextEditProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "166 133";
|
||||
extent = "104 18";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "1";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
text = "50";
|
||||
historySize = "0";
|
||||
maxLength = "255";
|
||||
format = "%3.2f";
|
||||
range = "0 100";
|
||||
increment = "1";
|
||||
};
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "20 160";
|
||||
extent = "200 200";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOn";
|
||||
vScrollBar = "alwaysOn";
|
||||
constantThumbHeight = "0";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "180 180";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiArrayCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "400 400";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "371 252";
|
||||
extent = "238 170";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "dynamic";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "236 168";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextEditCtrl() {
|
||||
profile = "GuiBigTextProfileWhite";
|
||||
horizSizing = "width";
|
||||
vertSizing = "top";
|
||||
position = "0 0";
|
||||
extent = "208 23";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
new GuiScrollCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "376 61";
|
||||
extent = "239 188";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "237 186";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMessageVectorCtrl(GMVControl) {
|
||||
profile = "GuiBigTextProfileWhite";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "215 35";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "0";
|
||||
lineContinuedIndex = "5";
|
||||
allowedMatches[0] = "http";
|
||||
allowedMatches[1] = "t2server";
|
||||
matchColor = "0 0 1 1";
|
||||
textColors1 = "1 0 0 1";
|
||||
textColors5 = "1 0 1 1";
|
||||
textColors9 = "0 0.5 0 1";
|
||||
textColors2 = "0 1 0 1";
|
||||
textColors6 = "0 1 1 1";
|
||||
textColors3 = "0 0 1 1";
|
||||
textColors7 = "1 1 1 1";
|
||||
textColors0 = "0 0 0 1";
|
||||
textColors4 = "1 1 0 1";
|
||||
textColors8 = "0.5 0 0 1";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
Menu1.add(TestData0, 0);
|
||||
Menu1.add(TestData1, 1);
|
||||
Menu1.add(TestData2, 2);
|
||||
Menu1.add(TestData3, 3);
|
||||
Menu1.add(TestData4, 4);
|
||||
Menu1.add(TestData5, 5);
|
||||
Menu1.add(TestData6, 6);
|
||||
Menu1.add(TestData7, 7);
|
||||
Menu1.add(TestData8, 8);
|
||||
Menu1.add(TestData9, 9);
|
||||
Menu1.add(TestData10,10);
|
||||
Menu1.add(TestData11,11);
|
||||
Menu1.add(TestData12,12);
|
||||
Menu1.add(TestData13,13);
|
||||
Menu1.add(TestData14,14);
|
||||
Menu1.add(TestData15,15);
|
||||
Menu1.add(TestData16,16);
|
||||
Menu1.add(TestData17,17);
|
||||
Menu1.add(TestData18,18);
|
||||
Menu1.add(TestData19,19);
|
||||
Menu1.add(TestData20,20);
|
||||
Menu1.add(TestData21,21);
|
||||
Menu1.add(TestData22,22);
|
||||
Menu1.add(TestData23,23);
|
||||
Menu1.add(TestData24,24);
|
||||
Menu1.add(TestData25,25);
|
||||
Menu1.add(TestData26,26);
|
||||
Menu1.add(TestData27,27);
|
||||
Menu1.add(TestData28,28);
|
||||
Menu1.add(TestData29,29);
|
||||
Menu1.add(TestData30,30);
|
||||
Menu1.add(TestData31,31);
|
||||
Menu1.add(TestData32,32);
|
||||
Menu1.add(TestData33,33);
|
||||
Menu1.add(TestData34,34);
|
||||
Menu1.add(TestData35,35);
|
||||
Menu1.add(TestData36,36);
|
||||
Menu1.add(TestData37,37);
|
||||
Menu1.add(TestData38,38);
|
||||
Menu1.add(TestData39,39);
|
||||
Menu1.add(TestData40,40);
|
||||
Menu1.add(TestData41,41);
|
||||
Menu1.add(TestData42,42);
|
||||
Menu1.add(TestData43,43);
|
||||
Menu1.add(TestData44,44);
|
||||
Menu1.add(TestData45,45);
|
||||
|
||||
Menu2.add(TestData1, 0);
|
||||
Menu2.add(TestData2, 1);
|
||||
Menu2.add(TestData3, 2);
|
||||
Menu2.add(TestData4, 3);
|
||||
Menu2.add(TestData5, 4);
|
||||
Menu2.add(TestData6, 5);
|
||||
Menu2.add(TestData7, 6);
|
||||
|
||||
Menu3.add(TestData0, 0);
|
||||
Menu3.add(TestData1, 1);
|
||||
Menu3.add(TestData2, 2);
|
||||
Menu3.add(TestData3, 3);
|
||||
Menu3.add(TestData4, 4);
|
||||
Menu3.add(TestData5, 5);
|
||||
Menu3.add(TestData6, 6);
|
||||
Menu3.add(TestData7, 7);
|
||||
Menu3.add(TestData8, 8);
|
||||
Menu3.add(TestData9, 9);
|
||||
Menu3.add(TestData10,10);
|
||||
Menu3.add(TestData11,11);
|
||||
Menu3.add(TestData12,12);
|
||||
Menu3.add(TestData13,13);
|
||||
Menu3.add(TestData14,14);
|
||||
Menu3.add(TestData15,15);
|
||||
Menu3.add(TestData16,16);
|
||||
Menu3.add(TestData17,17);
|
||||
Menu3.add(TestData18,18);
|
||||
Menu3.add(TestData19,19);
|
||||
Menu3.add(TestData20,20);
|
||||
Menu3.add(TestData21,21);
|
||||
Menu3.add(TestData22,22);
|
||||
Menu3.add(TestData23,23);
|
||||
Menu3.add(TestData24,24);
|
||||
Menu3.add(TestData25,25);
|
||||
Menu3.add(TestData26,26);
|
||||
Menu3.add(TestData27,27);
|
||||
Menu3.add(TestData28,28);
|
||||
Menu3.add(TestData29,29);
|
||||
Menu3.add(TestData30,30);
|
||||
Menu3.add(TestData31,31);
|
||||
Menu3.add(TestData32,32);
|
||||
Menu3.add(TestData33,33);
|
||||
Menu3.add(TestData34,34);
|
||||
Menu3.add(TestData35,35);
|
||||
Menu3.add(TestData36,36);
|
||||
Menu3.add(TestData37,37);
|
||||
Menu3.add(TestData38,38);
|
||||
Menu3.add(TestData39,39);
|
||||
Menu3.add(TestData40,40);
|
||||
Menu3.add(TestData41,41);
|
||||
Menu3.add(TestData42,42);
|
||||
Menu3.add(TestData43,43);
|
||||
Menu3.add(TestData44,44);
|
||||
Menu3.add(TestData45,45);
|
||||
|
||||
$mvid1 = new MessageVector();
|
||||
$mvid1.pushBackLine("a URL: http://www.test.com/other not part of the url", 0);
|
||||
$mvid1.pushBackLine("a server: t2server://5assedmonkey.com:8080/", 0);
|
||||
$mvid1.pushBackLine("a server: http://t2server://malformed/", 0);
|
||||
$mvid1.pushBackLine("a http://small server", 0);
|
||||
|
||||
$mvid2 = new MessageVector();
|
||||
$mvid2.pushBackLine("<Symlink> This is a completely separate text vector", 0);
|
||||
$mvid2.pushBackLine("It contains no URLS, only two servers, t2server://5assedmonkey.com:28000/ and t2server://5assedmonkey.com:28001/", 0);
|
||||
$mvid2.pushBackLine("It does contain a malformed URL: http://t2server://malformed/", 0);
|
||||
$mvid2.pushBackLine("That URL should show up in http blue. The tribes server url should be in tribes server red.", 0);
|
||||
|
||||
function GMVControl::urlClickCallback(%this, %url)
|
||||
{
|
||||
echo("Overridden click callback");
|
||||
Parent::urlClickCallback(%this, %url);
|
||||
}
|
||||
367
base/gui/HUDDlgs.gui
Normal file
367
base/gui/HUDDlgs.gui
Normal file
|
|
@ -0,0 +1,367 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(InventoryScreen) {
|
||||
profile = "GuiDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "45 12";
|
||||
extent = "550 443";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "INVENTORY";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "top";
|
||||
position = "205 388";
|
||||
extent = "140 38";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
setFirstResponder = "0";
|
||||
modal = "1";
|
||||
helpTag = "0";
|
||||
command = "InventoryScreen.onDone();";
|
||||
text = "DONE";
|
||||
};
|
||||
new ShellFieldCtrl(INV_Root) {
|
||||
profile = "GuiChatBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "29 36";
|
||||
extent = "492 351";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTabFrame() {
|
||||
profile = "ShellTabFrameProfile";
|
||||
horizSizing = "left";
|
||||
vertSizing = "height";
|
||||
position = "207 9";
|
||||
extent = "254 333";
|
||||
minExtent = "254 26";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
isVertical = "1";
|
||||
useCloseButton = "0";
|
||||
edgeInset = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(vehicleHud) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl() {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "53 67";
|
||||
extent = "542 328";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "VEHICLE STATION";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellFieldCtrl(VIN_Root) {
|
||||
profile = "GuiChatBackProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "29 36";
|
||||
extent = "484 236";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellTabFrame() {
|
||||
profile = "ShellTabFrameProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "206 9";
|
||||
extent = "254 217";
|
||||
minExtent = "254 26";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
isVertical = "1";
|
||||
useCloseButton = "0";
|
||||
edgeInset = "0";
|
||||
};
|
||||
new HudBitmapCtrl(VIN_Picture) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "215 19";
|
||||
extent = "256 158";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
fillColor = "0.250000 0.250000 0.250000 1.000000";
|
||||
frameColor = "0.000000 1.000000 0.000000 1.000000";
|
||||
opacity = "1";
|
||||
autoCenter = "0";
|
||||
autoResize = "1";
|
||||
flipVertical = "0";
|
||||
flipHorizontal = "0";
|
||||
};
|
||||
new ShellFieldCtrl() {
|
||||
profile = "GuiChatBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "220 183";
|
||||
extent = "133 29";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(VIN_RemainingText) {
|
||||
profile = "ShellMediumTextCenterProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "8 5";
|
||||
extent = "117 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "3 Remaining";
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton(VIN_BuyBtn) {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "356 180";
|
||||
extent = "124 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "VehicleHud.onBuy();";
|
||||
helpTag = "0";
|
||||
text = "BUY";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
new ShellBitmapButton() {
|
||||
profile = "ShellButtonProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "top";
|
||||
position = "201 273";
|
||||
extent = "140 38";
|
||||
minExtent = "32 38";
|
||||
visible = "1";
|
||||
command = "VehicleHud.onCancel();";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
simpleStyle = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ScoreScreen) {
|
||||
profile = "GuiDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new ShellPaneCtrl(ScoreParent) {
|
||||
profile = "ShellPaneProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "48 92";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "SCORE";
|
||||
noTitleBar = "0";
|
||||
|
||||
new ShellFieldCtrl(ScoreHeaderField) {
|
||||
profile = "GuiChatBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "23 32";
|
||||
extent = "594 36";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(ScoreHeaderText) {
|
||||
profile = "ScoreHeaderTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "586 28";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
};
|
||||
};
|
||||
new ShellFieldCtrl(ScoreField) {
|
||||
profile = "GuiChatBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "23 72";
|
||||
extent = "594 386";
|
||||
minExtent = "16 18";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiMLTextCtrl(ScoreSubheaderText) {
|
||||
profile = "ScoreSubheaderTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "4 4";
|
||||
extent = "586 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
};
|
||||
new ShellScrollCtrl(ScoreScroll) {
|
||||
profile = "NewScrollCtrlProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "height";
|
||||
position = "1 26";
|
||||
extent = "592 358";
|
||||
minExtent = "24 24";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
defaultLineHeight = "15";
|
||||
childMargin = "3 3";
|
||||
fieldBase = "gui/shll_field";
|
||||
|
||||
new GuiScrollContentCtrl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 7";
|
||||
extent = "578 344";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl(ScoreContent) {
|
||||
profile = "GuiScrollContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "586 8";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(MessageHud)
|
||||
{
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
|
||||
new ShellFieldCtrl(MessageHud_Frame)
|
||||
{
|
||||
profile = "GuiChatBackProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "120 375";
|
||||
extent = "400 24";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
|
||||
new GuiTextCtrl(MessageHud_Text)
|
||||
{
|
||||
profile = "GuiMessageEditHudTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "6 5";
|
||||
extent = "10 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
};
|
||||
|
||||
new GuiTextEditCtrl(MessageHud_Edit)
|
||||
{
|
||||
profile = "GuiMessageEditHudProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 5";
|
||||
extent = "10 22";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
altCommand = "$ThisControl.eval();";
|
||||
escapeCommand = "MessageHud_Edit.onEscape();";
|
||||
historySize = "5";
|
||||
maxLength = "120";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(ChatMenuHudDlg)
|
||||
{
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
|
||||
new ShellFieldCtrl(ChatMenuHud)
|
||||
{
|
||||
profile = "GuiVMenuProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "8 209";
|
||||
extent = "143 0";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue