This is a fork of GWEN that comes with a VGUI Renderer. There is also come code to integration GWEN with Valve's GUI framework.
It is encouraged to use the mainline of GWEN and implement this renderer yourself. However, if you wish to get up and running as soon as possible, then simply using this project it easy to get GWEN into your Source engine modification.
Contains some additional widgets to help you get setup and create a GWEN frame in a Source SDK based game.
- Add the Gwen project to game_scratch solution
- Add the mod folder to the "Client" project
- Add the following lines in vgui_int.cpp
- add the following include:
-
#include "BaseGUI.h" ```
-
- at the end of void VGui_CreateGlobalPanels():
g_pGUIManager = new CGUILoader();
g_pGUIManager->InitPanels();
- before the
if ( g_ClientMode )
invoid VGui_Shutdown()
:g_pGUIManager->DestroyPanels();
delete g_pGUIManager;
- add the following include:
- Key input has not yet been implemented.
- Only works with vgui::Frame, but there is no reason that you cannot implement GWEN frames on their own.
Good luck!