I was bored today so I thought I'd have a go at making a hud for myself.
It is nothing special but I think it looks quite good.


Moderators: winston, another_commander
I'm not sure how to package it for download. If someone with access to the Wiki wishes me to email it to them for inclusion then I will.another_commander wrote:Looks very nice. So... where do we download it from?
The blue background looks darker in game than it does in the images. But I could make it a bit darker.Micha wrote:I would probably make the blue background a bit darker so that the green stands out better
Yes.Smivs wrote:Is the 'cross' the pitch and roll indicator?
Then both yellow dots will move together.Smivs wrote:What happens if you're doing both simultaneously?
Well those lights are just there for decor and as far as I know a HUD image can't be changed depending on Status.Smivs wrote:I was just wondering about those indicator lights on the left panel. Can they be used as the 'Status' light?
Ah, I didn't realise there were two dots, that makes a lot more sense. There's plenty of info on the Wiki about making OXPs here, and we are always happy to answer questions.lave wrote:Yes.Smivs wrote:Is the 'cross' the pitch and roll indicator?
Then both yellow dots will move together.Smivs wrote:What happens if you're doing both simultaneously?
You can always make four HUD plists (let's call them greenhud.plist, yellowhud.plist, redhud.plist and dockedhud.plist), which are basically copies of the same HUD, with the exception that the greenhud.plist main image has a green light drawn on it, the yellowhud.plist image has a yellow one, the redhud.plist image has a red one and the dockedhud.plist image has no light drawn. The four images should reside inside your OXP's Images folder. Then, you can put this inside a file called script.js inside the Config folder of your OXP:lave wrote:Well those lights are just there for decor and as far as I know a HUD image can't be changed depending on Status.Smivs wrote:I was just wondering about those indicator lights on the left panel. Can they be used as the 'Status' light?
I was going to put the status light there actually, but it wouldn't have had the 'glow' around it like the other lights have.
Code: Select all
this.alertConditionChanged = function(currentAlertCondition, previousAlertCondition)
{
var hudToDisplay;
switch (player.alertCondition)
{
case 1:
hudToDisplay = "greenhud.plist";
break;
case 2:
hudToDisplay = "yellowhud.plist";
break;
case 3:
hudToDisplay = "redhud.plist";
break;
default:
hudToDisplay = "dockedhud.plist";
};
player.ship.hud = hudToDisplay;
}
this.startUp = function()
{
player.ship.hud = "dockedhud.plist";
}
Some basic instructions on how to package an oxp, license it, host it, and make it available, might be a good idea for the Wiki ‘OXP - how to’ page, preferably written by someone who knows how to express it succinctly.lave wrote:I'm not sure how to package it for download.
Sure, send it my way if you don't want to host it yourself. I would put it up for download on my box.net account.lave wrote:I'm not sure how to package it for download. If someone with access to the Wiki wishes me to email it to them for inclusion then I will.
In 1.74.2 the comms log overrides were largely untested, and ever so slightly buggy.maik wrote:how about using it for the comms log? It might need more lines though...
I'd like to try that however I have no idea how to write a Java Script file with the .js extention.another_commander wrote:You can always make four HUD plists ..........
The above has not been tested at all, but I hope it would do the trick.Code: Select all
this.alertConditionChanged = function(currentAlertCondition, previousAlertCondition) { var hudToDisplay; switch (player.alertCondition) { case 1: hudToDisplay = "greenhud.plist"; break; case 2: hudToDisplay = "yellowhud.plist"; break; case 3: hudToDisplay = "redhud.plist"; break; default: hudToDisplay = "dockedhud.plist"; }; player.ship.hud = hudToDisplay; } this.startUp = function() { player.ship.hud = "dockedhud.plist"; }
Oh OK thanks.another_commander wrote:You only need to copy the contents of the Code: box and paste them as they are in an empty file in the text editor of your choice. Save that file with the filename script.js inside the Config folder of your HUD OXP and that's pretty much it.