Page 1 of 1

LuaItemGroup order should be accessible

Posted: Sun Jul 24, 2016 7:15 pm
by theRustyKnife
For sorting purposes it would be nice to be able to read the order of a group. Also, it would make sense since LuaItemPrototype and the like have this possibility.
Thanks TRK

Re: LuaItemGroup order should be accessible

Posted: Mon Jul 25, 2016 8:05 am
by binbinhfr
And its localised_name too,
and maybe a LuaGroup.recipes that returns a dictionnary of sorted recipes,
and a LuaGroup.items that returns a dictionnary of sorted item protos.
These functions must be available somewhere in Factorio code to buikd the recipes browser and items browser you have ingame.
http://lua-api.factorio.com/latest/LuaGroup.html

Re: LuaItemGroup order should be accessible

Posted: Mon Jul 25, 2016 3:24 pm
by Rseding91
Done for 0.13.11.

Re: LuaItemGroup order should be accessible

Posted: Mon Jul 25, 2016 3:50 pm
by theRustyKnife
Rseding91 wrote:Done for 0.13.11.
Wow that was quick :D
Thanks!

Re: LuaItemGroup order should be accessible

Posted: Mon Jul 25, 2016 6:00 pm
by binbinhfr
What is done ?
order ? localised_name ? more ? :shock: