Back to Index Page generated: May 8, 2024, 6:16:03 AM

Expansion Nova Lux HUD

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description The Nova Lux (New Light) HUD is the newest in spaceship cockpits, with all functions and features gathered in a slick futuristic design. It changes color based on conditions (Deepspace/Mass-Locked/Alert). It does, however, not brew coffee. The Nova Lux (New Light) HUD is the newest in spaceship cockpits, with all functions and features gathered in a slick futuristic design. It changes color based on conditions (Deepspace/Mass-Locked/Alert). It does, however, not brew coffee.
Identifier oolite.oxp.Vincentz.NovaLuxHUD oolite.oxp.Vincentz.NovaLuxHUD
Title Nova Lux HUD Nova Lux HUD
Category HUDs HUDs
Author Vincentz Vincentz
Version 1.4 1.4
Tags
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://aegidian.org/bb/viewtopic.php?f=4&t=17330 n/a
Download URL https://wiki.alioth.net/img_auth.php/6/67/Oolite.oxp.Vincentz.NovaLuxHUD.oxz n/a
License Public domain. Public domain.
File Size n/a
Upload date 1692785897

Documentation

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

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 = "novalux_hud";
this.author = "Vincentz";
this.copyright = "2015 Vincentz";
this.license     = "CC BY-NC-SA 3.0"; 

this.startUp = function() {
	this.$hudSelector = worldScripts.hudselector;
	if(this.$hudSelector) {
		this.$hudSelector.$HUDSelectorAddHUD("NovaLux HUD", this.name);
		this.$hudSelector.$HUDSelectorAddHUD("NovaLux HUD Small", this.name + "-small");
    }
}

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