2 // control/window/normal.qc
13 bool( float pKey, float pAscii ) Item_Window_Key =
15 if( CtCall_Key( pKey, pAscii ) )
21 void() Item_Window_Draw =
25 if( Menu_HasRunFlag( self, RUNFLAG_MOUSEINAREA ) ) {
26 if( sys_debug_area ) {
28 Menu_Fill( self.pos, self.size, '0.2 0 0', 0.2, DRAWFLAG_NORMAL );
30 for( lChild = self._child ; lChild ; lChild = lChild._next ) {
33 if( !Menu_IsVisible( lChild ) )
36 lColor_x = mod( fabs( lChild.orderPos ) + 5, 9 ) / 8;
37 lColor_y = mod( fabs( lChild.orderPos * 8 ), 9 ) / 8;
38 lColor_z = mod( fabs( lChild.orderPos * 7 ), 9 ) / 8;
39 Menu_Fill( self.pos + self.origin + lChild.pos, lChild.size, lColor, 0.2, DRAWFLAG_NORMAL );
43 sys_debug_cursor_localpos = Menu_Cursor_Position - self.origin - self.pos;
52 void() Item_Window_Spawn =
54 self.flag = self.flag | FLAG_NOSELECT;
56 self._key = Item_Window_Key;
57 self._draw = Item_Window_Draw;