Replace IPanel::PaintTraverse hook with IEngineVGui::Paint.
* Add example watermark text in bottom-right corner. Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
26
include/cstrike/Interfaces/IEngineVGui.h
Normal file
26
include/cstrike/Interfaces/IEngineVGui.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
enum VGuiPanel_t {
|
||||
PANEL_ROOT = 0,
|
||||
PANEL_GAMEUIDLL,
|
||||
PANEL_CLIENTDLL,
|
||||
PANEL_TOOLS,
|
||||
PANEL_INGAMESCREENS,
|
||||
PANEL_GAMEDLL,
|
||||
PANEL_CLIENTDLL_TOOLS
|
||||
};
|
||||
|
||||
enum PaintMode_t {
|
||||
PAINT_UIPANELS = (1 << 0),
|
||||
PAINT_INGAMEPANELS = (1 << 1),
|
||||
PAINT_CURSOR = (1 << 2)
|
||||
};
|
||||
|
||||
class IEngineVGui {
|
||||
public:
|
||||
virtual ~IEngineVGui(void) {};
|
||||
virtual VPANEL GetPanel(VGuiPanel_t type) = 0;
|
||||
virtual bool IsGameUIVisible() = 0;
|
||||
};
|
||||
|
||||
extern IEngineVGui* enginevgui;
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "Interfaces/ICvar.h"
|
||||
#include "Interfaces/IPanel.h"
|
||||
#include "Interfaces/ISurface.h"
|
||||
#include "Interfaces/IEngineVGui.h"
|
||||
#include "Interfaces/IVModelInfo.h"
|
||||
#include "Interfaces/ILauncherMgr.h"
|
||||
#include "Interfaces/IInputSystem.h"
|
||||
|
||||
Reference in New Issue
Block a user