added everything
BIN
example/tutorial.base/client/ui/PlayGui.gui.dso
Executable file
BIN
example/tutorial.base/client/ui/background.png
Executable file
After Width: | Height: | Size: 20 KiB |
BIN
example/tutorial.base/client/ui/buttons/console_h.png
Executable file
After Width: | Height: | Size: 2.5 KiB |
BIN
example/tutorial.base/client/ui/buttons/console_n.png
Executable file
After Width: | Height: | Size: 2.0 KiB |
BIN
example/tutorial.base/client/ui/buttons/exit_h.png
Executable file
After Width: | Height: | Size: 2.8 KiB |
BIN
example/tutorial.base/client/ui/buttons/exit_n.png
Executable file
After Width: | Height: | Size: 2.2 KiB |
BIN
example/tutorial.base/client/ui/buttons/forum_h.png
Executable file
After Width: | Height: | Size: 3.2 KiB |
BIN
example/tutorial.base/client/ui/buttons/forum_n.png
Executable file
After Width: | Height: | Size: 2.1 KiB |
BIN
example/tutorial.base/client/ui/buttons/gui_h.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
example/tutorial.base/client/ui/buttons/gui_n.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
BIN
example/tutorial.base/client/ui/buttons/help_h.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
BIN
example/tutorial.base/client/ui/buttons/help_n.png
Executable file
After Width: | Height: | Size: 1.1 KiB |
BIN
example/tutorial.base/client/ui/buttons/map_h.png
Executable file
After Width: | Height: | Size: 3.9 KiB |
BIN
example/tutorial.base/client/ui/buttons/map_n.png
Executable file
After Width: | Height: | Size: 3.0 KiB |
BIN
example/tutorial.base/client/ui/buttons/news_h.png
Executable file
After Width: | Height: | Size: 2.7 KiB |
BIN
example/tutorial.base/client/ui/buttons/news_n.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
example/tutorial.base/client/ui/buttons/options_h.png
Executable file
After Width: | Height: | Size: 2.7 KiB |
BIN
example/tutorial.base/client/ui/buttons/options_n.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
example/tutorial.base/client/ui/buttons/tdn_h.png
Executable file
After Width: | Height: | Size: 2.9 KiB |
BIN
example/tutorial.base/client/ui/buttons/tdn_n.png
Executable file
After Width: | Height: | Size: 2.6 KiB |
BIN
example/tutorial.base/client/ui/buttons/tutorial_h.png
Executable file
After Width: | Height: | Size: 1.8 KiB |
BIN
example/tutorial.base/client/ui/buttons/tutorial_n.png
Executable file
After Width: | Height: | Size: 1.4 KiB |
BIN
example/tutorial.base/client/ui/gameonebg.jpg
Executable file
After Width: | Height: | Size: 68 KiB |
BIN
example/tutorial.base/client/ui/gray_bar.png
Executable file
After Width: | Height: | Size: 1.6 KiB |
96
example/tutorial.base/client/ui/loadingGui.gui
Executable file
@ -0,0 +1,96 @@
|
||||
new GuiControlProfile ("LoadingGuiContentProfile")
|
||||
{
|
||||
opaque = true;
|
||||
fillColor = "200 200 200";
|
||||
border = true;
|
||||
borderColor = "0 0 0";
|
||||
};
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiChunkedBitmapCtrl(LoadingGui) {
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
bitmap = "./background.jpg";
|
||||
useVariable = "0";
|
||||
tile = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "LoadingGuiContentProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "center";
|
||||
position = "30 110";
|
||||
extent = "455 308";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(LOAD_MapName) {
|
||||
profile = "GuiMediumTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 6";
|
||||
extent = "100 28";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "Map Name";
|
||||
maxLength = "255";
|
||||
};
|
||||
new GuiMLTextCtrl(LOAD_MapDescription) {
|
||||
profile = "GuiMLTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "7 62";
|
||||
extent = "303 16";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "-1";
|
||||
};
|
||||
new GuiProgressCtrl(LoadingProgress) {
|
||||
profile = "GuiProgressProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "128 262";
|
||||
extent = "262 25";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl(LoadingProgressTxt) {
|
||||
profile = "GuiProgressTextProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "-4 3";
|
||||
extent = "262 20";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
text = "LOADING MISSION";
|
||||
maxLength = "255";
|
||||
};
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
profile = "GuiButtonProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "top";
|
||||
position = "58 262";
|
||||
extent = "65 25";
|
||||
minExtent = "20 20";
|
||||
visible = "1";
|
||||
command = "disconnect();";
|
||||
accelerator = "escape";
|
||||
helpTag = "0";
|
||||
text = "CANCEL";
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
BIN
example/tutorial.base/client/ui/loadingGui.gui.dso
Executable file
312
example/tutorial.base/client/ui/mainMenuGui.gui
Executable file
@ -0,0 +1,312 @@
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiChunkedBitmapCtrl(MainMenuGui) {
|
||||
Profile = "GuiContentProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "height";
|
||||
position = "0 0";
|
||||
Extent = "640 480";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
bitmap = "./background";
|
||||
useVariable = "0";
|
||||
tile = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiChunkedBitmapCtrl() {
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "center";
|
||||
VertSizing = "bottom";
|
||||
position = "42 0";
|
||||
Extent = "555 55";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
bitmap = "./gray_bar";
|
||||
useVariable = "0";
|
||||
tile = "0";
|
||||
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "left";
|
||||
VertSizing = "top";
|
||||
position = "516 5";
|
||||
Extent = "31 43";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "quit();";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "Close down the engine";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/exit";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "top";
|
||||
position = "314 6";
|
||||
Extent = "40 43";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "gotoWebpage(\"http://www.garagegames.com/mg/forums/result.area.php?qa=10\");";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "Talk to fellow Torque developers on the private Torque owner\'s forum";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/forum";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "left";
|
||||
VertSizing = "top";
|
||||
position = "465 6";
|
||||
Extent = "41 42";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "Canvas.pushDialog(optionsDlg);";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "Adjust basic video, sound and other options";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/options";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "top";
|
||||
position = "9 10";
|
||||
Extent = "54 38";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "GuiEdit();";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "Open the GUI Editor, which helps you create graphical user interfaces for your games";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/gui";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "top";
|
||||
position = "68 3";
|
||||
Extent = "73 45";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "toggleEditor(1);";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "Open the World Editor, which provides tools for creating and editing your game worlds";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/map";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "top";
|
||||
position = "226 4";
|
||||
Extent = "32 44";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "gotoWebpage(\"http://www.garagegames.com/index.php?sec=mg&mod=resource&page=result&qrt=News&qrf=tska&qsf=posted&qsd=desc\");";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "Get the latest Torque news";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/news";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "top";
|
||||
position = "274 17";
|
||||
Extent = "26 31";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "gotoWebpage(\"http://www.garagegames.com/developer/torque/tge/\");";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "See the Torque Tutorials homepage and learn more about how to use the engine";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/help";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "top";
|
||||
position = "359 8";
|
||||
Extent = "35 42";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "gotoWebpage(\"http://tdn.garagegames.com/\");";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "Go to the Torque Developer Network, a community-oriented site for Torque documentation";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/tdn";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "top";
|
||||
position = "143 7";
|
||||
Extent = "41 43";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "ToggleConsole(1);";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "View the scripting Console, which allows you to enter TorqueScript commands on the fly";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/console";
|
||||
};
|
||||
new GuiBitmapButtonCtrl() {
|
||||
Profile = "GuiBorderButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "top";
|
||||
position = "398 7";
|
||||
Extent = "46 42";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
Command = "MessageBoxOK(\"Tutorial\", \"Note: In order to get to the tutorial right now, you need to go to your SDK install directory, then open the example folder and double-click 'GettingStarted.pdf'.\");";
|
||||
tooltipprofile = "GuiToolTipProfile";
|
||||
tooltip = "Read the Basic Getting Started Tutorial and learn the first steps of using some of Torque\'s tools";
|
||||
text = "Button";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "./buttons/tutorial";
|
||||
};
|
||||
};
|
||||
new GuiMLTextCtrl(RSSFeedMLText) {
|
||||
Profile = "GuiMLTextProfile";
|
||||
HorizSizing = "width";
|
||||
VertSizing = "top";
|
||||
position = "4 390";
|
||||
Extent = "326 94";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "-1";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
||||
// RSS ticker configuration:
|
||||
$RSSFeed::serverName = "feeds.feedburner.com";
|
||||
$RSSFeed::serverPort = 80;
|
||||
$RSSFeed::serverURL = "/garagegames/rss/product/tge/oobe";
|
||||
$RSSFeed::userAgent = "Torque/1.5";
|
||||
|
||||
function RSSFeedObject::onConnected(%this)
|
||||
{
|
||||
echo("RSS Feed");
|
||||
echo(" - Requesting RSS data at URL: " @ $RSSFeed::serverURL );
|
||||
|
||||
// Reset some useful state information.
|
||||
$RSSFeed::lineCount = 0;
|
||||
$RSSFeed::requestResults = "";
|
||||
|
||||
// Request our RSS.
|
||||
%this.send("GET " @ $RSSFeed::serverURL @ " HTTP/1.0\nHost: " @ $RSSFeed::serverName @ "\nUser-Agent: " @ $RSSFeed::userAgent @ "\n\r\n\r\n");
|
||||
}
|
||||
|
||||
function RSSFeedObject::onLine(%this, %line)
|
||||
{
|
||||
// Collate info.
|
||||
$RSSFeed::lineCount++;
|
||||
$RSSFeed::requestResults = $RSSFeed::requestResults @ %line;
|
||||
}
|
||||
|
||||
function RSSFeedObject::getTagContents(%this, %string, %tag, %startChar)
|
||||
{
|
||||
// This function occasionally makes Torque hard crash. It doesn't
|
||||
// seem to do it anymore but be careful!
|
||||
|
||||
// Ok, get thing between <%tag> and </%tag> after char #
|
||||
// %startChar in the passed string.
|
||||
|
||||
%startTag = "<" @ %tag @ ">";
|
||||
%endTag = "</" @ %tag @ ">";
|
||||
|
||||
%startTagOffset = strpos(%string, %startTag, %startChar);
|
||||
|
||||
// Compensate for presence of start tag.
|
||||
%startOffset = %startTagOffset + strlen(%startTag);
|
||||
|
||||
// Ok, now look for end tag.
|
||||
%endTagOffset = strpos(%string, %endTag, %startOffset - 1);
|
||||
|
||||
// If we didn't find it, bail.
|
||||
if(%endTagOffset < 0)
|
||||
return "";
|
||||
|
||||
// Evil hack - store last found item in a global.
|
||||
%this.lastOffset = %endTagOffset;
|
||||
|
||||
// And get & return the substring between the tags.
|
||||
%result = getSubStr(%string, %startOffset, %endTagOffset - %startOffset);
|
||||
|
||||
// Do a little mojo to deal with " and some other htmlentities.
|
||||
%result = strreplace(%result, """, "\"");
|
||||
%result = strreplace(%result, "&", "&");
|
||||
|
||||
return %result;
|
||||
}
|
||||
|
||||
function RSSFeedObject::onDisconnect(%this)
|
||||
{
|
||||
// Ok, we have a full buffer now, hopefully. Let's process it.
|
||||
echo(" - Got " @ $RSSFeed::lineCount @ " lines.");
|
||||
|
||||
// We want the feed title and the first three headlines + links.
|
||||
|
||||
// Feed title - get the first <title> occurence in the string.
|
||||
%title = %this.getTagContents($RSSFeed::requestResults, "title", 0);
|
||||
%titleLink = %this.getTagContents($RSSFeed::requestResults, "link", 0);
|
||||
|
||||
echo(" - Feed title: '" @ %title @ "'");
|
||||
echo(" - Feed link: '" @ %titleLink @ "'");
|
||||
|
||||
// Ok, get the first three headlines, if any...
|
||||
for(%i = 0; %i<3; %i++)
|
||||
{
|
||||
%headline[%i] = %this.getTagContents($RSSFeed::requestResults, "title", %this.lastOffset);
|
||||
%headlineLink[%i] = %this.getTagContents($RSSFeed::requestResults, "link", %this.lastOffset);
|
||||
|
||||
// Skip the content - it's not going to do anything but confuse us.
|
||||
%garbage = %this.getTagContents($RSSFeed::requestResults, "content:encoded", %this.lastOffset);
|
||||
|
||||
// And debug spam...
|
||||
echo(" - Headline #" @ %i @ " : '" @ %headline[%i] @ "'");
|
||||
echo(" - Headline Link #" @ %i @ " : '" @ %headlineLink[%i] @ "'");
|
||||
}
|
||||
|
||||
// Generate contents for our ML control.
|
||||
RSSFeedMLText.setText("<lmargin%:2><font:Arial Bold:20>" @ %title @ "<font:Arial:14>\n");
|
||||
for(%i=0; %i<3; %i++)
|
||||
RSSFeedMLText.addText("<a:" @ getSubstr(%headlineLink[%i], 7, 1000) @ ">" @ %headline[%i] @ "</a>\n", false);
|
||||
RSSFeedMLText.addText("<just:right><a:" @ getSubstr(%titleLink, 7, 1000) @ ">" @ "[ Read more... ]" @ "</a>", true);
|
||||
|
||||
}
|
||||
|
||||
function kickOffRSS()
|
||||
{
|
||||
new TCPObject(RSSFeedObject);
|
||||
RSSFeedObject.connect($RSSFeed::serverName @ ":" @ $RSSFeed::serverPort);
|
||||
}
|
||||
|
||||
function MainMenuGui::onWake(%this)
|
||||
{
|
||||
// Kick off an update on next tick.
|
||||
if(!$pref::RSS::disableFeedCheck)
|
||||
schedule(50, 0, kickOffRSS);
|
||||
}
|
BIN
example/tutorial.base/client/ui/mainMenuGui.gui.dso
Executable file
368
example/tutorial.base/client/ui/optionsDlg.gui
Executable file
@ -0,0 +1,368 @@
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(optionsDlg) {
|
||||
Profile = "GuiDefaultProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "0 0";
|
||||
Extent = "800 600";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiWindowCtrl() {
|
||||
Profile = "GuiWindowProfile";
|
||||
HorizSizing = "center";
|
||||
VertSizing = "center";
|
||||
position = "211 148";
|
||||
Extent = "377 303";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
text = "Options";
|
||||
maxLength = "255";
|
||||
resizeWidth = "0";
|
||||
resizeHeight = "0";
|
||||
canMove = "1";
|
||||
canClose = "1";
|
||||
canMinimize = "0";
|
||||
canMaximize = "0";
|
||||
MinSize = "50 50";
|
||||
closeCommand = "Canvas.popDialog(optionsDlg);";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiButtonCtrl() {
|
||||
Profile = "GuiButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "305 270";
|
||||
Extent = "60 23";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Command = "Canvas.popDialog(optionsDlg);";
|
||||
text = "OK";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiButtonCtrl(optGraphicsButton) {
|
||||
Profile = "GuiButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "9 28";
|
||||
Extent = "175 23";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Command = "optionsDlg.setPane(Graphics);";
|
||||
text = "Graphics";
|
||||
groupNum = "-1";
|
||||
buttonType = "RadioButton";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
Profile = "GuiButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "189 28";
|
||||
Extent = "175 23";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Command = "optionsDlg.setPane(Audio);";
|
||||
text = "Audio";
|
||||
groupNum = "-1";
|
||||
buttonType = "RadioButton";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiControl(OptGraphicsPane) {
|
||||
Profile = "GuiWindowProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "9 55";
|
||||
Extent = "357 208";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiTextCtrl() {
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "21 10";
|
||||
Extent = "70 18";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
text = "Display Driver:";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "21 34";
|
||||
Extent = "53 18";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
text = "Resolution:";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiCheckBoxCtrl(OptGraphicsFullscreenToggle) {
|
||||
Profile = "GuiCheckBoxProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "21 120";
|
||||
Extent = "137 25";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Variable = "$pref::Video::fullScreen";
|
||||
text = "Fullscreen Video";
|
||||
groupNum = "-1";
|
||||
buttonType = "ToggleButton";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiButtonCtrl() {
|
||||
Profile = "GuiButtonProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "149 171";
|
||||
Extent = "78 23";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Command = "optionsDlg.applyGraphics();";
|
||||
text = "Apply";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(OptGraphicsDriverMenu) {
|
||||
Profile = "GuiPopUpMenuProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "113 10";
|
||||
Extent = "130 23";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
maxLength = "255";
|
||||
maxPopupHeight = "200";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(OptGraphicsResolutionMenu) {
|
||||
Profile = "GuiPopUpMenuProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "113 36";
|
||||
Extent = "130 23";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
maxLength = "255";
|
||||
maxPopupHeight = "200";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "21 60";
|
||||
Extent = "46 18";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
text = "Bit Depth:";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(OptGraphicsBPPMenu) {
|
||||
Profile = "GuiPopUpMenuProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "113 62";
|
||||
Extent = "130 23";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
maxLength = "255";
|
||||
maxPopupHeight = "200";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "21 86";
|
||||
Extent = "59 18";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
text = "Screenshot:";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(OptScreenshotMenu) {
|
||||
Profile = "GuiPopUpMenuProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "113 88";
|
||||
Extent = "130 23";
|
||||
MinExtent = "8 2";
|
||||
Visible = "1";
|
||||
maxLength = "255";
|
||||
maxPopupHeight = "200";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiCheckBoxCtrl(OptRSSToggle) {
|
||||
Profile = "GuiCheckBoxProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "21 141";
|
||||
Extent = "137 25";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Variable = "$pref::RSS::disableFeedCheck";
|
||||
text = "Disable News Feed";
|
||||
tooltipprofile = "GuiTooltipProfile";
|
||||
tooltip = "Check this box to disable the live newsfeed on the main menu.";
|
||||
groupNum = "-1";
|
||||
buttonType = "ToggleButton";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
new GuiControl(OptNetworkPane) {
|
||||
Profile = "GuiWindowProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "9 55";
|
||||
Extent = "357 208";
|
||||
MinExtent = "8 8";
|
||||
Visible = "0";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiControl(OptAudioPane) {
|
||||
Profile = "GuiWindowProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "9 55";
|
||||
Extent = "357 208";
|
||||
MinExtent = "8 8";
|
||||
Visible = "0";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiSliderCtrl(OptAudioVolumeSim) {
|
||||
Profile = "GuiSliderProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "107 172";
|
||||
Extent = "240 34";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Variable = "value";
|
||||
AltCommand = "OptAudioUpdateChannelVolume($SimAudioType, OptAudioVolumeSim.value);";
|
||||
range = "0 1";
|
||||
ticks = "8";
|
||||
value = "0.8";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "11 94";
|
||||
Extent = "72 18";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
text = "Master Volume";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "22 132";
|
||||
Extent = "62 18";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
text = "Shell Volume";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "28 169";
|
||||
Extent = "56 18";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
text = "Sim Volume";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiSliderCtrl(OptAudioVolumeMaster) {
|
||||
Profile = "GuiSliderProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "106 98";
|
||||
Extent = "240 34";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Variable = "value";
|
||||
AltCommand = "OptAudioUpdateMasterVolume(OptAudioVolumeMaster.value);";
|
||||
range = "0 1";
|
||||
ticks = "8";
|
||||
value = "0.8";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiSliderCtrl(OptAudioVolumeShell) {
|
||||
Profile = "GuiSliderProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "106 135";
|
||||
Extent = "240 34";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
Variable = "value";
|
||||
AltCommand = "OptAudioUpdateChannelVolume($GuiAudioType, OptAudioVolumeShell.value);";
|
||||
range = "0 1";
|
||||
ticks = "8";
|
||||
value = "0.8";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiMLTextCtrl(OptAudioInfo) {
|
||||
Profile = "GuiMLTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "149 10";
|
||||
Extent = "190 112";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "-1";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiPopUpMenuCtrl(OptAudioDriverList) {
|
||||
Profile = "GuiPopUpMenuProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "10 32";
|
||||
Extent = "120 20";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
maxLength = "255";
|
||||
maxPopupHeight = "200";
|
||||
helpTag = "0";
|
||||
};
|
||||
new GuiTextCtrl() {
|
||||
Profile = "GuiTextProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "11 9";
|
||||
Extent = "63 18";
|
||||
MinExtent = "8 8";
|
||||
Visible = "1";
|
||||
text = "Audio Driver:";
|
||||
maxLength = "255";
|
||||
helpTag = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
BIN
example/tutorial.base/client/ui/optionsDlg.gui.dso
Executable file
16
example/tutorial.base/client/ui/playGui.gui
Executable file
@ -0,0 +1,16 @@
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GameTSCtrl(PlayGui) {
|
||||
canSaveDynamicFields = "1";
|
||||
profile = "GuiContentProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
cameraZRot = "0";
|
||||
forceFOV = "0";
|
||||
noCursor = "1";
|
||||
helpTag = "0";
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|