32#import "MyOpenGLView.h"
37@protocol OOHUDBeaconIcon;
40#define SCANNER_CENTRE_X 0
41#define SCANNER_CENTRE_Y -180
42#define SCANNER_SCALE 256
43#define SCANNER_WIDTH 288
44#define SCANNER_HEIGHT 72
46#define SCANNER_MAX_ZOOM 5.0
47#define SCANNER_ZOOM_LEVELS 5
48#define ZOOM_INDICATOR_CENTRE_X 108
49#define ZOOM_INDICATOR_CENTRE_Y -216
50#define ZOOM_INDICATOR_WIDTH 11.0f
51#define ZOOM_INDICATOR_HEIGHT 14.0f
52#define ZOOM_LEVELS_IMAGE @"zoom.png"
54#define COMPASS_IMAGE @"compass.png"
55#define COMPASS_CENTRE_X 132
56#define COMPASS_CENTRE_Y -216
57#define COMPASS_SIZE 56
58#define COMPASS_HALF_SIZE 28
59#define COMPASS_REDDOT_IMAGE @"reddot.png"
60#define COMPASS_GREENDOT_IMAGE @"greendot.png"
61#define COMPASS_DOT_SIZE 16
62#define COMPASS_HALF_DOT_SIZE 8
64#define AEGIS_IMAGE @"aegis.png"
65#define AEGIS_CENTRE_X -132
66#define AEGIS_CENTRE_Y -216
68#define AEGIS_HEIGHT 24
70#define SPEED_BAR_CENTRE_X 200
71#define SPEED_BAR_CENTRE_Y -145
72#define SPEED_BAR_WIDTH 80
73#define SPEED_BAR_HEIGHT 8
74#define SPEED_BAR_DRAW_SURROUND YES
76#define ROLL_BAR_CENTRE_X 200
77#define ROLL_BAR_CENTRE_Y -160
78#define ROLL_BAR_WIDTH 80
79#define ROLL_BAR_HEIGHT 8
80#define ROLL_BAR_DRAW_SURROUND YES
82#define PITCH_BAR_CENTRE_X 200
83#define PITCH_BAR_CENTRE_Y -170
84#define PITCH_BAR_WIDTH 80
85#define PITCH_BAR_HEIGHT 8
86#define PITCH_BAR_DRAW_SURROUND YES
88#define ENERGY_GAUGE_CENTRE_X 200
89#define ENERGY_GAUGE_CENTRE_Y -205
90#define ENERGY_GAUGE_WIDTH 80
91#define ENERGY_GAUGE_HEIGHT 48
92#define ENERGY_GAUGE_DRAW_SURROUND YES
94#define FORWARD_SHIELD_BAR_CENTRE_X -200
95#define FORWARD_SHIELD_BAR_CENTRE_Y -146
96#define FORWARD_SHIELD_BAR_WIDTH 80
97#define FORWARD_SHIELD_BAR_HEIGHT 8
98#define FORWARD_SHIELD_BAR_DRAW_SURROUND YES
100#define AFT_SHIELD_BAR_CENTRE_X -200
101#define AFT_SHIELD_BAR_CENTRE_Y -162
102#define AFT_SHIELD_BAR_WIDTH 80
103#define AFT_SHIELD_BAR_HEIGHT 8
104#define AFT_SHIELD_BAR_DRAW_SURROUND YES
106#define FUEL_BAR_CENTRE_X -200
107#define FUEL_BAR_CENTRE_Y -179
108#define FUEL_BAR_WIDTH 80
109#define FUEL_BAR_HEIGHT 8
111#define WITCHDEST_CENTRE_X -200
112#define WITCHDEST_CENTRE_Y -179
113#define WITCHDEST_WIDTH 80
114#define WITCHDEST_HEIGHT 8
116#define CABIN_TEMP_BAR_CENTRE_X -200
117#define CABIN_TEMP_BAR_CENTRE_Y -189
118#define CABIN_TEMP_BAR_WIDTH 80
119#define CABIN_TEMP_BAR_HEIGHT 8
121#define WEAPON_TEMP_BAR_CENTRE_X -200
122#define WEAPON_TEMP_BAR_CENTRE_Y -199
123#define WEAPON_TEMP_BAR_WIDTH 80
124#define WEAPON_TEMP_BAR_HEIGHT 8
126#define ALTITUDE_BAR_CENTRE_X -200
127#define ALTITUDE_BAR_CENTRE_Y -209
128#define ALTITUDE_BAR_WIDTH 80
129#define ALTITUDE_BAR_HEIGHT 8
131#define MISSILES_DISPLAY_X -228
132#define MISSILES_DISPLAY_Y -224
133#define MISSILES_DISPLAY_SPACING 16
134#define MISSILE_ICON_WIDTH 12
135#define MISSILE_ICON_HEIGHT MISSILE_ICON_WIDTH
137#define PRIMED_DISPLAY_X -144
138#define PRIMED_DISPLAY_Y -256
139#define PRIMED_DISPLAY_WIDTH 12
140#define PRIMED_DISPLAY_HEIGHT 12
142#define ASCTARGET_DISPLAY_X 64
143#define ASCTARGET_DISPLAY_Y -234
144#define ASCTARGET_DISPLAY_WIDTH 10
145#define ASCTARGET_DISPLAY_HEIGHT 10
147#define CLOCK_DISPLAY_X -44
148#define CLOCK_DISPLAY_Y -234
149#define CLOCK_DISPLAY_WIDTH 12
150#define CLOCK_DISPLAY_HEIGHT 12
152#define WEAPONSOFFLINETEXT_DISPLAY_X -175
153#define WEAPONSOFFLINETEXT_DISPLAY_Y 2
154#define WEAPONSOFFLINETEXT_WIDTH 8
155#define WEAPONSOFFLINETEXT_HEIGHT 8
157#define FPSINFO_DISPLAY_X -300
158#define FPSINFO_DISPLAY_Y 220
159#define FPSINFO_DISPLAY_WIDTH 12
160#define FPSINFO_DISPLAY_HEIGHT 12
162#define STATUS_LIGHT_CENTRE_X -108
163#define STATUS_LIGHT_CENTRE_Y -216
164#define STATUS_LIGHT_WIDTH 8
165#define STATUS_LIGHT_HEIGHT 8
167#define HIT_INDICATOR_CENTRE_X 200
168#define HIT_INDICATOR_CENTRE_Y 0
170#define SCOOPSTATUS_CENTRE_X -132
171#define SCOOPSTATUS_CENTRE_Y -152
172#define SCOOPSTATUS_WIDTH 16.0
173#define SCOOPSTATUS_HEIGHT 16.0
175#define MFD_TEXT_WIDTH 10
176#define MFD_TEXT_HEIGHT 10
178#define DIALS_KEY @"dials"
179#define LEGENDS_KEY @"legends"
180#define MFDS_KEY @"multi_function_displays"
183#define X_ORIGIN_KEY @"x_origin"
184#define Y_ORIGIN_KEY @"y_origin"
185#define SPACING_KEY @"spacing"
186#define ALPHA_KEY @"alpha"
187#define SELECTOR_KEY @"selector"
188#define IMAGE_KEY @"image"
189#define WIDTH_KEY @"width"
190#define HEIGHT_KEY @"height"
191#define SPRITE_KEY @"sprite"
192#define DRAW_SURROUND_KEY @"draw_surround"
193#define EQUIPMENT_REQUIRED_KEY @"equipment_required"
194#define ALERT_CONDITIONS_KEY @"alert_conditions"
195#define VIEWSCREEN_KEY @"viewscreen_only"
196#define DIAL_REQUIRED_KEY @"with_dial"
197#define LABELLED_KEY @"labelled"
198#define TEXT_KEY @"text"
199#define RGB_COLOR_KEY @"rgb_color"
200#define COLOR_KEY @"color"
201#define COLOR_KEY_LOW @"color_low"
202#define COLOR_KEY_MEDIUM @"color_medium"
203#define COLOR_KEY_HIGH @"color_high"
204#define COLOR_KEY_CRITICAL @"color_critical"
205#define COLOR_KEY_SURROUND @"color_surround"
206#define N_BARS_KEY @"n_bars"
207#define CUSTOM_DIAL_KEY @"data_source"
209#define ROWS_KEY @"rows"
210#define COLUMNS_KEY @"columns"
211#define ROW_HEIGHT_KEY @"row_height"
212#define ROW_START_KEY @"row_start"
213#define TITLE_KEY @"title"
214#define BACKGROUND_RGBA_KEY @"background_rgba"
215#define OVERALL_ALPHA_KEY @"overall_alpha"
216#define NONLINEAR_SCANNER @"nonlinear_scanner"
218#define Z1 [(MyOpenGLView *)[[player universe] gameView] display_z]
220#define ONE_EIGHTH 0.125
222#define MAX_ACCURACY_RANGE 7000
223#define ACCURACY_PROBABILITY_DECREASE_FACTOR 0.000035f
224#define MIN_PROBABILITY_ACCURACY 0.35f
294- (id) initWithDictionary:(NSDictionary *)hudinfo;
295- (id) initWithDictionary:(NSDictionary *)hudinfo inFile:(NSString *)hudFileName;
297- (void) resetGuis:(NSDictionary *)info;
298- (void) resetGuiPositions;
300- (NSString *) hudName;
301- (void) setHudName:(NSString *)newHudName;
303- (GLfloat) scannerZoom;
304- (void) setScannerZoom:(GLfloat)value;
306- (GLfloat) overallAlpha;
307- (void) setOverallAlpha:(GLfloat)newAlphaValue;
309- (BOOL) reticleTargetSensitive;
310- (void) setReticleTargetSensitive:(BOOL)newReticleTargetSensitiveValue;
311- (NSMutableDictionary *) propertiesReticleTargetSensitive;
314- (void) setHidden:(BOOL)newValue;
318- (BOOL) hasHidden:(NSString *)selectorName;
319- (void) setHiddenSelector:(NSString *)selectorName hidden:(BOOL)hide;
320- (void) clearHiddenSelectors;
322- (BOOL) isCompassActive;
323- (void) setCompassActive:(BOOL)newValue;
326- (void) setDeferredHudName:(NSString *)newDeferredHudName;
327- (NSString *) deferredHudName;
328- (NSString *) crosshairDefinition;
329- (BOOL) setCrosshairDefinition:(NSString *)newDefinition;
331- (void) addLegend:(NSDictionary *)info;
332- (void) addDial:(NSDictionary *)info;
333- (void) addMFD:(NSDictionary *)info;
335- (NSUInteger) mfdCount;
339- (void) refreshLastTransmitter;
341- (void) setLineWidth:(GLfloat)value;
342- (GLfloat) lineWidth;
344- (BOOL) minimalisticScanner;
345- (void) setMinimalisticScanner: (BOOL) newValue;
347+ (Vector) nonlinearScannerScale:(Vector) V Zoom:(GLfloat) zoom Scale:(
double) scale;
348- (BOOL) nonlinearScanner;
349- (void) setNonlinearScanner: (BOOL)newValue;
351- (BOOL) scannerUltraZoom;
352- (void) setScannerUltraZoom: (BOOL)newValue;
354- (
OOColor *) reticleColorForIndex:(NSUInteger)idx;
355- (BOOL) setReticleColorForIndex:(NSUInteger)idx toColor:(
OOColor *)newColor;
360@interface NSString (OODisplayEncoding)
375@protocol OOHUDBeaconIcon <NSObject>
377- (void) oo_drawHUDBeaconIconAt:(NSPoint)where size:(NSSize)size alpha:(GLfloat)alpha z:(GLfloat)z;
382@interface NSString (OOHUDBeaconIcon) <OOHUDBeaconIcon>
void OODrawStringAligned(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz, BOOL rightAlign)
void OODrawHilightedString(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
void OOHUDResetTextEngine(void)
void OODrawStringQuadsAligned(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz, BOOL rightAlign)
void OOStartDrawingStrings(void)
NSRect OORectFromString(NSString *text, GLfloat x, GLfloat y, NSSize siz)
CGFloat OOStringWidthInEm(NSString *text)
void OODrawHilightedPlanetInfo(int gov, int eco, int tec, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
void OODrawString(NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
void OODrawPlanetInfo(int gov, int eco, int tec, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
void OOStopDrawingStrings(void)
@ OO_RETICLE_COLOR_TARGET
@ OO_RETICLE_COLOR_WORMHOLE
@ OO_RETICLE_COLOR_TARGET_SENSITIVE
const char * cStringUsingOoliteEncoding()
const char * cStringUsingOoliteEncodingAndRemapping()
OOCrosshairs * _crosshairs
NSMutableArray * _reticleColors
NSString * deferredHudName
NSString * crosshairDefinition
OOColor * _crosshairColor
OOWeaponType _lastWeaponType
NSMutableSet * _hiddenSelectors
GLfloat _lastOverallAlpha
BOOL cloakIndicatorOnStatusLight
NSMutableArray * mfdArray
NSDictionary * _crosshairOverrides
NSMutableArray * dialArray
BOOL minimalistic_scanner
NSMutableDictionary * propertiesReticleTargetSensitive
BOOL reticleTargetSensitive
NSMutableArray * legendArray