Page 8 of 16

Re: Xenon UI OXP

Posted: Fri Aug 26, 2016 10:20 am
by phkb
Ross154 wrote:
maybe you can tell me how your VB program works?
Well, there's not much to it, actually...

I started with a base backgrounds, without any text on them. There are actually only 9 base images per screen ratio. Then I built up a text file that contains all the text that appears on all the different pages (the sub-commands, the system log entries).

The main routine then reads through the text file and creates images as it goes - picking up the background image, then drawing the text on top.

Then there was a painstaking task of fine-tuning all the text elements, working out the differences between each of the fonts (eg which fonts should have bold titles, which fonts need a size-boost to make them fit better, that sort of thing). Then working out the differences required for 16:10 vs 16:9. It's actually not complicated, just time-consuming to work out the first time. I wrapped a simple UI around it so I didn't have to remember all the settings and it now looks like this:
ImageI just click on the font I want to create the images for, select the screen ratio, and all the settings are loaded for me.

During work on the latest version I learnt how to save the images in a smaller format, so I added a drop-down to allow me to quickly change it. I was also experimenting with all-caps fonts (thus the "Uppercase" option), but this never worked out to my satisfaction.

Finally I specify the output directory, and click "Create Images", and shazzam! 60-odd background images get created. Once the images are created I then run them through pngcrush to make them as small as possible.

I understand if VB.net is not to your taste. I could probably convert it to C# if that's any better. Might not get to it this weekend, though!

[Edit]I just discovered there's a GiMP plugin for Paint.NET, so I could easily save versions of my originals (with all the layers, making it much easier to slot in the BGS backgrounds) in XCF format. Would that help?

Re: Xenon UI OXP

Posted: Fri Aug 26, 2016 10:59 am
by Ross154
phkb wrote:
Ross154 wrote:
maybe you can tell me how your VB program works?
Well, there's not much to it, actually...

I started with a base backgrounds, without any text on them. There are actually only 9 base images per screen ratio. Then I built up a text file that contains all the text that appears on all the different pages (the sub-commands, the system log entries).

