mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
GFX card profile config file logging moved to debug only
WIP mode of guiSliderCtrl to be a filled rectangle instead of a textured UI Fixed bug with guiTextEditCtrl losing focus updating history passing malformed strings Updated WIP options menu Editor/Project settings WIP Updated editor theme to be consistent, and feed off the editor settings Updated popup menus to reference renamed profiles Added more in-progress modules for examples/stress testing
This commit is contained in:
parent
226529fd1b
commit
f1777016b8
179 changed files with 10144 additions and 415 deletions
156
Templates/Modules/RPGDialog/gui/RPGDialog.gui
Normal file
156
Templates/Modules/RPGDialog/gui/RPGDialog.gui
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
new GuiControlProfile ("RPGDialogQuestionProfile")
|
||||
{
|
||||
fontType = "Arial Bold";
|
||||
fontSize = 16;
|
||||
fontColor = "44 172 181";
|
||||
fontColorLink = "255 96 96";
|
||||
fontColorLinkHL = "0 0 255";
|
||||
autoSizeWidth = true;
|
||||
autoSizeHeight = true;
|
||||
};
|
||||
|
||||
new GuiControlProfile ("RPGDialogAnswerProfile")
|
||||
{
|
||||
fontType = "Arial Bold";
|
||||
fontSize = 16;
|
||||
fontColor = "44 172 181";
|
||||
fontColorLink = "255 96 96";
|
||||
fontColorLinkHL = "0 0 255";
|
||||
autoSizeWidth = true;
|
||||
autoSizeHeight = true;
|
||||
};
|
||||
|
||||
new GuiControlProfile ("RPGDialogScrollProfile")
|
||||
{
|
||||
opaque = false;
|
||||
border = false;
|
||||
borderColor = "0 255 0";
|
||||
bitmap = "./demoScroll";
|
||||
hasBitmapArray = true;
|
||||
};
|
||||
|
||||
new GuiControlProfile ("RPGDialogBorderProfile")
|
||||
{
|
||||
bitmap = "./chatHudBorderArray";
|
||||
hasBitmapArray = true;
|
||||
opaque = false;
|
||||
};
|
||||
|
||||
//--- OBJECT WRITE BEGIN ---
|
||||
new GuiControl(RPGDialog) {
|
||||
profile = "GuiModelessDialogProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "640 480";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiControl() {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "center";
|
||||
vertSizing = "relative";
|
||||
position = "120 260";
|
||||
extent = "400 220";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
|
||||
new GuiBitmapBorderCtrl(RPGDialogBorder) {
|
||||
profile = "ChatHudBorderProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "0 0";
|
||||
extent = "400 220";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
useVariable = "0";
|
||||
tile = "0";
|
||||
|
||||
new GuiBitmapCtrl(RPGDialogBackground) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "8 8";
|
||||
extent = "384 212";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
bitmap = "./hudfill.png";
|
||||
wrap = "0";
|
||||
};
|
||||
new GuiScrollCtrl(RPGDialogScrollQuestion) {
|
||||
profile = "RPGDialogScrollProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "bottom";
|
||||
position = "89 8";
|
||||
extent = "303 94";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
childMargin = "0 0";
|
||||
|
||||
new GuiMLTextCtrl(RPGDialogQuestion) {
|
||||
profile = "RPGDialogQuestionProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "283 16";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
lineSpacing = "0";
|
||||
allowColorChars = "0";
|
||||
maxChars = "-1";
|
||||
};
|
||||
};
|
||||
new GuiScrollCtrl(RPGDialogScrollAnswer) {
|
||||
profile = "RPGDialogScrollProfile";
|
||||
horizSizing = "width";
|
||||
vertSizing = "height";
|
||||
position = "8 100";
|
||||
extent = "384 110";
|
||||
minExtent = "8 8";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
willFirstRespond = "1";
|
||||
hScrollBar = "alwaysOff";
|
||||
vScrollBar = "dynamic";
|
||||
constantThumbHeight = "0";
|
||||
childMargin = "0 0";
|
||||
|
||||
new GuiMLTextCtrl(RPGDialogAnswer) {
|
||||
profile = "RPGDialogAnswerProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "1 1";
|
||||
extent = "364 14";
|
||||
minExtent = "8 8";
|
||||
visible = "0";
|
||||
helpTag = "0";
|
||||
lineSpacing = "2";
|
||||
allowColorChars = "0";
|
||||
maxChars = "-1";
|
||||
};
|
||||
};
|
||||
new GuiBitmapCtrl(RPGDialogPortrait) {
|
||||
profile = "GuiDefaultProfile";
|
||||
horizSizing = "right";
|
||||
vertSizing = "bottom";
|
||||
position = "8 8";
|
||||
extent = "80 94";
|
||||
minExtent = "8 2";
|
||||
visible = "1";
|
||||
helpTag = "0";
|
||||
wrap = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
3
Templates/Modules/RPGDialog/gui/dla/test.dla
Normal file
3
Templates/Modules/RPGDialog/gui/dla/test.dla
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<QL1>GotoQuestion(2)<END><1>KillPlayer()<END><2>MoveTo("0 0 0")<END><3>TeleportPlayer("0 0 500")<END><4>TeleportPlayer("0 0 500")TeleportSender("0 0 600")<END><5>DamagePlayer(20)<END><6>GotoQuestion(3)<END><7>CloseDialog()<END>
|
||||
<1>RenameSender("Something Else")<END><2>GotoQuestion(1)<END><3>RenamePlayer("Something Else")<END>
|
||||
<1>ChangeStartQuestion(3)<END><2>ChangePortrait("unknown.png")<END><3>ChangePortraitAndGoto("unknown.png",3)<END><4>ChangeScript("test2",1)<END><5>ChangeScriptAndOpen("test2",1)<END><6>GotoQuestion(1)<END><7>ChangeStartQuestionAndOpen(1)<END>
|
||||
1
Templates/Modules/RPGDialog/gui/dla/test2.dla
Normal file
1
Templates/Modules/RPGDialog/gui/dla/test2.dla
Normal file
|
|
@ -0,0 +1 @@
|
|||
<1>ChangeScript("test",1)<END><2>ChangeScriptAndOpen("test",3)<END><3>CloseDialog()<END>
|
||||
3
Templates/Modules/RPGDialog/gui/dlq/test.dlq
Normal file
3
Templates/Modules/RPGDialog/gui/dlq/test.dlq
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Hello <<PlayerName>>, I'm <a:RPGDialogLink 1><<Name>></a>, What do you want me to do? ~Sound:test<AnswerStart><a:RPGDialog 1>Kill me, please.</a><BR><a:RPGDialog 2>Run to the center of the world!</a><BR><a:RPGDialog 3>Teleport me!</a><BR><a:RPGDialog 4>Teleport us!</a><BR><a:RPGDialog 5>Damage me!</a><BR><a:RPGDialog 6>Something Else...</a><BR><a:RPGDialog 7>Nothing, see ya!</a><BR>
|
||||
Yes, I'm <<Name>>, do you want me to change my name to something else?<AnswerStart><a:RPGDialog 1>Yes, please.</a><BR><a:RPGDialog 2>Nope... </a><BR><a:RPGDialog 3>Change my name instead!</a><BR>
|
||||
...~Sound:test2<AnswerStart><a:RPGDialog 1>Change your start question to this question.</a><BR><a:RPGDialog 2>Change your portrait!</a><BR><a:RPGDialog 3>Change your portrait and come back to this question!</a><BR><a:RPGDialog 4>Change your script...</a><BR><a:RPGDialog 5>Change your script and open it</a><BR><a:RPGDialog 6>Go back to the first question.</a><BR><a:RPGDialog 7>Go back to the first question and set it as default.</a><BR>
|
||||
1
Templates/Modules/RPGDialog/gui/dlq/test2.dlq
Normal file
1
Templates/Modules/RPGDialog/gui/dlq/test2.dlq
Normal file
|
|
@ -0,0 +1 @@
|
|||
Hello <<PlayerName>>, I'm <<Name>>, and this is the test2 script. What do you want to do?<AnswerStart><a:RPGDialog ></a><BR><a:RPGDialog 1>Go back to the other script, please.</a><BR><a:RPGDialog 2>Change your script and open it on the 3rd question.</a><BR><a:RPGDialog 3>Nothing, see you later.</a><BR>
|
||||
BIN
Templates/Modules/RPGDialog/gui/portraits/test.png
Normal file
BIN
Templates/Modules/RPGDialog/gui/portraits/test.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
BIN
Templates/Modules/RPGDialog/gui/portraits/unknown.png
Normal file
BIN
Templates/Modules/RPGDialog/gui/portraits/unknown.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Loading…
Add table
Add a link
Reference in a new issue