Author Topic: [SUG] Allow custom per-line recolouring in Pre/Postview Screens  (Read 1158 times)

0 Members and 1 Guest are viewing this topic.

Offline WillLem

  • Moderator
  • Posts: 3513
  • Unity isn't sameness, it's togetherness
    • View Profile
GigaLem, from Discord:

Quote from: GigaLem
I feel for slx, there should be a file post and preview screens that show what the color of the font for what part changes it to, and you can change it by looking through the text file and changing its color code

Offline WillLem

  • Moderator
  • Posts: 3513
  • Unity isn't sameness, it's togetherness
    • View Profile
Re: [SUG] Allow custom per-line recolouring in Pre/Postview Screens
« Reply #1 on: July 05, 2023, 11:03:54 PM »
Agreed, I'll aim to get this in for 2.6 - it's a bit too big of a feature to make it into 2.4 (which is already way overdue!)
« Last Edit: August 04, 2023, 06:18:58 PM by WillLem »

Offline WillLem

  • Moderator
  • Posts: 3513
  • Unity isn't sameness, it's togetherness
    • View Profile
Re: [SUG] Allow custom per-line recolouring in Pre/Postview Screens
« Reply #2 on: August 04, 2023, 08:49:05 PM »
This feature has now been added and will be included in the next release version (most likely 2.6 unless there are any more bugfix updates).

The attached textcolours.nxmi (pardon the British spelling ;P) can be used to customise preview & postview text colours, either game-wide (by adding the file to SLX\data) or per-pack (by adding the file to SLX\levels\level_pack's_root_folder).

Level pack customisations are always preferred, so that designers can create their own theming for the menu screens.

In the event that the textcolours.nxmi file doesn't exist in either location, the current hard-coded SLX defaults will be applied.

Some notes on formatting:

The colours are achieved by hue-shifting the original green menu font. Using the following format, the hue-shift is applied depending on the value of each number following the relevant line:

Code: [Select]
$PREVIEW
  TITLE 0.600
  GROUP 0.600
  LEM_COUNT 0.250
  RESCUE_COUNT 0
  RELEASE_RATE 0.800
  TIME_LIMIT 0.150
  AUTHOR 0.500
$END

So, for example, if you wanted to change the release rate to green from yellow, you would change the value from "0.800" to "0" (i.e. a hue shift of +0.800 to a hue shift of 0, changing it back to the default green).

The textcolours.nxmi contains a handy colour guide at the bottom so that it's easy to quickly find a desired colour, but these can of course be further tweaked by adding further increments between the shades (e.g. 0.850, 0.649, 0.324, 0.112, etc).

As always, do ask if you need any help with this.

Implemented in Commit 5352dc578