aliens

Author Topic: Sorting items on soldier's inventory screen  (Read 4268 times)

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Sorting items on soldier's inventory screen
« 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. 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?
« Last Edit: July 23, 2016, 11:22:43 pm by CanadianBeaver »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: Sorting items on soldier's inventory screen
« Reply #1 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. 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
« Last Edit: August 19, 2016, 11:52:00 am by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11727
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Sorting items on soldier's inventory screen
« Reply #2 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.

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: Sorting items on soldier's inventory screen
« Reply #3 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++.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: Sorting items on soldier's inventory screen
« Reply #4 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.

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: Sorting items on soldier's inventory screen
« Reply #5 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.