Problem with my HUD
by Milan Rancic · in Torque Game Builder · 02/24/2008 (11:31 am) · 6 replies
I made a HUD graphic, and made new GUI file from it. When i load it, he is not effected by my camera movements (which is good). But i have some other problem...
This HUD is over entire screen in my game. And i cant use mouse clicks for anything below my game HUD. What should i do?
i created my game HUD like GUIbitmapCtrl. i dont nead any mouse event on it right now. I will add some buttons later.
thnx in advance.
This HUD is over entire screen in my game. And i cant use mouse clicks for anything below my game HUD. What should i do?
i created my game HUD like GUIbitmapCtrl. i dont nead any mouse event on it right now. I will add some buttons later.
thnx in advance.
#2
Can you explain how can i push my gui HUD in another scene window? Will that result in double-detection of mouse clicks (on/for both scene windows)?
You mean, if i use another scene window, i wont have to use gui editor? Will camera movements effect that other scene window?
02/24/2008 (12:34 pm)
HUD is one image, but its hollow, and looks like a frame around screen. But even 100% transparent pixels on that image are capturing mouse clicks. So i cant click on anything in my game.Can you explain how can i push my gui HUD in another scene window? Will that result in double-detection of mouse clicks (on/for both scene windows)?
You mean, if i use another scene window, i wont have to use gui editor? Will camera movements effect that other scene window?
#3
02/24/2008 (1:10 pm)
I'll hook you up with some code once I get back to my work computer. Its pretty simple.
#4
02/24/2008 (11:11 pm)
Thnx a lot!
#5
it's best not to post the same question to multiple forums;
it will get seen by plenty of people by just posting in one.
but in answer to your actual question,
it sounds like you just need to make the GuiBitmapCtrl be "non-modal".
to do this just make its profile be the GuiModelessDialogProfile,
or use any appropriate profile which has "modal = false" in it.
check out this TDN page.
02/25/2008 (12:01 am)
Milan -it's best not to post the same question to multiple forums;
it will get seen by plenty of people by just posting in one.
but in answer to your actual question,
it sounds like you just need to make the GuiBitmapCtrl be "non-modal".
to do this just make its profile be the GuiModelessDialogProfile,
or use any appropriate profile which has "modal = false" in it.
check out this TDN page.
#6
Thnx!
02/25/2008 (4:56 pm)
Thnx a lot! i neaded it fast, so i was desperate to post it few times. i didnt know in what category toput this thread so i posted it on both places.Thnx!
Torque Owner Kevin James
You may nead to explain the problem a little more.