Back to Index Page generated: Dec 20, 2024, 7:22:10 AM

Expansion Smart HUD

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description The Smart HUD is a neatly laid out, fully featured HUD, with information grouped logically around the main scanner. The Smart HUD is a neatly laid out, fully featured HUD, with information grouped logically around the main scanner.
Identifier oolite.oxp.smivs.SmartHUD oolite.oxp.smivs.SmartHUD
Title Smart HUD Smart HUD
Category HUDs HUDs
Author Smivs Smivs
Version 1.1 1.1
Tags Balance=green Balance=green
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://wiki.alioth.net/index.php?title=SmartHUD n/a
Download URL https://wiki.alioth.net/img_auth.php/6/67/SmartHUD_v1.1.oxz n/a
License CC-BY-NC-SA 3.0 CC-BY-NC-SA 3.0
File Size n/a
Upload date 1692786722

Documentation

Also read http://wiki.alioth.net/index.php/Smart%20HUD

readme.rtf

Readme – Smart HUD_v1.1

The Smart HUD is a neatly laid out HUD, with information grouped logically around the main scanner.
On the left side of the main scanner are the speed, pitch and roll, fuel, cabin temperature and altimeter gauges. The Compass and 'Destination' marker, and Scanner Zoom are also here, and Comms messages will be displayed above these gauges.
Laser temperature, shields and Energy have been grouped together on the right side. The Console messages are also on the right side, above the gauges, and the scoop indicator, status light and joystick sensitivity indicator also appear here. The Aegis indicator is bottom-right.
The Clock is centred at the top of the HUD, and 'Primed Equipment' is listed below the scanner to the right, allowing room for up to the maximum of 16 pylons at the bottom left.
If a scanner targeting enhancement is fitted the reticule will turn red when the target is centered.
The 'Weapons Offline' indicator is below the crosshairs.
There are two Multi-function Displays, in the top left and right corners.

Code for Non-linear scanner, and Scanner Ultra-zoom is included but commented out. To activate these functions you should open the hud.plist in the Config folder, and remove the comment marks (//). This can be found at the bottom of the plist.


Smart HUD is compatible with HUD Selector.


This work is licensed under the Creative Commons Attribution Noncommercial-Share Alike 3.0 Unported License. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San
Francisco, California, 94105, USA.


The OXZ was developed by Smivs.



Equipment

This expansion declares no equipment.

Ships

This expansion declares no ships.

Models

This expansion declares no models.

Scripts

Path
Config/script.js
"use strict";

this.name = "smart_hud";
this.author = "smivs";
this.copyright = "2015 smivs";
this.license     = "CC BY-NC-SA 3.0"; 

this.startUp = function() {
	this.$hudSelector = worldScripts.hudselector;
	if(this.$hudSelector) {
		this.$hudSelector.$HUDSelectorAddHUD("Smart HUD", this.name);
		this.$hudSelector.$HUDSelectorAddHUD("Smart HUD Widescreen", this.name + "-ws");
	}
}

this.startUpComplete = function() {
	this.playerBoughtNewShip(player.ship);
}

this.playerBoughtNewShip = function(ship) {
	if(!this.$hudSelector && (player.ship.hud === "hud.plist"))
		player.ship.hud =  this.name + ".plist";
}