aixxe c1738ce42b Replace IPanel::PaintTraverse hook with IEngineVGui::Paint.
* Add example watermark text in bottom-right corner.

Signed-off-by: aixxe <me@aixxe.net>
2016-12-23 12:15:31 +00:00

26 lines
457 B
C++

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