Difference between revisions of "HDBG"

From Elite Wiki
Line 20: Line 20:
   
 
Custom images can be used in misson screens if a hdbg-mymission.png is placed into any Images folder, the following code is applied and the [[Oolite_JavaScript_Reference:_Mission#screenID|screenID]] of the mission screen is set to 'mymission'.
 
Custom images can be used in misson screens if a hdbg-mymission.png is placed into any Images folder, the following code is applied and the [[Oolite_JavaScript_Reference:_Mission#screenID|screenID]] of the mission screen is set to 'mymission'.
var w = worldScripts.hdbg;
 
  +
this.startUp = function() {
if( w ) w.$AddRoles([{'mymission','hdbg-mymission.png'}]);
 
  +
var w = worldScripts.hdbg;
  +
if( w ) w.$AddRoles([{role:'mymission', file:'hdbg-mymission.png', x:1920, y:1080}]);
  +
}
  +
  +
You must give x and y sizes of images to align well in different screen ratios and should give other data like this:
  +
{role:"coriolis", file:"The_USS_Terraformer_by_Brendan_Biele.png", x:3840, y:2400,
  +
author:"Brendan Biele", title:"The_USS_Terraformer", licence:"CC BY-NC-SA 3.0",
  +
source:"https://www.flickr.com/photos/brendanbiele/5374095042/"}
   
   

Revision as of 00:20, 7 June 2015

HD Backgrounds on Arrival Reports

Show station specific high resolution background images in arrival reports. System screens are unchanged (handled by BackGroundSet, Better Screens and Xenon UI).

Docking fees OXP is recommended to get more arrival reports.


This is the top left corner of an UHD screenshot (3840x2160), click on for the full image:

HDBG1.png

HD images are gathered in this topic.


Mission screens can show the same image if screenID is set to 'hdbg-station'.

A specific image of another station is accessible also if the role of the station is given, like 'hdbg-coriolis'.

Custom images can be used in misson screens if a hdbg-mymission.png is placed into any Images folder, the following code is applied and the screenID of the mission screen is set to 'mymission'.

this.startUp = function() {
 var w = worldScripts.hdbg;
 if( w ) w.$AddRoles([{role:'mymission', file:'hdbg-mymission.png', x:1920, y:1080}]);
}

You must give x and y sizes of images to align well in different screen ratios and should give other data like this:

{role:"coriolis", file:"The_USS_Terraformer_by_Brendan_Biele.png", x:3840, y:2400,
 author:"Brendan Biele", title:"The_USS_Terraformer", licence:"CC BY-NC-SA 3.0",
 source:"https://www.flickr.com/photos/brendanbiele/5374095042/"}


Credits

Thanks for all authors of included images for the hard works and given permissions.

The list of authors and sources are in the script.js files in HD image packs.


Instructions

Do not unzip the .oxz file, just move into the AddOns folder of your Oolite installation.

License

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License version 4.0. If you are re-using any piece of this OXP, please let me know by sending an e-mail to norbylite@gmail.com.


Download

HDBG_1.0.oxz (downloaded 5404 times).

Changelog

2015.06.07. v1.0  First release.

Quick Facts

Levelindicator0.png
0-{{{2}}}
Version Released License Features Category Author(s) Feedback
1.0 2015.06.07 CC BY-NC-SA 4 HD Backgrounds Ambiences Norby BB-Link