34#define GUI_DEFAULT_COLUMNS 6
35#define GUI_DEFAULT_ROWS 30
37#define GUI_MAX_ROWS 64
38#define GUI_MAX_COLUMNS 40
39#define MAIN_GUI_PIXEL_HEIGHT 480
40#define MAIN_GUI_PIXEL_WIDTH 480
41#define MAIN_GUI_ROW_HEIGHT 16
42#define MAIN_GUI_ROW_WIDTH 16
43#define MAIN_GUI_PIXEL_ROW_START 40
67#define GUI_KEY_OK @"OK"
68#define GUI_KEY_SKIP @"SKIP-ROW"
223- (id) initWithPixelSize:(NSSize)gui_size
224 columns:(
int)gui_cols
226 rowHeight:(
int)gui_row_height
227 rowStart:(
int)gui_row_start
228 title:(NSString*)gui_title;
230- (void) resizeWithPixelSize:(NSSize)gui_size
231 columns:(
int)gui_cols
233 rowHeight:(
int)gui_row_height
234 rowStart:(
int)gui_row_start
235 title:(NSString*) gui_title;
236- (void) resizeTo:(NSSize)gui_size
237 characterHeight:(
int)csize
238 title:(NSString*)gui_title;
242- (unsigned)rowHeight;
246- (void) setTitle:(NSString *)str;
250- (void) setDrawPosition:(Vector) vector;
251- (Vector) drawPosition;
253- (NSDictionary *) userSettings;
256- (void) stopFadeOuts;
259- (void) setAlpha:(GLfloat) an_alpha;
260- (void) setMaxAlpha:(GLfloat) an_alpha;
262- (void) setBackgroundColor:(
OOColor*) color;
265- (void) setTextColor:(
OOColor*) color;
267- (void) setTextCommsColor:(
OOColor*) color;
268- (
OOColor *) colorFromSetting:(NSString *)setting defaultValue:(
OOColor *)def;
269- (void) setGLColorFromSetting:(NSString *)setting defaultValue:(
OOColor *)def alpha:(GLfloat)alpha;
270- (void) setGuiColorSettingFromKey:(NSString *) key color:(
OOColor *)col;
272- (void) setCharacterSize:(NSSize) character_size;
274- (void) setShowAdvancedNavArray:(BOOL)inFlag;
279- (NSString *) keyForRow:(
OOGUIRow)row;
280- (
OOGUIRow) rowForKey:(NSString*)key;
282- (BOOL) setSelectedRow:(
OOGUIRow)row;
283- (BOOL) setNextRow:(
int) direction;
284- (BOOL) setFirstSelectableRow;
285- (BOOL) setLastSelectableRow;
286- (void) setNoSelectedRow;
287- (NSString *) selectedRowText;
288- (NSString *) selectedRowKey;
290- (void) setShowTextCursor:(BOOL) yesno;
291- (void) setCurrentRow:(
OOGUIRow) value;
293- (NSRange) selectableRange;
294- (void) setSelectableRange:(NSRange) range;
297- (void) overrideTabs:(
OOGUITabSettings)stops from:(NSString *)setting length:(NSUInteger)len;
301- (void) clearAndKeepBackground:(BOOL)keepBackground;
303- (void) setKey:(NSString *)str forRow:(
OOGUIRow)row;
304- (void) setText:(NSString *)str forRow:(
OOGUIRow)row;
306- (NSString *) reflowTextForMFD:(NSString *)input;
307- (
OOGUIRow) addLongText:(NSString *)str
310- (void) printLongText:(NSString *)str
313 fadeTime:(
float)text_fade
314 key:(NSString *)text_key
315 addToArray:(NSMutableArray *)text_array;
316- (void) printLineNoScroll:(NSString *)str
319 fadeTime:(
float)text_fade
320 key:(NSString *)text_key
321 addToArray:(NSMutableArray *)text_array;
323- (void) setArray:(NSArray *)arr forRow:(
OOGUIRow)row;
325- (void) insertItemsFromArray:(NSArray *)items
326 withKeys:(NSArray *)item_keys
332- (void) scrollUp:(
int) how_much;
343- (BOOL) setBackgroundTextureDescriptor:(NSDictionary *)descriptor;
344- (BOOL) setForegroundTextureDescriptor:(NSDictionary *)descriptor;
345- (BOOL) setBackgroundTextureKey:(NSString *)key;
346- (BOOL) setForegroundTextureKey:(NSString *)key;
348- (BOOL) preloadGUITexture:(NSDictionary *)descriptor;
361- (NSDictionary *) textureDescriptorFromJSValue:(jsval)value inContext:(JSContext *)context callerDescription:(NSString *)callerDescription;
363- (void) clearBackground;
365- (void) leaveLastLine;
366- (NSArray *) getLastLines;
368- (
int) drawGUI:(GLfloat) alpha drawCursor:(BOOL) drawCursor;
369- (void) drawGUIBackground;
370- (void) setStatusPage:(NSInteger) pageNum;
371- (NSUInteger) statusPage;
372- (void) refreshStarChart;
373- (void) setStarChartTitle;
375- (
OOSystemID) targetNextFoundSystem:(
int)direction;
static NSString *const kGuiDockingReportColor
static NSString *const kGuiInterfaceTabs
static NSString *const kGuiChartTechColor
static NSString *const kGuiShipyardEntryColor
static NSString *const kGuiDockingContinueColor
static NSString *const kGuiTextInputCursorColor
static NSString *const kGuiEquipmentOptionColor
static NSString *const kGuiChartCrosshairColor
static NSString *const kGuiStatusEquipmentOkColor
static NSString *const kGuiManifestNoScrollColor
static NSString *const kGuiEquipmentLaserColor
static NSString *const kGuiShipyardHeadingColor
static NSString *const kGuiChartMatchBoxColor
static NSString *const kGuiInterfaceHeadingColor
static NSString *const kGuiInterfaceEntryColor
static NSString *const kGuiDockingSummaryColor
static NSString *const kGuiEquipmentUnavailableColor
static NSString *const kGuiStatusPrioritiseDamaged
static NSString *const kGuiChartGovernmentUColor
static NSString *const kGuiChartConnectionColor
static NSString *const kGuiManifestTabs
static NSString *const kGuiSystemdataTabs
static NSString *const kGuiStatusEquipmentHeadingColor
static NSString *const kGuiChartRouteShortColor
static NSString *const kGuiChartCurrentJumpEndColor
static NSString *const kGuiSelectedRowColor
@ GUI_BACKGROUND_SPECIAL_CUSTOM_ANA_QUICKEST
@ GUI_BACKGROUND_SPECIAL_SHORT_ANA_SHORTEST
@ GUI_BACKGROUND_SPECIAL_LONG
@ GUI_BACKGROUND_SPECIAL_LONG_ANA_SHORTEST
@ GUI_BACKGROUND_SPECIAL_SHORT
@ GUI_BACKGROUND_SPECIAL_NONE
@ GUI_BACKGROUND_SPECIAL_SHORT_ANA_QUICKEST
@ GUI_BACKGROUND_SPECIAL_LONG_ANA_QUICKEST
@ GUI_BACKGROUND_SPECIAL_CUSTOM
@ GUI_BACKGROUND_SPECIAL_CUSTOM_ANA_SHORTEST
static NSString *const kGuiMarketCommodityColor
OOGUITabStop OOGUITabSettings[GUI_MAX_COLUMNS]
static NSString *const kGuiShipyardNoshipColor
static NSString *const kGuiDefaultTextColor
static NSString *const kGuiChartCursorColor
static NSString *const kGuiEquipmentCashColor
static NSString *const kGuiChartLabelScale
static NSString *const kGuiChartLabelColor
static NSString *const kGuiMarketDescriptionColor
static NSString *const kGuiChartMatchLabelColor
static NSString *const kGuiSelectedRowBackgroundColor
static NSString *const kGuiEquipmentDescriptionColor
static NSString *const kGuiShipyardTabs
static NSString *const kGuiManifestScrollColor
static NSString *const kGuiShipyardTradeinColor
static NSString *const kGuiEquipmentTabs
static NSString *const kGuiSystemdataFactsColor
static NSString *const kGuiChartCircleScale
static NSString *const kGuiMarketScrollColor
static NSString *const kGuiChartInfoMarkerColor
static NSString *const kGuiInterfaceDescriptionColor
static NSString *const kGuiMarketTabs
static NSString *const kGuiEquipmentRepairColor
static NSString *const kGuiMarketHeadingColor
static NSString *const kGuiShipyardDescriptionColor
static NSString *const kGuiMarketContractedColor
static NSString *const kGuiScreenTitleColor
static NSString *const kGuiManifestSubheadColor
static NSString *const kGuiShipyardScrollColor
static NSString *const kGuiChartLabelReachableColor
static NSString *const kGuiStatusEquipmentDamagedColor
static NSString *const kGuiScreenDividerColor
static NSString *const kGuiSystemdataDescriptionColor
static NSString *const kGuiChartRouteQuickColor
static NSString *const kGuiChartCurrentJumpStartColor
static NSString *const kGuiInterfaceScrollColor
static NSString *const kGuiChartTraveltimeTabs
static NSString *const kGuiMarketFilterInfoColor
static NSString *const kGuiStatusEquipmentScrollColor
static NSString *const kGuiStatusTabs
static NSString *const kGuiManifestEntryColor
static NSString *const kGuiChartEconomyUColor
static NSString *const kGuiEquipmentScrollColor
static NSString *const kGuiMarketCashColor
static NSString *const kGuiChartRangeColor
static NSString *const kGuiStatusDataColor
static NSString *const kGuiStatusShipnameColor
static NSString *const kGuiInterfaceNoneColor
static NSString *const kGuiEquipmentLaserFittedColor
static NSString *const kGuiMarketFilteredAllColor
OOTextureSprite * foregroundSprite
NSMutableArray * rowColor
float rowFadeTime[GUI_MAX_ROWS]
OOTextureSprite * backgroundSprite
OOGUIBackgroundSpecial backgroundSpecial
OOGUIAlignment rowAlignment[GUI_MAX_ROWS]
OOGUITabSettings tabStops
unsigned pixel_row_height
NSDictionary * guiUserSettings
BOOL showAdvancedNavArray
NSPoint rowPosition[GUI_MAX_ROWS]
OOColor * backgroundColor
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque