resizing scenewindows [solved]
by Anthony Green · in Torque 2D Beginner · 07/19/2013 (11:55 am) · 2 replies
I did some searches and it seems like this is possible but no one says how.
When something happens I am adding a new SceneWindow to add sprites too. How can I size that new window to only take part of the screen so that I can still pass touch events to the other parts of the screen?
When something happens I am adding a new SceneWindow to add sprites too. How can I size that new window to only take part of the screen so that I can still pass touch events to the other parts of the screen?
About the author
#2
I'm not sure this is going to work now but I'll have to experiment a bit more.
07/22/2013 (6:33 am)
Thanks didn't think to check there for some reason. I had the part you mentioned right I was just doing a lot of other things very wrong. I'm not sure this is going to work now but I'll have to experiment a bit more.
Associate Simon Love
new SceneWindow(SandboxWindow2) { Profile = SandboxWindowProfile; Position = "64 64"; Extent = "320 240"; };If it still doesn't work, try setting Modal = false in the Profile or in the function above. Modal = false means that you can click on transparent parts of the GuiControl and the controls underneath it will catch your input.
If you still have issues, make sure to verify guiprofiles.cs to make sure you have SandboxWindowProfile (in Sandbox/1/gui/ ) defined properly.