Author Topic: [Fixed][Sug][Editor] Support non-integer values for style ordering.  (Read 1166 times)

0 Members and 1 Guest are viewing this topic.

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
In the styles.ini file, it is possible to specify an Order value for styles. Glad to see negatives work fine :) but, non-integer values do not. (eg. you can't specify Order=0.5)

Not a huge deal, but would be nice, and (I'd imagine) fairly simple to implement.
« Last Edit: July 02, 2018, 04:05:57 PM by Nepster »
My Lemmings projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)

Offline Nepster

  • Posts: 1829
    • View Profile
Re: [Sug][Editor] Support non-integer values for style ordering.
« Reply #1 on: June 17, 2018, 09:24:38 AM »
I implemented this. However it is not quite as straight-forward as it sounds, because here in (continental) Europe we use "1.234,56789", while the US (and others) use "1,234.56789". Forutnately there are already build-in methods in C# for this.

Important notice: Do not post style.ini files publically that use thousand separators or non-integers! If someone else in another country downloads it, the editor may no longer be able to parse the file due to different expectations regarding the number formatting.