]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/source/control/data/fastresync.qc
-Added the control item Item_List (to be used later in conjunction with the
[divverent/nexuiz.git] / scmenu / source / control / data / fastresync.qc
1 // DP/Nex Menu
2 // control/data/fastresync.qc
3
4 /////////////////////////////
5 // Item_DataLink_FastResync
6 ////
7
8 void( float pEvent ) Item_DataLink_FastResync_DataEvent =
9 {
10         if( pEvent == ITEM_DATALINK_GET ) {
11                 if( self._presstime != Timer_Time ) {
12                         Raise_DataEvent( self._link, ITEM_DATA_SYNC );
13                         self._presstime = Timer_Time;
14                 }
15                 Raise_DataEvent( self._link, ITEM_DATALINK_GET );
16                 String_EntitySet( self, value, self._link.value );
17         } else if( pEvent == ITEM_DATALINK_SET ) {
18                 if( self._link ) {
19                         String_EntitySet( self._link, value, self.value );
20                         Raise_DataEvent( self._link, ITEM_DATALINK_SET );
21                 }
22         } else
23                 Raise_DataEvent( self._link, pEvent );
24 };
25
26 void() Item_DataLink_FastResync_Spawn =
27 {
28         Item_DataLink_Init();
29
30         self._presstime = Timer_Time - 1;
31
32         self._dataEvent = Item_DataLink_FastResync_DataEvent;
33 };