Overlays for menus

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Corny
---- E L I T E ----
---- E L I T E ----
Posts: 363
Joined: Sun Dec 20, 2009 11:50 am
Location: (northern) Germany

Overlays for menus

Post 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.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post 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.
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Corny
---- E L I T E ----
---- E L I T E ----
Posts: 363
Joined: Sun Dec 20, 2009 11:50 am
Location: (northern) Germany

Post 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. :(
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post 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.
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
User avatar
Corny
---- E L I T E ----
---- E L I T E ----
Posts: 363
Joined: Sun Dec 20, 2009 11:50 am
Location: (northern) Germany

Post 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).
Post Reply