Talk:VGUI: Making GameUI Panels
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
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)
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)
well if the frame makes it impossible to click quit in the gamemenu, that's fine—ts2do (Talk | @) 19:10, 6 Dec 2005 (PST)
See VGUI_Documentation#Windows_.26_Popups
Added the bold to the vgui_int.ccp header includes bit and clarified the wording so it's not missed (I missed it too the first time). --schenkman 17:55, 30 Oct 2006 (PST)
I just wonder how you changed the color/appearance of the standard panels like the console panel!? How did you change their color(s) and added own images? Thx a lot! --Archer 15:50, 26 Nov 2007