Another thing to remember is that it is all about your parents. In VGUI2
visibility is controlled by your position in the panel tree and the
visibility of any panel between you and the root.

For your case you need to make sure you parent your GameUI panel to the
GameUI tree, and not to the client dll one. This call in your panels
Activate() call:

SetParent( EngineVGui()->GetPanel( PANEL_GAMEUIDLL ) );

should do it.

- Alfred


----Original Message----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kamran
Sent: Monday, July 18, 2005 10:39 AM To: hlcoders@list.valvesoftware.com
Subject: Re: [hlcoders] Drawing panels outside of a game

> Sure is, read my little addition to the Create a Panel tutorial:
>
>
http://developer.valvesoftware.com/wiki/VGUI2:_Creating_a_panel#Main_Men
u
>
> This is how I create my New Game panel.
>
> Tim Jones wrote:
>
> > Hi all,
> >  I'm trying to display a configuration menu of sorts in my mod
> > without requiring the user to start/join a server.  My setup right
> > now involves a ConCommand that tells gViewportInterface to
> > ShowPanel. Sure enough the ShowPanel method of my panel is called
> > however it doesn't seem like the Paint method is ever called.  I'm
> > not particularly surprised since my stuff is probably sitting under
> > a different PaintTraverse than the main menu or something like that.
> >  At any rate, does anyone know of a way to get a panel to paint
> > itself without starting a game/server (eg. in the main menu)?  Is
> > this even possible?
> >
> > Thanks,
> > -Tim
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list
> > archives, please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to