Menu-VGUI: Knew I forgot something. Thanks @Fix

This commit is contained in:
Marco Cawthorne 2023-03-27 01:53:53 -07:00
parent 338e89c06a
commit 5843fa3ef1
Signed by: eukara
GPG key ID: CE2032F0A2882A22
2 changed files with 8 additions and 6 deletions

View file

@ -247,7 +247,7 @@ void UI_ModelViewer_Show ( void )
winViewer.SetSize( [ 550, 390 ] );
winViewer.SetMinSize( [ 430, 256 ] );
winViewer.SetMaxSize( [ 9999, 9999 ] );
winViewer.FlagAdd( WINDOW_CANRESIZE );
winViewer.SetStyleMask( VGUIWindowStyleDefault );
winViewer.SetPos( [ 172, 64 ] );
winViewer.SetIcon( "textures/ui/icons/hdd" );
winViewer.CallOnResize( UI_ModelViewer_Resize );

View file

@ -30,6 +30,12 @@ typedef enumflags
VGUIWindowMovable,
} vguiWindowStyle_t;
#define VGUIWindowStyleDefault VGUIWindowMovable | \
VGUIWindowTitled | \
VGUIWindowClosable | \
VGUIWindowMiniaturizable | \
VGUIWindowResizeable
/** Top-most window class in VGUILib */
class VGUIWindow:VGUIWidget
{
@ -79,11 +85,7 @@ VGUIWindow::VGUIWindow(void)
{
m_vecColor = UI_MAINCOLOR;
m_flAlpha = 1.0f;
m_styleMask = VGUIWindowMovable |
VGUIWindowTitled |
VGUIWindowClosable |
VGUIWindowMiniaturizable |
VGUIWindowResizeable;
m_styleMask = VGUIWindowStyleDefault;
}
void