Difference between revisions of "Data - Ship Name"

From Elite Wiki
(Page Created)
 
(Updating BB links)
 
(One intermediate revision by one other user not shown)
Line 40: Line 40:
 
  }
 
  }
 
  );
 
  );
 +
 +
* Consult [[How to tweak OXZ's]] for more information
  
 
== Links ==
 
== Links ==
*[http://aegidian.org/bb/viewtopic.php?f=4&t=16959 Your ship's name on your HUD (Oolite 1.81)] (2014)
+
*[https://bb.oolite.space/viewtopic.php?f=4&t=16959 Your ship's name on your HUD (Oolite 1.81)] (2014)
 
*[[User:Wildeblood|Wildeblood]] Author
 
*[[User:Wildeblood|Wildeblood]] Author
  
 
{{HUD-OXP}}
 
{{HUD-OXP}}

Latest revision as of 01:32, 29 February 2024

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)";
		}
	);

Links