Difference between revisions of "Data - Ship Name"
From Elite Wiki
Cholmondely (talk | contribs) (Page Created) |
Cholmondely (talk | contribs) (→Tweaking your HUD: Added a little) |
||
Line 40: | Line 40: | ||
} | } | ||
); | ); | ||
+ | |||
+ | * Consult [[How to tweak OXZ's]] for more information | ||
== Links == | == Links == |
Revision as of 19:10, 14 May 2021
Ignore the Expansions Manager Description which is wrong!
This OXZ displays your ship's name on your in-flight HUD (some of us like that).
It will automatically find the correct name.
Tweaking your HUD
If your HUD is not compatible, use the following tweak:
Unzip your HUD's oxz (or open your HUD's oxp),
Open your hud.plist file and add this to the "dials" array:-
{ data_source = "playerShipName"; // Ship's name. selector = "drawCustomText:"; alert_conditions = 2; // Green alert only color = "greenColor"; alpha = 0.5; x = 32; y = -40; y_origin = 1; x_origin = -1; height = 20; width = 12; }, { data_source = "playerShipClass"; // Ship's type. selector = "drawCustomText:"; alert_conditions = 2; // Green alert only color = "greenColor"; alpha = 0.5; x = 32; y = -44; y_origin = 1; x_origin = -1; height = 8; width = 8; },
If you want to use this in a HUD OXP you publish, just add this to your manifest file:-
"requires_oxps" = ( { "identifier" = "oolite.hud.data.Wildeblood.ShipName"; "description" = "Data - Ship Name (for playerShipName & playerShipClass data sources)"; } );
- Consult How to tweak OXZ's for more information
Links
- Your ship's name on your HUD (Oolite 1.81) (2014)
- Wildeblood Author