Page 1 of 1

Overlays for menus

Posted: Mon Feb 08, 2010 3:00 pm
by Corny
I hope that I don't suggest something that isn't implemented yet :|
So, at the moment, we have the opportunity to easily insert custom backgrounds into the menus of Oolite (in the trunk version). That's great! But there's still a header which is, I think, hard coded and not easily changeable via an OXP.
To get an opportunity to make these headers more fancy (or disable them and add a navigation bar with tabs or whatnot) with a simple OXP, it'd be useful if you couldn't only set backgrounds, but also overlays/foregrounds for the menus.

Posted: Wed Feb 10, 2010 12:28 pm
by Kaks
Err... in trunk you can set overlays as well as specific backgrounds for each screen.

Specifically, you can set one overlay for in-flight, and one for when docked.

Posted: Mon Feb 15, 2010 3:16 pm
by Corny
Hmm, I only know the overlay-docked (or whatever it's called) in screenbackgrounds.plist which doesn't override the headlines if I remember correctly.
Also, I don't know why your post wasn't marked as new for me. :(

Posted: Mon Feb 15, 2010 4:43 pm
by Kaks
Headlines? You mean the bit at the top that would usually have 'Mission Information', 'Ship Outfitting' or 'Captain Jameson'?

You can already override those in 1.73.4 by changing what it says inside descriptions.plist for all the standard screen names, that's what translation packs do already.

In 1.74 you will have a new mission screen parameter (title / titleKey) that allows you to change 'Mission Information' to whatever you want it to be directly from javascript. Until then, the best you can do is change 'Mission Information' to ' ' inside descriptions.plist, then provide your own title as a background picture. The white line towards the top of the screen - the one nomally just underneath the writing - can't be removed, though.

I just had a look at screenbackgrounds.plist, and sure enough, I did put all the possible options there, complete with hopefully helpful comments:

mission_overlay, overlay, docked_overlay, paused_overlay, paused_docked_overlay.

Posted: Mon Feb 15, 2010 6:10 pm
by Corny
Sorry, I think I was a bit fuzzy. I don't intend to change the text in terms of changing the letters, but replace the whole thing (including the underline) with a graphic.
I didn't know that you can set the headline to ' ', though. That's pretty useful. Now I just need to cope with the white bar :D
Thanks :)

Edit:
I just noticed that the HUD can overlay the white bar if it's set to alpha 1 (at least in 1.74).