sfall-team/sfall

Feature Request: Double-clicking in the inventory swap GUI

blackpaulillyria opened this issue · 8 comments

Right now, when we are looting containers or corpses and don’t want to take all the items, we have to drag the item from one inventory to the other in the inventory swap GUI.

It would be nice if we could just double-click an item and that would instantly move it to the other inventory. So double-clicking an item from inventory on the left, would instantly move it to the innvetory on the right. And double-clicking an item from inventory on the right, would instantly move it to the invetory on the left.

How about assign a key to hold fro this function? Ctrl + clicking on things instantly transfer things and all that. I'd imagine that would be easier to implement than checking double clicks on items.

I agree, Ctrl+Click should be easier to implement. But someone needs to actually do it.

Maybe Ctrl+Click can work like this:

Barter screen: there's only one way for items in a given table to go. So NPC inventory goes to NPC ask table and vice versa. PC inventory goes to PC offer table and vice versa.

Loot/steal: this is obvious, there's only 2 lists.

Inventory: items from each slot goes to main inventory. Items from inventories go to appropriate slot:

  • Armor to armor slot, replacing existing, if it's not free.
  • Any other item goes to next free hand slot. If both are taken, replaces item in the Right hand slot.

Implemented for loot and barter: b584753

For the player's inventory, Ctrl+click for fast unequipping (slots to inven list) should be enough IMO.
If fast equipping is really that needed, for hand slots I think it might simply go to the current active hand, i.e. can use that item right after closing the inventory, no need to switch hands.

For main inventory I went with @NovaRain suggestion. Armor goes to armor slot, everything else goes to current active hand slot.

Maybe make configurable key?
I think middle mouse click would work well.

Maybe make configurable key?

The key is configurable, it's Ctrl by default. But it must be a keyboard key.