Lemmings Forums

NeoLemmix => NeoLemmix Main => Archived Bugs & Suggestions => Topic started by: namida on June 16, 2018, 07:56:02 AM

Title: [Fixed][Sug][Editor] Support non-integer values for style ordering.
Post by: namida on June 16, 2018, 07:56:02 AM
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.
Title: Re: [Sug][Editor] Support non-integer values for style ordering.
Post by: Nepster 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.