Order Property?
-
- Burner Inserter
- Posts: 18
- Joined: Sun May 03, 2015 9:50 pm
- Contact:
Order Property?
In the item properties, I never quite understood what order meant or how it worked. More specifically, what to put for the order. I mean, a-b-c doesn't mean anything to me. Please explain.
Re: Order Property?
It's nothing else, than a sorting string.
a-b-c comes before a-b-d, a-c-c or b-c-d. If you put all sort-strings into a column in a spreadsheet and click on "sort" for that column, this is the order they appear in the item-chooser.
a-b-c comes before a-b-d, a-c-c or b-c-d. If you put all sort-strings into a column in a spreadsheet and click on "sort" for that column, this is the order they appear in the item-chooser.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Re: Order Property?
I think we need a more concrete example.
Say we want to put the Better Electric Pole between the medium electric pole and the big electric pole, instead of before the medium electric pole as it does now. How do we change this line of prototypes/item/electric-pole.lua
to accomplish this?
Say we want to put the Better Electric Pole between the medium electric pole and the big electric pole, instead of before the medium electric pole as it does now. How do we change this line of prototypes/item/electric-pole.lua
Code: Select all
order = "a[energy]-b[medium-electric-pole]",
Re: Order Property?
medium electric pole order = "a-b"
big electric pole order = "a-c"
So "a-b-a" or "a-b-z" will fit between the two.
The brackets are optional and ignored by the game.
big electric pole order = "a-c"
So "a-b-a" or "a-b-z" will fit between the two.
The brackets are optional and ignored by the game.
Re: Order Property?
Ah! So the brackets are like a comment! Good to know!