2002-08-16 21:54:21 +00:00
|
|
|
#ifndef __options_util_h
|
|
|
|
#define __options_util_h
|
|
|
|
|
2004-02-04 02:35:57 +00:00
|
|
|
#include "gui/Group.h"
|
|
|
|
|
|
|
|
@class Text;
|
|
|
|
@class Slider;
|
|
|
|
|
2004-11-18 05:08:00 +00:00
|
|
|
@interface MenuGroup : Group
|
|
|
|
{
|
|
|
|
integer base;
|
|
|
|
integer current;
|
|
|
|
}
|
|
|
|
-(void)setBase:(integer)b;
|
|
|
|
@end
|
|
|
|
|
2004-02-13 06:42:51 +00:00
|
|
|
@interface CvarObject : Object
|
2004-02-07 00:09:50 +00:00
|
|
|
{
|
|
|
|
string name;
|
|
|
|
}
|
|
|
|
-(id)initWithCvar:(string)cvname;
|
2004-02-13 06:42:51 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface CvarToggle : CvarObject
|
2004-02-07 00:09:50 +00:00
|
|
|
-(void)toggle;
|
|
|
|
-(BOOL)value;
|
|
|
|
@end
|
|
|
|
|
2004-02-14 03:18:53 +00:00
|
|
|
@interface MouseToggle : CvarObject
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface RunToggle : CvarObject
|
|
|
|
@end
|
|
|
|
|
2004-02-07 00:09:50 +00:00
|
|
|
@interface CvarToggleView : Group
|
|
|
|
{
|
|
|
|
Text title;
|
|
|
|
Text value;
|
|
|
|
CvarToggle toggle;
|
|
|
|
}
|
|
|
|
-(id)initWithBounds:(Rect)aRect title:(string)_title :(CvarToggle)_toggle;
|
|
|
|
-(void)toggle;
|
|
|
|
@end
|
|
|
|
|
2004-02-13 06:42:51 +00:00
|
|
|
@interface CvarColor : CvarObject
|
|
|
|
-(void)next;
|
|
|
|
-(void)prev;
|
|
|
|
-(integer)value;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface CvarColorView : View
|
|
|
|
{
|
|
|
|
CvarColor color;
|
|
|
|
}
|
|
|
|
-(id)initWithBounds:(Rect)aRect :(CvarColor)_color;
|
|
|
|
-(void)next;
|
|
|
|
-(void)prev;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface CvarRange : CvarObject
|
2004-02-04 06:56:53 +00:00
|
|
|
{
|
|
|
|
float min, max, step;
|
|
|
|
}
|
|
|
|
-(id)initWithCvar:(string)cvname min:(float)_min max:(float)_max step:(float)_step;
|
|
|
|
-(void)inc;
|
|
|
|
-(void)dec;
|
|
|
|
-(float)value;
|
|
|
|
-(integer)percentage;
|
|
|
|
@end
|
|
|
|
|
2004-02-07 00:09:50 +00:00
|
|
|
@interface CvarRangeView : Group
|
2004-02-04 02:35:57 +00:00
|
|
|
{
|
|
|
|
Text title;
|
|
|
|
Text value;
|
|
|
|
Slider slider;
|
2004-02-04 06:56:53 +00:00
|
|
|
CvarRange range;
|
2004-02-04 02:35:57 +00:00
|
|
|
}
|
2004-02-04 06:56:53 +00:00
|
|
|
-(id)initWithBounds:(Rect)aRect title:(string)_title sliderWidth:(integer)width :(CvarRange)_range;
|
2004-02-04 02:35:57 +00:00
|
|
|
-(void)inc;
|
|
|
|
-(void)dec;
|
|
|
|
@end
|
|
|
|
|
2004-02-14 02:09:18 +00:00
|
|
|
@interface CrosshairCvar : CvarObject
|
|
|
|
-(void) next;
|
|
|
|
-(integer) crosshair;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface CrosshairView : View
|
|
|
|
{
|
|
|
|
CrosshairCvar crosshair;
|
|
|
|
}
|
|
|
|
-(id)initWithBounds:(Rect)aRect :(CrosshairCvar)_crosshair;
|
|
|
|
-(void) next;
|
|
|
|
@end
|
|
|
|
|
2004-11-18 05:08:00 +00:00
|
|
|
@interface ProxyView : View
|
|
|
|
{
|
2005-04-24 15:26:30 +00:00
|
|
|
View title;
|
2004-11-18 05:08:00 +00:00
|
|
|
View view;
|
|
|
|
}
|
2005-04-24 15:26:30 +00:00
|
|
|
-(id)initWithBounds:(Rect)aRect title:(View)aTitle view:(View)aView;
|
2004-11-18 05:08:00 +00:00
|
|
|
@end
|
|
|
|
|
2004-02-14 02:09:18 +00:00
|
|
|
|
2002-08-16 21:54:21 +00:00
|
|
|
@extern void (integer x, integer y) opt_cursor;
|
|
|
|
@extern void (integer x, integer y, integer spacing, string spacechar, string label, string valstr) draw_item;
|
|
|
|
@extern void (integer x, integer y, integer spacing, string label, string valstr) draw_val_item;
|
|
|
|
@extern integer (float min, float max, float val) to_percentage;
|
|
|
|
@extern float (float min, float max, float step, float val, integer cntflag) min_max_cnt;
|
|
|
|
|
|
|
|
#endif//__options_util_h
|