UI: Misc fixes... get 'base' building again

This commit is contained in:
Marco Cawthorne 2022-06-05 11:56:23 -07:00
parent 6982043380
commit 14518aabf0
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
5 changed files with 9 additions and 1 deletions

View File

@ -234,6 +234,7 @@ NSInteractiveSurface::Spawned(void)
/* initialize UI panel here */
m_UIChain = spawn(CUIWidget);
m_UIChain.m_iFlags = 1;
child = UIClass_Spawn(m_strUIClass);
@ -279,6 +280,8 @@ TestUI::TestTrigger(void)
void
TestUI::Spawned(void)
{
super::Spawned();
testbutton = spawn(CUIButton);
testbutton.SetPos([32,48]);
testbutton.SetTitle("Test Button!");

View File

@ -30,3 +30,5 @@ var float lasttime;
#define TARGET_MENU 1
#define TARGET_CLIENT 2
var vector g_vecMousePos;

View File

@ -104,6 +104,8 @@ float Menu_InputEvent ( float evtype, float scanx, float chary, float devid )
break;
}
g_vecMousePos = getmousepos();
g_uiDesktop.Input( evtype, scanx, chary, devid );
return (float)g_iMenuActive;
}

View File

@ -231,6 +231,7 @@ UISystem_Init(void)
precache_pic("textures/ui/steam/icon_close");
}
#ifdef CLIENT
CUIWidget
UIClass_Spawn(string cname)
{
@ -251,3 +252,4 @@ UIClass_Spawn(string cname)
return __NULL__;
}
#endif

View File

@ -178,7 +178,6 @@ void CUIWindow::Show(void)
void CUIWindow::Draw(void)
{
#ifdef CLASSIC_VGUI
drawfill(m_vecOrigin, m_vecSize, [0,0,0], 0.5);
drawfill(m_vecOrigin, [m_vecSize[0], 1], m_vecColor, 1.0f);