OpenXcom Forum

OpenXcom => Suggestions => Topic started by: CanadianBeaver on July 23, 2016, 11:19:38 pm

Title: Sorting items on soldier's inventory screen
Post by: CanadianBeaver on July 23, 2016, 11:19:38 pm
I have no idea, how does the game put items on the floor in the inventory screen, but it is really uncomfortable. It will be good, if the items are sorted by their listOrder value (https://www.ufopaedia.org/index.php/Ruleset_List_Order_(OpenXcom)). It means, PISTOL should be placed first, PISTOL clip should be second and nearby the PISTOL, RIFLE and RIFLE CLIP are next... etc.

Can someone correct it?
Title: Re: Sorting items on soldier's inventory screen
Post by: Meridian on August 19, 2016, 11:50:27 am
I have no idea, how does the game put items on the floor in the inventory screen...

It's processing them in the (for player random) order they have been put into inventory.
Then it's calculating the topmost leftmost slot they still fit in.

...but it is really uncomfortable. It will be good, if the items are sorted by their listOrder value (https://www.ufopaedia.org/index.php/Ruleset_List_Order_(OpenXcom)). It means, PISTOL should be placed first, PISTOL clip should be second and nearby the PISTOL, RIFLE and RIFLE CLIP are next... etc.

That would also mean there will be a lot of holes (empty slots) since the items will not occupy all available space.

Can someone correct it?

I like it the way it is.

EDIT: btw. I have implemented a quick search function... searching for something should be a matter of one, maybe two seconds
Title: Re: Sorting items on soldier's inventory screen
Post by: Solarius Scorch on August 19, 2016, 11:58:25 am
EDIT: btw. I have implemented a quick search function... searching for something should be a matter of one, maybe two seconds

I'd like to confirm that it's very helpful and easy to use.
Title: Re: Sorting items on soldier's inventory screen
Post by: CanadianBeaver on August 19, 2016, 05:37:30 pm
Empty slots are not important, because it is better that struck eyes. Unfortunately, I don't know c++.
Title: Re: Sorting items on soldier's inventory screen
Post by: Meridian on August 19, 2016, 07:28:49 pm
Also, looking at other threads... I wouldn't be able to implement this in OpenXcom 1.0/nightly... I don't have access there.
I could do it only for OXCE/OXCE+ forks.
Title: Re: Sorting items on soldier's inventory screen
Post by: CanadianBeaver on August 19, 2016, 07:53:23 pm
Also, looking at other threads... I wouldn't be able to implement this in OpenXcom 1.0/nightly... I don't have access there.
I could do it only for OXCE/OXCE+ forks.


It's a pity. Anyway, thank you for participating.