[Fixed][Sug][Editor] Support non-integer values for style ordering.

Started by namida, June 16, 2018, 07:56:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

namida

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.
My 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)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

Nepster

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.