GUI Menu - Bitmap backdrops
by Flybynight Studios · in Torque Game Engine · 03/26/2005 (8:45 pm) · 5 replies
OK, I am sure this is way simpler than I'm making it out to be but all I'm looking to do is make backdrops for my GUI pop up windows that are image files instead of just fill colors and borders..
Now this should be simple as all hell but All I'm getting are a complete mess =(. Anyone able to set me on the right path? Basically I want to put a pop-up window gui overtop of a backdrop gui and then put info overtop of that..
Thanks in advance.
Mark
Now this should be simple as all hell but All I'm getting are a complete mess =(. Anyone able to set me on the right path? Basically I want to put a pop-up window gui overtop of a backdrop gui and then put info overtop of that..
Thanks in advance.
Mark
#2
More specifically, here is what I have:
That is inside the default guibitmap control and has sub controls underneath it (for the various entry fields and data display fields etc.)
The window pops up just fine but it's got a white background instead of the chat2.png for a background. (BTW I Was just testing various PNG files as teh background to make sure it wasnt a PNG/JPG formatting issue)
I'll try and download some demo games and see if I can discern what other folks are doin. I didnt think this would be such a showstopper heh.
Mark
03/27/2005 (4:48 pm)
Thanks Ed. Doesnt help me with the GuiProfile though. That's a 4 year old resource.More specifically, here is what I have:
new GuiControl() {
profile = "GuiContentProfile";
horizSizing = "center";
vertSizing = "center";
position = "93 100";
extent = "455 308";
minExtent = "8 8";
visible = "1";
bitmap = "./chat2";
useVariable = "0";
tile = "0";
helpTag = "0";That is inside the default guibitmap control and has sub controls underneath it (for the various entry fields and data display fields etc.)
The window pops up just fine but it's got a white background instead of the chat2.png for a background. (BTW I Was just testing various PNG files as teh background to make sure it wasnt a PNG/JPG formatting issue)
I'll try and download some demo games and see if I can discern what other folks are doin. I didnt think this would be such a showstopper heh.
Mark
#3
GuiControl doesn't take a bitmap value. You comment that you already use GuiBitmapCtrl. Try placing one just above the GuiControl you listed with the same dimensions and the desired bitmap. That atleast is how I am layering bitmaps on my screen.
Thanks.
03/27/2005 (6:38 pm)
Mark,GuiControl doesn't take a bitmap value. You comment that you already use GuiBitmapCtrl. Try placing one just above the GuiControl you listed with the same dimensions and the desired bitmap. That atleast is how I am layering bitmaps on my screen.
Thanks.
#4
Could you possibly send me a gui.cs of a working layered menu screen you are using? it would be invaluable to me just as a point of ref. I dont need any of the resources for it just the CS.
Basically what I am doing is using the default StartMissionGui.cs and I want to put up a BMP background instead of the standard fill window colour. I'm just doing this as a learning tool but it will help me clean up my login screens on my client build when I figure it out =).
Thanks for the help
PS: Can catch me at slyxsith at hotmail dot com or markm@aakrana.com
Edit: Thanks for pointing me at that again Derk. I got it working with this..
I'd still really like to see one of your cascading menu .cs files if you wouldnt mind though to make sure I'm doing it right =) Cheers mate and thanks again
03/27/2005 (7:22 pm)
I've just tried tinkering with this a few different ways as you suggested Derk but I'm not getting it right. I either get nothing or the window appears correct but it's got a white background instead of the JPG/PNG I want to use.Could you possibly send me a gui.cs of a working layered menu screen you are using? it would be invaluable to me just as a point of ref. I dont need any of the resources for it just the CS.
Basically what I am doing is using the default StartMissionGui.cs and I want to put up a BMP background instead of the standard fill window colour. I'm just doing this as a learning tool but it will help me clean up my login screens on my client build when I figure it out =).
Thanks for the help
PS: Can catch me at slyxsith at hotmail dot com or markm@aakrana.com
Edit: Thanks for pointing me at that again Derk. I got it working with this..
new GuiChunkedBitmapCtrl() {
profile = "GuiContentProfile";
horizSizing = "center";
vertSizing = "center";
position = "93 100";
extent = "455 308";
minExtent = "8 8";
visible = "1";
bitmap = "./chat2-old";
useVariable = "0";
tile = "0";
helpTag = "0";I'd still really like to see one of your cascading menu .cs files if you wouldnt mind though to make sure I'm doing it right =) Cheers mate and thanks again
#5
Wasnt as hard to track down as the initial gui thing but it's all under control now. =)
Thank you everyone for yout feedback. I think I'm on the move.
Mark
03/27/2005 (9:38 pm)
As a followup to anyone searching for bitmap controls for menus, you will also be intrested to learn that text color controls (as far as I can tell) are not able to be placed in the gui.cs file. Rather they are pre-defined in the customprofiles.cs under ./client/ui/Wasnt as hard to track down as the initial gui thing but it's all under control now. =)
Thank you everyone for yout feedback. I think I'm on the move.
Mark
Torque Owner Ed Johnson