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:
aixxe
2016-12-23 12:13:39 +00:00
parent f94aaad6c3
commit c1738ce42b
6 changed files with 90 additions and 22 deletions

View 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;

View File

@@ -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"