37#define GUI_DEFAULT_COLUMNS 6
38#define GUI_DEFAULT_ROWS 30
40#define GUI_MAX_ROWS 64
41#define GUI_MAX_COLUMNS 40
42#define MAIN_GUI_PIXEL_HEIGHT 480
43#define MAIN_GUI_PIXEL_WIDTH 480
44#define MAIN_GUI_ROW_HEIGHT 16
45#define MAIN_GUI_ROW_WIDTH 16
46#define MAIN_GUI_PIXEL_ROW_START 40
67#define GUI_KEY_OK @"OK"
68#define GUI_KEY_SKIP @"SKIP-ROW"
218- (id)initWithPixelSize:(NSSize)gui_size
219 columns:(
int)gui_cols
221 rowHeight:(
int)gui_row_height
222 rowStart:(
int)gui_row_start
223 title:(NSString*)gui_title;
225- (void)resizeWithPixelSize:(NSSize)gui_size
226 columns:(
int)gui_cols
228 rowHeight:(
int)gui_row_height
229 rowStart:(
int)gui_row_start
230 title:(NSString*)gui_title;
231- (void)resizeTo:(NSSize)gui_size
232 characterHeight:(
int)csize
233 title:(NSString*)gui_title;
237- (unsigned)rowHeight;
241- (void)setTitle:(NSString*)str;
245- (void)setDrawPosition:(
Vector)vector;
254- (void)setAlpha:(GLfloat)an_alpha;
255- (void)setMaxAlpha:(GLfloat)an_alpha;
257- (void)setBackgroundColor:(
OOColor*)color;
260- (void)setTextColor:(
OOColor*)color;
262- (void)setTextCommsColor:(
OOColor*)color;
263- (
OOColor*)colorFromSetting:(NSString*)setting defaultValue:(
OOColor*)def;
264- (void)setGLColorFromSetting:(NSString*)setting defaultValue:(
OOColor*)def alpha:(GLfloat)alpha;
265- (void)setGuiColorSettingFromKey:(NSString*)key color:(
OOColor*)col;
267- (void)setCharacterSize:(NSSize)character_size;
269- (void)setShowAdvancedNavArray:(BOOL)inFlag;
274- (NSString*)keyForRow:(
OOGUIRow)row;
275- (
OOGUIRow)rowForKey:(NSString*)key;
277- (BOOL)setSelectedRow:(
OOGUIRow)row;
278- (BOOL)setNextRow:(
int)direction;
284- (void)reportSelectedRow:(
int)row;
286- (void)setShowTextCursor:(BOOL)yesno;
287- (void)setCurrentRow:(
OOGUIRow)value;
290- (void)setSelectableRange:(NSRange)range;
293- (void)overrideTabs:(
OOGUITabSettings)stops from:(NSString*)setting length:(NSUInteger)len;
296- (void)clearAndKeepBackground:(BOOL)keepBackground;
298- (void)setKey:(NSString*)str forRow:(
OOGUIRow)row;
299- (void)setText:(NSString*)str forRow:(
OOGUIRow)row;
301- (NSString*)reflowTextForMFD:(NSString*)input;
302- (
OOGUIRow)addLongText:(NSString*)str
305- (void)printLongText:(NSString*)str
308 fadeTime:(
float)text_fade
309 key:(NSString*)text_key
310 addToArray:(NSMutableArray*)text_array;
311- (void)printLineNoScroll:(NSString*)str
314 fadeTime:(
float)text_fade
315 key:(NSString*)text_key
316 addToArray:(NSMutableArray*)text_array;
318- (void)setArray:(NSArray*)arr forRow:(
OOGUIRow)row;
320- (void)insertItemsFromArray:(NSArray*)items
321 withKeys:(NSArray*)item_keys
327- (void)scrollUp:(
int)how_much;
338- (BOOL)setBackgroundTextureDescriptor:(NSDictionary*)descriptor;
339- (BOOL)setForegroundTextureDescriptor:(NSDictionary*)descriptor;
340- (BOOL)setBackgroundTextureKey:(NSString*)key;
341- (BOOL)setForegroundTextureKey:(NSString*)key;
343- (BOOL)preloadGUITexture:(NSDictionary*)descriptor;
357- (NSDictionary*)textureDescriptorFromJSValue:(JSValue)value inContext:(JSContext*)context callerDescription:(NSString*)callerDescription;
359- (NSDictionary*)textureDescriptorFromJSValue:(jsval)value inContext:(JSContext*)context callerDescription:(NSString*)callerDescription;
367- (
int)drawGUI:(GLfloat)alpha drawCursor:(BOOL)drawCursor;
369- (void)setStatusPage:(NSInteger)pageNum;
374- (
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
NSString * selectedRowText()
OOGUIBackgroundSpecial backgroundSpecial
NSDictionary * userSettings()
OOGUIAlignment rowAlignment[GUI_MAX_ROWS]
NSString * selectedRowKey()
OOGUITabSettings tabStops
BOOL setLastSelectableRow()
unsigned pixel_row_height
BOOL setFirstSelectableRow()
NSDictionary * guiUserSettings
BOOL showAdvancedNavArray
NSPoint rowPosition[GUI_MAX_ROWS]
OOColor * backgroundColor
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque