]> icculus.org git repositories - divverent/nexuiz.git/blob - data/source/control/visual/valuebutton.qc
restructure
[divverent/nexuiz.git] / data / source / control / visual / valuebutton.qc
1 // DP/Nex Menu
2 // control/visual/valuebutton.qc
3
4 /////////////////////
5 // Item_ValueButton
6 ///
7
8 void() Item_ValueButton_Update =
9 {
10         Item_DataUser_Update();
11
12         Raise_DataEvent( self._target, ITEM_DATALINK_GET );
13         String_EntitySet( self, normal, self._target.value );
14         self.size = '0 0 0'; // FIXME: Do we really want this/need this?
15         Item_Button_Update();
16 };
17
18 void() Item_ValueButton_Destroy =
19 {
20         Item_DataUser_Destroy();
21         Item_Button_Destroy();
22 };
23
24 void() Item_ValueButton_Spawn =
25 {
26         Item_DataUser_Init();
27         Item_Button_Spawn();
28
29         self._destroy = Item_ValueButton_Destroy;
30         self._update = Item_ValueButton_Update;
31 };