cl_dll/game_controls/baseviewport.h
18192021222324
#include "commandmenu.h"
#include
using namespace vgui;
class IBaseFileSystem;
class IGameUIFuncs;
18192021222324
#include "commandmenu.h"
#include
//using namespace vgui;
class IBaseFileSystem;
class IGameUIFuncs;
363738394041
virtual IViewPortPanel* CreatePanelByName(const char *szPanelName);
virtual IViewPortPanel* FindPanelByName(const char *szPanelName);
virtual IViewPortPanel* GetActivePanel( void );
virtual void RemoveAllPanels( void);
virtual void ShowPanel( const char *pName, bool state );
36373839404142
virtual IViewPortPanel* CreatePanelByName(const char *szPanelName);
virtual IViewPortPanel* FindPanelByName(const char *szPanelName);
virtual IViewPortPanel* GetActivePanel( void );
virtual IViewPortPanel* GetLastActivePanel( void );
virtual void RemoveAllPanels( void);
virtual void ShowPanel( const char *pName, bool state );
545556575859606162
#ifndef _XBOX
virtual int GetViewPortScheme() { return m_pBackGround->GetScheme(); }
virtual VPANEL GetViewPortPanel() { return m_pBackGround->GetVParent(); }
#endif
virtual AnimationController *GetAnimationController() { return m_pAnimController; }
virtual void ShowBackGround(bool bShow)
{
555657585960616263
#ifndef _XBOX
virtual int GetViewPortScheme() { return m_pBackGround->GetScheme(); }
virtual vgui::VPANEL GetViewPortPanel() { return m_pBackGround->GetVParent(); }
#endif
virtual vgui::AnimationController *GetAnimationController() { return m_pAnimController; }
virtual void ShowBackGround(bool bShow)
{
91929394959697
}
private:
virtual void ApplySchemeSettings(IScheme *pScheme)
{
BaseClass::ApplySchemeSettings(pScheme);
SetBgColor(pScheme->GetColor("ViewportBG", Color( 0,0,0,0 ) ));
92939495969798
}
private:
virtual void ApplySchemeSettings( vgui::IScheme *pScheme)
{
BaseClass::ApplySchemeSettings(pScheme);
SetBgColor(pScheme->GetColor("ViewportBG", Color( 0,0,0,0 ) ));
108109110111112113114
BaseClass::PerformLayout();
}
virtual void OnMousePressed(MouseCode code) { }// don't respond to mouse clicks
virtual vgui::VPANEL IsWithinTraverse( int x, int y, bool traversePopups )
{
return NULL;
109110111112113114115
BaseClass::PerformLayout();
}
virtual void OnMousePressed( vgui::MouseCode code) { }// don't respond to mouse clicks
virtual vgui::VPANEL IsWithinTraverse( int x, int y, bool traversePopups )
{
return NULL;
134135136137138139
bool m_bInitialized;
IViewPortPanel *m_pActivePanel;
IViewPortPanel *m_pLastActivePanel;
vgui::HCursor m_hCursorNone;
vgui::AnimationController *m_pAnimController;
int m_OldSize[2];
135136137138139140141
bool m_bInitialized;
IViewPortPanel *m_pActivePanel;
IViewPortPanel *m_pLastActivePanel;
CUtlStack< IViewPortPanel * > m_LastActivePanelStack;
vgui::HCursor m_hCursorNone;
vgui::AnimationController *m_pAnimController;
int m_OldSize[2];