Talk:VGUI: Making GameUI Panels: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
I've attempted this approach before...it's no good because it would go over the quit dialog when it pops up&mdash;'''[[User:Ts2do|ts2do]]'''&nbsp;<sup>([[User talk:Ts2do|Talk]]&nbsp;|&nbsp;[mailto:tsdodo@gmail.com @])</sup> 05:55, 6 Dec 2005 (PST)
I've attempted this approach before...it's no good because it would go over the quit dialog when it pops up&mdash;'''[[User:Ts2do|ts2do]]'''&nbsp;<sup>([[User talk:Ts2do|Talk]]&nbsp;|&nbsp;[mailto:tsdodo@gmail.com @])</sup> 05:55, 6 Dec 2005 (PST)


It's just an example for displaying a screen all the time. If you only want it to move to the front in the beginning than you can just drop <code>MoveToFront()</code> in <code>Init()</code> --[[User:Jerry|Jerry (MrU on VERC)]] 06:01, 6 Dec 2005 (PST)
It's just an example for displaying a screen all the time. If you only want it to move to the front in the beginning than you can just drop <code>MoveToFront()</code> in <code>Init()</code>. I use it for displaying a dialog which you have to close before moving onto something else. --[[User:Jerry|Jerry (MrU on VERC)]] 06:01, 6 Dec 2005 (PST)

Revision as of 07:02, 6 December 2005

You should bold the part about Including the testpanel.h file in the vgui_int.cpp. I missed it on my first pass of the text tutorial. -Simkin

Jump right in and do so. This is a wiki. —Maven (talk) 10:33, 7 Oct 2005 (PDT)

How do you give the panel focus? When I show my panel it ends up behind another panel. --.freelancer 15:40, 30 Nov 2005 (PST)

call its RequestFocus()ts2do (Talk | @) 20:11, 30 Nov 2005 (PST)

Doesn't work, it's still not recieving focus.. --.freelancer 07:45, 1 Dec 2005 (PST)
I could still use some help here.. --.freelancer 03:25, 3 Dec 2005 (PST)
Only a very few of us have ever messed with VGUI panels at all. When you figure it out, you get to be the VDC expert on them. <grin> —Maven (talk) 18:04, 3 Dec 2005 (PST)

Use MoveToFront() in OnTick(). This way it always stays on top of other panels. --Jerry (MrU on VERC) 02:35, 6 Dec 2005 (PST)

I've attempted this approach before...it's no good because it would go over the quit dialog when it pops up—ts2do (Talk | @) 05:55, 6 Dec 2005 (PST)

It's just an example for displaying a screen all the time. If you only want it to move to the front in the beginning than you can just drop MoveToFront() in Init(). I use it for displaying a dialog which you have to close before moving onto something else. --Jerry (MrU on VERC) 06:01, 6 Dec 2005 (PST)