|
Oolite
|
import "HeadUpDisplay.h"import "GameController.h"import "GuiDisplayGen.h"import "OOCollectionExtractors.h"import "OOColor.h"import "OOConstToString.h"import "OOCrosshairs.h"import "OOEncodingConverter.h"import "OOFoundation.h"import "OOJavaScriptEngine.h"import "OOJoystickManager.h"import "OOPlanetEntity.h"import "OOPolygonSprite.h"import "OOQuiriumCascadeEntity.h"import "OOStringExpander.h"import "OOStringParsing.h"import "OOSunEntity.h"import "OOTexture.h"import "OOTextureSprite.h"import "OOTrumble.h"import "OOVisualEffectEntity.h"import "OOWaypointEntity.h"import "PlayerEntity.h"import "ResourceManager.h"import "StationEntity.h"import "Universe.h"Go to the source code of this file.
Classes | |
| struct | CachedInfo |
| category | HeadUpDisplay(Private) |
Macros | |
| #define | ONE_SIXTEENTH 0.0625 |
| #define | ONE_SIXTYFOURTH 0.015625 |
| #define | DEFAULT_OVERALL_ALPHA 0.75 |
| #define | GLYPH_SCALE_FACTOR 0.13 |
| #define | IDENTIFY_SCANNER_LOLLIPOPS (0 && OOLITE_DEBUG) |
| #define | NOT_DEFINED INFINITY |
| #define | WIDGET_INFO 0 |
| #define | WIDGET_CACHE 1 |
| #define | WIDGET_SELECTOR 2 |
| #define | WIDGET_SELECTOR_NAME 3 |
| #define | DO_SET_COLOR(t, d) |
| #define | SET_COLOR(d) |
| #define | SET_COLOR_LOW(d) |
| #define | SET_COLOR_MEDIUM(d) |
| #define | SET_COLOR_HIGH(d) |
| #define | SET_COLOR_CRITICAL(d) |
| #define | SET_COLOR_SURROUND(d) |
Enumerations | |
| enum | { kFontTextureOptions = kOOTextureMinFilterMipMap | kOOTextureMagFilterLinear | kOOTextureNoShrink | kOOTextureAlphaMask } |
Functions | |
| OOINLINE float | useDefined (float val, float validVal) |
| static void | DrawSpecialOval (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step, GLfloat *color4v) |
| static void | SetGLColourFromInfo (NSDictionary *info, NSString *key, const GLfloat defaultColor[4], GLfloat alpha) |
| static void | GetRGBAArrayFromInfo (NSDictionary *info, GLfloat ioColor[4]) |
| static void | hudDrawIndicatorAt (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat amount) |
| static void | hudDrawMarkerAt (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat amount) |
| static void | hudDrawBarAt (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat amount) |
| static void | hudDrawSurroundAt (GLfloat x, GLfloat y, GLfloat z, NSSize siz) |
| static void | hudDrawStatusIconAt (int x, int y, int z, NSSize siz) |
| static void | hudDrawReticleOnTarget (Entity *target, PlayerEntity *player1, GLfloat z1, GLfloat alpha, BOOL reticleTargetSensitive, NSMutableDictionary *propertiesReticleTargetSensitive, BOOL colourFromScannerColour, BOOL showText, NSDictionary *info, NSMutableArray *reticleColors) |
| static void | hudDrawWaypoint (OOWaypointEntity *waypoint, PlayerEntity *player1, GLfloat z1, GLfloat alpha, BOOL selected, GLfloat scale) |
| static void | hudRotateViewpointForVirtualDepth (PlayerEntity *player1, Vector p1) |
| static void | drawScannerGrid (GLfloat x, GLfloat y, GLfloat z, NSSize siz, int v_dir, GLfloat thickness, GLfloat zoom, BOOL nonlinear, BOOL minimalistic) |
| static GLfloat | nonlinearScannerFunc (GLfloat distance, GLfloat zoom, GLfloat scale) |
| static void | GLDrawNonlinearCascadeWeapon (GLfloat x, GLfloat y, GLfloat z, NSSize siz, Vector centre, GLfloat radius, GLfloat zoom, GLfloat alpha) |
Variables | |
| static NSArray * | sCurrentDrawItem |
| static OOTexture * | sFontTexture = nil |
| static OOEncodingConverter * | sEncodingCoverter = nil |
| static NSString * | distance_unit |
| static const GLfloat | red_color [4] = { 1.0, 0.0, 0.0, 1.0 } |
| static const GLfloat | redplus_color [4] = { 1.0, 0.0, 0.5, 1.0 } |
| static const GLfloat | yellow_color [4] = { 1.0, 1.0, 0.0, 1.0 } |
| static const GLfloat | green_color [4] = { 0.0, 1.0, 0.0, 1.0 } |
| static const GLfloat | darkgreen_color [4] = { 0.0, 0.75, 0.0, 1.0 } |
| static const GLfloat | blue_color [4] = { 0.0, 0.0, 1.0, 1.0 } |
| static const GLfloat | black_color [4] = { 0.0, 0.0, 0.0, 1.0 } |
| static const GLfloat | lightgray_color [4] = { 0.25, 0.25, 0.25, 1.0 } |
| static float | sGlyphWidths [256] |
| static float | sF6KernGovt |
| static float | sF6KernTL |
| static BOOL | _compassUpdated |
| static NSString *const | kDefaultMissileIconKey = @"oolite-default-missile-icon" |
| static NSString *const | kDefaultMineIconKey = @"oolite-default-mine-icon" |
| static const GLfloat | kOutlineWidth = 0.5f |
| #define DEFAULT_OVERALL_ALPHA 0.75 |
Definition at line 54 of file HeadUpDisplay.m.
| #define DO_SET_COLOR | ( | t, | |
| d ) |
Definition at line 65 of file HeadUpDisplay.m.
| #define GLYPH_SCALE_FACTOR 0.13 |
Definition at line 55 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OOStringWidthInEm.
| #define IDENTIFY_SCANNER_LOLLIPOPS (0 && OOLITE_DEBUG) |
Definition at line 56 of file HeadUpDisplay.m.
| #define NOT_DEFINED INFINITY |
Definition at line 58 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawSurroundInternal:color:, and useDefined().
| #define ONE_SIXTEENTH 0.0625 |
Definition at line 52 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::drawCharacterQuad.
| #define ONE_SIXTYFOURTH 0.015625 |
Definition at line 53 of file HeadUpDisplay.m.
| #define SET_COLOR | ( | d | ) |
Definition at line 66 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawCustomIndicator:, HeadUpDisplay(Private)::drawCustomText:, HeadUpDisplay(Private)::drawLegend:, HeadUpDisplay(Private)::drawPitchBar:, HeadUpDisplay(Private)::drawRollBar:, HeadUpDisplay(Private)::drawWitchspaceDestination:, and HeadUpDisplay(Private)::drawYawBar:.
| #define SET_COLOR_CRITICAL | ( | d | ) |
Definition at line 70 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAltitudeBar:, and HeadUpDisplay(Private)::drawCabinTempBar:.
| #define SET_COLOR_HIGH | ( | d | ) |
Definition at line 69 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay(Private)::drawSpeedBar:, and HeadUpDisplay(Private)::drawWeaponTempBar:.
| #define SET_COLOR_LOW | ( | d | ) |
Definition at line 67 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay(Private)::drawSpeedBar:, and HeadUpDisplay(Private)::drawWeaponTempBar:.
| #define SET_COLOR_MEDIUM | ( | d | ) |
Definition at line 68 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay(Private)::drawSpeedBar:, and HeadUpDisplay(Private)::drawWeaponTempBar:.
| #define SET_COLOR_SURROUND | ( | d | ) |
Definition at line 71 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawCustomIndicator:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay(Private)::drawPitchBar:, HeadUpDisplay(Private)::drawRollBar:, HeadUpDisplay(Private)::drawSpeedBar:, HeadUpDisplay(Private)::drawWeaponTempBar:, and HeadUpDisplay(Private)::drawYawBar:.
| #define WIDGET_CACHE 1 |
Definition at line 60 of file HeadUpDisplay.m.
| #define WIDGET_INFO 0 |
Definition at line 59 of file HeadUpDisplay.m.
| #define WIDGET_SELECTOR 2 |
Definition at line 61 of file HeadUpDisplay.m.
| #define WIDGET_SELECTOR_NAME 3 |
Definition at line 62 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawHUDItem:.
| anonymous enum |
| Enumerator | |
|---|---|
| kFontTextureOptions | |
Definition at line 108 of file HeadUpDisplay.m.
|
static |
|
static |
|
static |
Definition at line 4152 of file HeadUpDisplay.m.
References ALPHA_KEY, OOColor::colorWithDescription:, count, OOColor::getRed:green:blue:alpha:, and nil.
Referenced by HeadUpDisplay(Private)::drawASCTarget:, HeadUpDisplay(Private)::drawClock:, HeadUpDisplay(Private)::drawCompass:, HeadUpDisplay(Private)::drawFPSInfoCounter:, HeadUpDisplay::drawPrimedEquipment:, HeadUpDisplay(Private)::drawScanner:, HeadUpDisplay(Private)::drawScannerZoomIndicator:, and HeadUpDisplay(Private)::drawWeaponsOfflineText:.
|
static |
|
static |
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay(Private)::drawSpeedBar:, and HeadUpDisplay(Private)::drawWeaponTempBar:.
|
static |
Referenced by HeadUpDisplay(Private)::drawCustomIndicator:, HeadUpDisplay(Private)::drawPitchBar:, HeadUpDisplay(Private)::drawRollBar:, and HeadUpDisplay(Private)::drawYawBar:.
|
static |
|
static |
Referenced by HeadUpDisplay(Private)::drawSecondaryTargetReticle:, and HeadUpDisplay(Private)::drawTargetReticle:.
Referenced by HeadUpDisplay(Private)::drawCustomLight:, and HeadUpDisplay(Private)::drawStatusLight:.
|
static |
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawCustomIndicator:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay(Private)::drawPitchBar:, HeadUpDisplay(Private)::drawRollBar:, HeadUpDisplay(Private)::drawSpeedBar:, HeadUpDisplay(Private)::drawSurroundInternal:color:, HeadUpDisplay(Private)::drawWeaponTempBar:, and HeadUpDisplay(Private)::drawYawBar:.
|
static |
|
static |
Referenced by HeadUpDisplay::hudDrawReticleOnTarget, and HeadUpDisplay::hudDrawWaypoint.
|
static |
References distance().
Referenced by HeadUpDisplay(Private)::drawScanner:, HeadUpDisplay::drawScannerGrid, and HeadUpDisplay::nonlinearScannerScale:Zoom:Scale:.
|
static |
Definition at line 4135 of file HeadUpDisplay.m.
References OOColor::colorWithDescription:, OOColor::getRed:green:blue:alpha:, and nil.
| OOINLINE float useDefined | ( | float | val, |
| float | validVal ) |
Definition at line 80 of file HeadUpDisplay.m.
References NOT_DEFINED, and OOINLINE.
Referenced by HeadUpDisplay(Private)::drawAegis:, HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawASCTarget:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawClock:, HeadUpDisplay(Private)::drawCompass:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawCustomImage:, HeadUpDisplay(Private)::drawCustomIndicator:, HeadUpDisplay(Private)::drawCustomLight:, HeadUpDisplay(Private)::drawCustomText:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFPSInfoCounter:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay(Private)::drawLegend:, HeadUpDisplay(Private)::drawMissileDisplay:, HeadUpDisplay(Private)::drawMultiFunctionDisplay:withText:asIndex:, HeadUpDisplay(Private)::drawPitchBar:, HeadUpDisplay::drawPrimedEquipment:, HeadUpDisplay(Private)::drawRollBar:, HeadUpDisplay(Private)::drawScanner:, HeadUpDisplay(Private)::drawScannerZoomIndicator:, HeadUpDisplay(Private)::drawScoopStatus:, HeadUpDisplay(Private)::drawSpeedBar:, HeadUpDisplay(Private)::drawStatusLight:, HeadUpDisplay(Private)::drawStickSensitivityIndicator:, HeadUpDisplay(Private)::drawSurroundInternal:color:, HeadUpDisplay(Private)::drawWeaponsOfflineText:, HeadUpDisplay(Private)::drawWeaponTempBar:, HeadUpDisplay(Private)::drawWitchspaceDestination:, and HeadUpDisplay(Private)::drawYawBar:.
|
static |
Definition at line 196 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawCompass:, and HeadUpDisplay(Private)::drawDials.
|
static |
Definition at line 190 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::drawIconForMissile:selected:status:x:y:width:height:alpha:, and HeadUpDisplay(Private)::drawStickSensitivityIndicator:.
|
static |
Definition at line 189 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawScanner:, HeadUpDisplay(Private)::drawStatusLight:, and HeadUpDisplay::hudDrawWaypoint.
|
static |
Definition at line 188 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawScoopStatus:.
|
static |
Definition at line 106 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::initWithDictionary:inFile:.
|
static |
Definition at line 187 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawCustomIndicator:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay::drawIconForMissile:selected:status:x:y:width:height:alpha:, HeadUpDisplay(Private)::drawLegend:, HeadUpDisplay(Private)::drawMissileDisplay:, HeadUpDisplay(Private)::drawPitchBar:, HeadUpDisplay(Private)::drawRollBar:, HeadUpDisplay(Private)::drawScoopStatus:, HeadUpDisplay(Private)::drawSpeedBar:, HeadUpDisplay(Private)::drawStatusLight:, HeadUpDisplay(Private)::drawStickSensitivityIndicator:, HeadUpDisplay(Private)::drawWeaponTempBar:, HeadUpDisplay(Private)::drawWitchspaceDestination:, HeadUpDisplay(Private)::drawYawBar:, and HeadUpDisplay::hudDrawReticleOnTarget.
|
static |
Definition at line 2308 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::IconForMissileRole.
|
static |
Definition at line 2307 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::drawIconForEmptyPylonAtX:y:width:height:alpha:, and HeadUpDisplay::IconForMissileRole.
|
static |
Definition at line 2309 of file HeadUpDisplay.m.
|
static |
Definition at line 191 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::drawIconForEmptyPylonAtX:y:width:height:alpha:, and HeadUpDisplay(Private)::drawStickSensitivityIndicator:.
|
static |
Definition at line 184 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay::drawIconForMissile:selected:status:x:y:width:height:alpha:, HeadUpDisplay(Private)::drawMissileDisplay:, HeadUpDisplay(Private)::drawScoopStatus:, HeadUpDisplay(Private)::drawSpeedBar:, HeadUpDisplay(Private)::drawStatusLight:, and HeadUpDisplay(Private)::drawWeaponTempBar:.
|
static |
Definition at line 185 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAltitudeBar:, and HeadUpDisplay(Private)::drawCabinTempBar:.
|
static |
Definition at line 78 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawDials, HeadUpDisplay(Private)::drawHUDItem:, HeadUpDisplay(Private)::drawLegends, and HeadUpDisplay(Private)::drawMFDs.
|
static |
Definition at line 105 of file HeadUpDisplay.m.
Referenced by NSString(OODisplayEncoding)::cStringUsingOoliteEncoding, NSString(OODisplayEncoding)::cStringUsingOoliteEncodingAndRemapping, HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OOHUDResetTextEngine(void).
|
static |
Definition at line 194 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OODrawPlanetInfo.
|
static |
Definition at line 195 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OODrawPlanetInfo.
Definition at line 104 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), HeadUpDisplay::initWithDictionary:inFile:, and HeadUpDisplay::OOHUDResetTextEngine(void).
|
static |
Definition at line 193 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::drawCharacterQuad, HeadUpDisplay::InitTextEngine(void), HeadUpDisplay::OODrawHilightedPlanetInfo, and HeadUpDisplay::OORectFromString.
|
static |
Definition at line 186 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawAftShieldBar:, HeadUpDisplay(Private)::drawAltitudeBar:, HeadUpDisplay(Private)::drawCabinTempBar:, HeadUpDisplay(Private)::drawCustomBar:, HeadUpDisplay(Private)::drawCustomIndicator:, HeadUpDisplay(Private)::drawCustomText:, HeadUpDisplay(Private)::drawEnergyGauge:, HeadUpDisplay(Private)::drawForwardShieldBar:, HeadUpDisplay(Private)::drawFuelBar:, HeadUpDisplay::drawIconForMissile:selected:status:x:y:width:height:alpha:, HeadUpDisplay(Private)::drawMissileDisplay:, HeadUpDisplay(Private)::drawPitchBar:, HeadUpDisplay(Private)::drawRollBar:, HeadUpDisplay(Private)::drawSpeedBar:, HeadUpDisplay(Private)::drawStatusLight:, HeadUpDisplay(Private)::drawWeaponTempBar:, and HeadUpDisplay(Private)::drawYawBar:.