Floating Windows on playGui
by Robert Pierce · in Torque Game Engine · 05/16/2005 (2:14 pm) · 4 replies
For my game (an RPG), I have been messing around with "floating windows". What I have been trying to accomplish is a guiWindowCtrl that "floats" on the playGui (or whatever that gui is named in my project). This means that the windows it there, it is resizable (or not depending on how I want it), and it doesn't block input (mouse and keyboard) to the playGui.
I have tried two ways, and they both failed.
Method One:
A guiWindowCtrl inside a guiControl (I knew this one wouldn't work, but it is how I am used to making GUIs in Torque).
Such as
Method Two: A guiWindowCtrl added to the playGui.
For me, this did not work, all it did was create a window that wouldn't accept focus (I think it may be because the shapeNameHud is blocking it).
Anyone have any suggestions (or confirmations that is is the ShapeNameHud. I will be testing the ShapeNameHud possibility).
Robert Pierce
I have tried two ways, and they both failed.
Method One:
A guiWindowCtrl inside a guiControl (I knew this one wouldn't work, but it is how I am used to making GUIs in Torque).
Such as
new GuiControl(spellbookDlgg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 2";
visible = "1";
new GuiWindowCtrl() {
profile = "InventoryProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "2 -2";
extent = "621 476";
minExtent = "8 2";
visible = "1";
text = "Inventory";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
CloseCommand = "spellbookDlg::toggle();";
};
};Method Two: A guiWindowCtrl added to the playGui.
For me, this did not work, all it did was create a window that wouldn't accept focus (I think it may be because the shapeNameHud is blocking it).
new GuiWindowCtrl(spellbookDlg) {
profile = "FloatingWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "250 180";
extent = "140 120";
minExtent = "140 120";
visible = "0";
lockMouse = "0";
text = "Spellbook";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "0";
minSize = "140 120";
closeCommand = "toggle(SpellbookDlg);";
};Anyone have any suggestions (or confirmations that is is the ShapeNameHud. I will be testing the ShapeNameHud possibility).
Robert Pierce
#2
05/16/2005 (3:19 pm)
Umm just curious but have you tried using a modeless dialog profile?
#3
I need to remember that I can usually find the answer to my questions in the "common" folder, ;).
Robert
05/16/2005 (3:48 pm)
Hehe thanks, that solved my "problem".I need to remember that I can usually find the answer to my questions in the "common" folder, ;).
Robert
#4
11/11/2011 (4:09 am)
Thanks for this post.
Torque Owner Robert Pierce
Robert