of TW 1.2 (the version that never got released) and besides some primitive windowing is usable enough in its current state. Misc fixes to FreeCS as well.
27 lines
583 B
C++
27 lines
583 B
C++
|
|
|
|
void VGUI_MessageOfTheDay(void)
|
|
{
|
|
static int initialized;
|
|
static CUIWindow winMOTD;
|
|
static CUIButton btnOK;
|
|
|
|
if ( !initialized ) {
|
|
initialized = TRUE;
|
|
winMOTD = spawn( CUIWindow );
|
|
winMOTD.SetTitle( "Message Of The Day" );
|
|
winMOTD.SetSize( '420 320' );
|
|
winMOTD.SetIcon( "textures/ui/icons/cd" );
|
|
|
|
btnOK = spawn( CUIButton );
|
|
btnOK.SetTitle( "Play" );
|
|
btnOK.SetPos( '8 132' );
|
|
//btnPlay.SetFunc( MusicPlayer_Play );
|
|
|
|
g_uiDesktop.Add( winMOTD );
|
|
winMOTD.Add( btnOK );
|
|
}
|
|
|
|
winMOTD.Show();
|
|
winMOTD.SetPos( ( video_res / 2 ) - ( winMOTD.GetSize() / 2 ) );
|
|
}
|