[Edit]I just discovered there's a GiMP plugin for Paint.NET, so I could easily save versions of my originals (with all the layers, making it much easier to slot in the BGS backgrounds) in XCF format. Would that help?
The best would be if I could edit directly the 9 base images (in Gimp or in Paint.NET shouldn't be too different), it would make things much easier for me, then I could post the results and you could use them if you like them.

Re: Xenon UI OXP

Posted: Fri Aug 26, 2016 11:39 am
by phkb
OK, here you go:
Xenon UI 16:9 Paint.NET (pdn) files: Xenon_16-9_pdn.zip
Xenon UI 16:10 Paint.NET (pdn) files: Xenon_16-10_pdn.zip
They're about 14mb each.

And because this is important although annoying... the license the same as for the OXP: Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

Re: Xenon UI OXP

Posted: Fri Aug 26, 2016 3:42 pm
by Ross154
phkb wrote:
OK, here you go:
Thanks, it isn't exactly what I thought it would be but I can do the following: create 1600x900 .png pics (as the original base pics) with the different backgrounds (semitransparent) in the frames where they should appear when the pics are merged, so when your program builds the final images you can tell it to merge those too. Would your program be able to merge them this way?

For example, this

Image

merged with a 16:9 background becomes

Image

Re: Xenon UI OXP

Posted: Fri Aug 26, 2016 9:24 pm
by phkb
If you create your 9 base images, then yes, my program can do the rest.

Edit: Oops. I should probably think about things a bit longer before posting a reply...

Yes, if you provide 9 background images, my program can use them to create all the different versions it needs for the OXP. However, I don't think you'll have 9 based images. Some of the backgrounds will be different based on their use - the F3 Shipyard background will be different to the F5 Manifest background. My 9 base images only work because the only differences between each of the screens is the text, which is what my you-beaut VB utility puts on.

So, I could create a new version that looks for more images, but you'd need to provide me with a version of each of the 9 based images with all the different backgrounds embedded in it. I could then customise my utility to use those instead. All the text positioning would remain the same.

Re: Xenon UI OXP

Posted: Sat Aug 27, 2016 9:43 am
by Ross154
phkb wrote:
If you create your 9 base images, then yes, my program can do the rest.

Edit: Oops. I should probably think about things a bit longer before posting a reply...

Yes, if you provide 9 background images, my program can use them to create all the different versions it needs for the OXP. However, I don't think you'll have 9 based images. Some of the backgrounds will be different based on their use - the F3 Shipyard background will be different to the F5 Manifest background. My 9 base images only work because the only differences between each of the screens is the text, which is what my you-beaut VB utility puts on.

So, I could create a new version that looks for more images, but you'd need to provide me with a version of each of the 9 based images with all the different backgrounds embedded in it. I could then customise my utility to use those instead. All the text positioning would remain the same.
These backgrounds can be merged even after images with text have been created (then I should make them 2048x1024 because that's their final size). What the program could do, is to check the filename and merge the image with the appropriate background (eg if the image is named "xenon_standard_f3-1.png", merge "standard_f3-1.png" on top of it). Both 16:9 and 16:10 have the central frames in the exact positions so this wouldn't be an issue.

So I make backgrounds (1600x900 or 2048x1024 depending on when they will be merged) and call them "standard_f3-1.png", "standard_f3-1_nohud.png", etc, then your program would merge them on top of the corresponding file.

The reasons why I ask you if you can automate this merging process through your program are:
- I should merge manually all the pics for all the alternative font variations
- if you change something in the UI, this should be done again
- you can do this yourself, and even choose more appropriate backgrounds if you prefer (I'm going to make some alternative ones too)

You can tell me if this is fine for you.

Re: Xenon UI OXP

Posted: Thu Sep 22, 2016 11:34 pm
by phkb
Xenon UI 2.0.0 has been released. The main thing in this release is compatibility with Svengali's [wiki]Library[/wiki] utility, which means you can install Xenon UI alongside BGS 2.0 and easily switch between them. The Redux pack has also been updated in this way, so there is no technical reason to prevent you from installed both Xenon UI and Xenon Redux UI and switch between them. Although why you would want to is another thing...

Big thanks to Svengali for creating the Library OXP, and for answering all my questions about Library GUI.

There are a couple of settings now available in Library: you can turn off the overlay images, and you can dial back Xenon's level of influence, so it won't actively force the backgrounds on mission screens. This would mean the only screens you'd see the Xenon UI background on would be the main GUI screens, the parcel/passenger/cargo screens, the primable equipment setup screen, and the change registration screen.

Let me know if you encounter any issues.

Re: Xenon UI OXP

Posted: Thu Sep 22, 2016 11:58 pm
by Cody
Cool!

Re: Xenon UI OXP

Posted: Fri Sep 23, 2016 5:58 pm
by Astrobe
I have a strange black pattern laid over the background image:

(EDIT: image no longer available)

It happens at all stations, and the pattern is always the same. The background image is provided by the "HD background OXP" (http://wiki.alioth.net/index.php/HDBG). I kept the default parameters for Xenon UI.

Re: Xenon UI OXP

Posted: Fri Sep 23, 2016 9:18 pm
by phkb
Ah, I forgot to check for Hdbg before putting my overlay on. If you disable overlays that should go away, and I'll get a patch out shortly to fix the issue.

Re: Xenon UI OXP

Posted: Sat Sep 24, 2016 9:31 am
by Astrobe
It's a very minor issue, no need to rush for fix.

Re: Xenon UI OXP

Posted: Sun Sep 25, 2016 4:13 am
by phkb
Version 2.0.1 is now available and should fix the compatibility issue with HDBG.

Re: Xenon UI OXP

Posted: Sat Oct 01, 2016 1:29 pm
by Astrobe
Issue fixed. Thanks!

Re: Xenon UI OXP

Posted: Thu Nov 03, 2016 4:50 am
by Nomad
Hello,

I am Nomad. I am fairly new to using Xenon UI, and I noticed a small error. As my goal is to seek out and sterilize imperfections (https://youtu.be/Mw3zzMWOIvk). It turns out that the current version of XenonUI does not show the map in RandomHits OXP missions. I have "sterilized" my installation by replacing this.$addMissionScreenException("random_hits_map"); with this.$addMissionScreenException("random_hits"); in xenonui.js.

Re: Xenon UI OXP

Posted: Thu Nov 17, 2016 8:19 pm
by Cody
Using the Xenon Redux UI with 1.85.0.6859-161116-8e7ecc3 and it seems to lack the background/frame when in the details section of parcel contracts.