]> icculus.org git repositories - divverent/nexuiz.git/blob - data/menuqc/custom/demos.qm
demo menu now easier, need to recompile menu.dat
[divverent/nexuiz.git] / data / menuqc / custom / demos.qm
1 // Property of Alientrap
2 // custom/demos.qm
3
4 void() Nex_Demos_Start =
5 {
6         local entity lFileList;
7         lFileList = Menu_GetItem( "::Data::Demos::FileList::Demos" );
8
9         if (lFileList.value) {
10                 cmd( strcat( "playdemo \"", lFileList.selected, lFileList.value, ".", lFileList.normal, "\"\n" ) );
11
12                 // force the menu to hide
13                 m_hide();
14         }
15 };
16
17 void() Nex_Demos_SyncData =
18 {
19         if( self._realValue < Timer_Time && self._realValue > 0.0 ) {
20                 Raise_DataEvent( Menu_GetItem( "::Data::Demos" ), ITEM_DATA_SYNC );
21                 self._realValue = 0.0;
22         }
23 };