I really like how this works, it's very smooth and feels quite natural.
* The scroll wheel cycles pages.
* Clicking outside the grid, closes it.
* The player can still move with WASD.
Here is the test map I made for this. (my first TDM map:)
It is very small with 38 items for the inventory,
and two scripted events which add items to your inventory.
Thanks, great test map! A quick test shows that the update grid on inventory change code isn't working.
Another point to consider. We currently have 2 complex "HUD" inventory items in TDM. Loot and the compass.
At the moment, I exclude these items. Forcing them into the inventory grid would put restrictions on them and any future HUD item.
Not to mention it would be much more complex.
I was thinking about a custom section of the inventory grid just to display current loot count and maybe the current loot icon.
Seems like it could be a bit more convenient then selecting the loot item anyway.
That leaves the compass. Since you can't look around it would be useless in the inventory grid anyway.
It would still be nice to be able to select it from the grid, but it lacks a simple 2d icon.
I'm not quite sure how to take a picture of the world compass model with texture. Blender refuses to offer lwo import.
Is there anyone who has the capability to do this? A simple compass icon that matches the style of current inventory items?
The only other point I can think of at the moment is whether or not to support weapons. It should be relatively easy.
Might be able to fit a variable in somewhere to turn them on/off in the grid.