From 43381f81a06f31b5533105858616992019295f4d Mon Sep 17 00:00:00 2001 From: notgoodusename <57305491+notgoodusename@users.noreply.github.com> Date: Fri, 9 Feb 2024 13:19:23 -0300 Subject: [PATCH] Add EngineVGui interface --- Seth/Interfaces.h | 4 ++-- Seth/SDK/EngineVGui.h | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Seth/SDK/EngineVGui.h diff --git a/Seth/Interfaces.h b/Seth/Interfaces.h index e1d06fc..bd67f25 100644 --- a/Seth/Interfaces.h +++ b/Seth/Interfaces.h @@ -12,8 +12,8 @@ class Client; class Cvar; class DebugOverlay; class Engine; -class EngineSound; class EngineTrace; +class EngineVGui; class EntityList; class FileSystem; class GameEventManager; @@ -48,6 +48,7 @@ type* name = reinterpret_cast(find(moduleName, version)); GAME_INTERFACE(Engine, engine, ENGINE_DLL, "VEngineClient013") GAME_INTERFACE(EngineTrace, engineTrace, ENGINE_DLL, "EngineTraceClient003") GAME_INTERFACE(EntityList, entityList, CLIENT_DLL, "VClientEntityList003") + GAME_INTERFACE(EngineVGui, engineVGui, ENGINE_DLL, "VEngineVGui002") GAME_INTERFACE(FileSystem, fileSystem, FILESYSTEM_DLL, "VFileSystem022") GAME_INTERFACE(GameEventManager, gameEventManager, ENGINE_DLL, "GAMEEVENTSMANAGER002") GAME_INTERFACE(GameMovement, gameMovement, CLIENT_DLL, "GameMovement001") @@ -64,7 +65,6 @@ type* name = reinterpret_cast(find(moduleName, version)); GAME_INTERFACE(Prediction, prediction, CLIENT_DLL, "VClientPrediction001") GAME_INTERFACE(RenderView, renderView, ENGINE_DLL, "VEngineRenderView014") GAME_INTERFACE(Surface, surface, VGUIMATSURFACE_DLL, "VGUI_Surface030") - GAME_INTERFACE(EngineSound, sound, ENGINE_DLL, "IEngineSoundClient003") GAME_INTERFACE(Server, server, SERVER_DLL, "ServerGameDLL012") GAME_INTERFACE(SteamClient, steamClient, STEAMCLIENT, "SteamClient017") GAME_INTERFACE(StudioRender, studioRender, STUDIORENDER_DLL, "VStudioRender025") diff --git a/Seth/SDK/EngineVGui.h b/Seth/SDK/EngineVGui.h new file mode 100644 index 0000000..cb9f1ba --- /dev/null +++ b/Seth/SDK/EngineVGui.h @@ -0,0 +1,10 @@ +#pragma once + +#include "VirtualMethod.h" + +class EngineVGui +{ +public: + VIRTUAL_METHOD(unsigned int, getPanel, 1, (int type), (this, type)) + VIRTUAL_METHOD(bool, isGameUIVisible, 2, (), (this)) +}; \ No newline at end of file