Menu-VGUI: Knew I forgot something. Thanks @Fix
This commit is contained in:
parent
338e89c06a
commit
5843fa3ef1
2 changed files with 8 additions and 6 deletions
|
@ -247,7 +247,7 @@ void UI_ModelViewer_Show ( void )
|
||||||
winViewer.SetSize( [ 550, 390 ] );
|
winViewer.SetSize( [ 550, 390 ] );
|
||||||
winViewer.SetMinSize( [ 430, 256 ] );
|
winViewer.SetMinSize( [ 430, 256 ] );
|
||||||
winViewer.SetMaxSize( [ 9999, 9999 ] );
|
winViewer.SetMaxSize( [ 9999, 9999 ] );
|
||||||
winViewer.FlagAdd( WINDOW_CANRESIZE );
|
winViewer.SetStyleMask( VGUIWindowStyleDefault );
|
||||||
winViewer.SetPos( [ 172, 64 ] );
|
winViewer.SetPos( [ 172, 64 ] );
|
||||||
winViewer.SetIcon( "textures/ui/icons/hdd" );
|
winViewer.SetIcon( "textures/ui/icons/hdd" );
|
||||||
winViewer.CallOnResize( UI_ModelViewer_Resize );
|
winViewer.CallOnResize( UI_ModelViewer_Resize );
|
||||||
|
|
|
@ -30,6 +30,12 @@ typedef enumflags
|
||||||
VGUIWindowMovable,
|
VGUIWindowMovable,
|
||||||
} vguiWindowStyle_t;
|
} vguiWindowStyle_t;
|
||||||
|
|
||||||
|
#define VGUIWindowStyleDefault VGUIWindowMovable | \
|
||||||
|
VGUIWindowTitled | \
|
||||||
|
VGUIWindowClosable | \
|
||||||
|
VGUIWindowMiniaturizable | \
|
||||||
|
VGUIWindowResizeable
|
||||||
|
|
||||||
/** Top-most window class in VGUILib */
|
/** Top-most window class in VGUILib */
|
||||||
class VGUIWindow:VGUIWidget
|
class VGUIWindow:VGUIWidget
|
||||||
{
|
{
|
||||||
|
@ -79,11 +85,7 @@ VGUIWindow::VGUIWindow(void)
|
||||||
{
|
{
|
||||||
m_vecColor = UI_MAINCOLOR;
|
m_vecColor = UI_MAINCOLOR;
|
||||||
m_flAlpha = 1.0f;
|
m_flAlpha = 1.0f;
|
||||||
m_styleMask = VGUIWindowMovable |
|
m_styleMask = VGUIWindowStyleDefault;
|
||||||
VGUIWindowTitled |
|
|
||||||
VGUIWindowClosable |
|
|
||||||
VGUIWindowMiniaturizable |
|
|
||||||
VGUIWindowResizeable;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue