7 void( entity pEntity ) Raise_x =
20 void( entity pEntity ) Raise_Reinit =
32 void( entity pEntity ) Raise_Destroy =
35 if( !pEntity._destroy )
44 bool( entity pEntity, float pKey, float pAscii) Raise_Key =
54 lResult = self._key( pKey, pAscii );
60 void( entity pEntity ) Raise_Draw =
72 void( entity pEntity ) Raise_MouseEnter =
75 if( !pEntity._mouseEnter )
84 void( entity pEntity ) Raise_MouseLeave =
87 if( !pEntity._mouseLeave )
96 void( entity pEntity ) Raise_Update =
99 if( !pEntity._update )
108 void( entity pEntity, bool pSelect, bool pUser ) Raise_Select =
111 if( !pEntity._select )
116 self._select( pSelect, pUser );
120 // safe call control function functions
121 // default control functions
137 void() CtCall_Reinit =
143 void() CtCall_Destroy =
149 bool( float pKey, float pAscii ) CtCall_Key =
152 return self.key( pKey, pAscii );
162 void() CtCall_MouseEnter =
164 if( self.mouseEnter )
168 void() CtCall_MouseLeave =
170 if( self.mouseLeave )
174 void() CtCall_Action =
180 void() CtCall_Update =
186 void( bool pSelect, bool pUser ) CtCall_Select =
189 self.select( pSelect, pUser );
192 // default control functions
193 /* template (expect DefCt_Key)
201 // defct_init not needed cause its the same like the type function
203 void() DefCt_Reinit =
207 void() DefCt_Destroy =
211 bool( float pKey, float pAscii ) DefCt_Key =
220 void() DefCt_MouseEnter =
224 void() DefCt_MouseLeave =
228 void() DefCt_Action =
232 void( float pSelect, bool pUser ) DefCt_Select =
236 void() DefCt_Update =
240 // default key function
241 /*void(float keynr, float ascii) def_keyevent =
243 if(keynr == K_ESCAPE)
245 // move up to the parent
247 } else if(keynr == K_LEFTARROW || keynr == K_UPARROW)
249 // move to the previous element
252 if(Menu_ActiveItem == self)
256 Menu_ActiveItem = self._prev;
258 if(Menu_ActiveItem != self._prev)
263 Menu_ActiveItem = self;
265 } else if(keynr == K_RIGHTARROW || keynr == K_DOWNARROW)
267 // move to the next element
270 if(Menu_ActiveItem == self)
274 Menu_ActiveItem = self._next;
276 if(Menu_ActiveItem != self._next)
281 Menu_ActiveItem = self;
283 } else if(keynr == K_ENTER || keynr == K_MOUSE1)
287 // move to the child menu