Custom HUD
Moderators: winston, another_commander
Custom HUD
I am currently attempting to create a custom HUD and not having much luck. I thought it would be as easy as creating a new folder customHud.oxp, and then a further two, Images and Config. Then placing the new background HUD image in the image folder and editing the HUD.plist two move around and generally tweak the HUD elements, scanner etc.
I suspect that I have underestimated the requirements for creating a new HUD as all I am achieving is a new background image but I am unable to move the individual HUD elements by editing the hud.plist file. I have attempted to google the process for custom HUDs but have found nothing. Any help will be grate
I suspect that I have underestimated the requirements for creating a new HUD as all I am achieving is a new background image but I am unable to move the individual HUD elements by editing the hud.plist file. I have attempted to google the process for custom HUDs but have found nothing. Any help will be grate
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
In principle the two steps you mentioned should be exactly what is required.
Are you re-starting Oolite while holding SHIFT? This is required in order to make changes in your plist appear in game. If you don't press SHIFT Oolite just uses the old content of hud.plist, which it takes from its cache.
Also have a look into your log-file. There you should be informed, if there are any problems with your edited hud.plist.
Are you re-starting Oolite while holding SHIFT? This is required in order to make changes in your plist appear in game. If you don't press SHIFT Oolite just uses the old content of hud.plist, which it takes from its cache.
Also have a look into your log-file. There you should be informed, if there are any problems with your edited hud.plist.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Start with everything linked from the Writing OXPs-section of the Oolite FAQ.
All you need to know about the scripting model is referenced in the Oolite_scripting category index. Personally I keep open that page all the time when writing OXPs, so that I can quickly find any information I need.
All you need to know about the scripting model is referenced in the Oolite_scripting category index. Personally I keep open that page all the time when writing OXPs, so that I can quickly find any information I need.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
- ClymAngus
- ---- E L I T E ----
- Posts: 2514
- Joined: Tue Jul 08, 2008 12:31 am
- Location: London England
- Contact:
Hmm not that I've found, you can vary the sizing of the output (have more of a bar that a colomn, and certain bits can be combined to give a multi functional display. The problem is that the stats bars are always written over any backing image (or images) you build into the hud.Commander McLane wrote:Can't help you on this one, sorry.
Other HUD-designers? Any answer?
There might be a clever "convert to piechart option" (I mean we are dealing with raw data here) but I have yet to find it.
So here's my first attempt at a HUD, very much in the Star Trek theme. It's optimsed for a 1680 x 1050 display, so the hud.plist may need tweaking for other resolutions. I'll test other resolutions soon and include alternate hud.plist files if needed.
http://wiki.alioth.net/images/d/d9/TrekHud.zip
http://wiki.alioth.net/images/d/d9/TrekHud.zip
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact: