quakeforge/ruamoko/cl_menu/HUD.h
Brian Koropoff 3205f0f672 Added the HUDAnimation class and GIB bindings to use it, as well as other
enhancements and cleanups to the scriptable HUD system.
2003-05-23 04:29:01 +00:00

68 lines
1.2 KiB
Objective-C

#include "Point.h"
#include "Frame.h"
#include "Array.h"
@interface HUDObject : Object
{
Point origin;
BOOL visible;
integer handle;
}
+ (void) initClass;
- (id) initWithComponents: (integer) x : (integer) y;
- (void) free;
- (integer) handle;
- (Point) origin;
- (Point) size;
- (void) setOrigin: (Point) newPoint;
- (void) translate: (Point) addPoint;
- (BOOL) isVisible;
- (void) setVisible: (BOOL) _visible;
- (void) display;
@end
@interface HUDText : HUDObject
{
string text;
}
- (id) initWithComponents: (integer) x :(integer) y :(string) _text;
- (Point) size;
- (string) text;
- (void) setText: (string) _text;
- (void) display;
@end
@interface HUDGraphic : HUDObject
{
QPic picture;
}
- (id) initWithComponents: (integer)x :(integer)y :(string) _file;
- (void) free;
- (Point) size;
- (void) setFile: (string) _file;
- (void) display;
@end
@extern void () HUD_Init;
@extern integer HUDHandleClass;
@interface HUDAnimation : HUDObject
{
Array frames;
integer currentFrame;
float nextFrameTime;
BOOL looping;
}
- (id) initWithComponents: (integer) x :(integer) y;
- (void) free;
- (Point) size;
- (void) addFrame: (Frame) frame;
- (void) changeFrame;
- (void) display;
- (void) start;
- (void) stop;
- (void) setLooping: (BOOL) _looping;
@end