--
[ Picked text/plain from multipart/alternative ]
PANEL_ROOT did the trick, thanks!

On 8/16/06, Robbie Groenewoudt <[EMAIL PROTECTED]> wrote:
>
> --
> [ Picked text/plain from multipart/alternative ]
> PANEL_ROOT
>
> On 8/17/06, Oliver Gray <[EMAIL PROTECTED]> wrote:
> >
> > --
> > [ Picked text/plain from multipart/alternative ]
> > Hi all,
> >
> > In our mod we want to have the same frame reachable from both the main
> > menu
> > (i.e. the menu you see when the game starts) and from inside the game
> when
> > the game is running.  I know it seems odd to do this, but it is
> necessary.
> >
> > In vgui_int.cpp, in order for a frame to show up in the main menu, we
> have
> > to call (in VGui_CreateGlobalPanels):
> >
> > VPANEL GameUiDll = enginevgui->GetPanel( PANEL_GAMEUIDLL);
> > CreateGui->Create(GameUiDll);
> >
> > In order for a frame to show up in the game, we have to call:
> > VPANEL gameParent = enginevgui->GetPanel( PANEL_CLIENTDLL );
> > CreateGuiInGame->Create(gameParent);
> >
> > Currently CreateGuiInGame is the same code as CreateGui, just in a
> > different
> > class.
> >
> > QUESTION:
> > Does anyone know of a slick way to have a frame able to show up in both
> > the
> > main menu and in the game using just one class?
> >
> > Thanks!
> > --
> >
> > _______________________________________________
> > 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
>
>
--

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

Reply via email to