added main menus, improved shading

This commit is contained in:
2025-07-18 20:37:52 +03:00
parent dddf1b5881
commit 070c3ff309
45 changed files with 859 additions and 271 deletions

View File

@@ -3,6 +3,7 @@
#include "tier0/platform.h"
#include "fgui.h"
#include <cstdint>
class CFGUI_Widget
{
@@ -15,14 +16,18 @@ public:
void SetSize( uint32_t nX, uint32_t nY );
void SetParent( CFGUI_Widget *pParent );
void ComputeOffset( );
bool IsVisible( );
virtual void Event( FGUI_Event_t event ) = 0;
virtual void Draw() = 0;
virtual void Frame() = 0;
virtual void SetVisibility( bool bValue );
static void SetDefaultParent(CFGUI_Widget *pParent);
int32_t m_iPosition[2];
uint32_t m_iSize[2];
CFGUI_Widget *m_pParent;
CFGUI_Widget *m_pParent = NULL;
bool m_bIsVisible = true;
};
#endif