mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-11 19:29:08 +00:00
1
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $Workfile: $
|
||||
// $Date: $
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
#if !defined( IENGINEVGUI_H )
|
||||
#define IENGINEVGUI_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "interface.h"
|
||||
#include "vgui/VGUI.h"
|
||||
|
||||
// Forward declarations.
|
||||
namespace vgui
|
||||
{
|
||||
class Panel;
|
||||
};
|
||||
|
||||
enum VGuiPanel_t
|
||||
{
|
||||
PANEL_ROOT = 0,
|
||||
PANEL_GAMEUIDLL,
|
||||
PANEL_CLIENTDLL,
|
||||
PANEL_TOOLS,
|
||||
PANEL_INGAMESCREENS,
|
||||
PANEL_GAMEDLL,
|
||||
PANEL_CLIENTDLL_TOOLS
|
||||
};
|
||||
|
||||
// In-game panels are cropped to the current engine viewport size
|
||||
enum PaintMode_t
|
||||
{
|
||||
PAINT_UIPANELS = (1<<0),
|
||||
PAINT_INGAMEPANELS = (1<<1),
|
||||
PAINT_CURSOR = (1<<2), // software cursor, if appropriate
|
||||
};
|
||||
|
||||
abstract_class IEngineVGui
|
||||
{
|
||||
public:
|
||||
virtual ~IEngineVGui( void ) { }
|
||||
|
||||
virtual vgui::VPANEL GetPanel( VGuiPanel_t type ) = 0;
|
||||
|
||||
virtual bool IsGameUIVisible() = 0;
|
||||
};
|
||||
|
||||
#define VENGINE_VGUI_VERSION "VEngineVGui001"
|
||||
|
||||
#if defined(_STATIC_LINKED) && defined(CLIENT_DLL)
|
||||
namespace Client
|
||||
{
|
||||
extern IEngineVGui *enginevgui;
|
||||
}
|
||||
#else
|
||||
extern IEngineVGui *enginevgui;
|
||||
#endif
|
||||
|
||||
#endif // IENGINEVGUI_H
|
||||
Reference in New Issue
Block a user