sfall-team / sfall

sfall - Engine modifications for Fallout 2
https://sfall-team.github.io/sfall/
GNU General Public License v3.0
338 stars 40 forks source link

Feature Request: Double-clicking in the inventory swap GUI #526

Closed blackpaulillyria closed 1 month ago

blackpaulillyria commented 2 months ago

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.

DondeEstaTuHallPass commented 2 months ago

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.

phobos2077 commented 2 months ago

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

phobos2077 commented 1 month ago

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:

phobos2077 commented 1 month ago

Implemented for loot and barter: https://github.com/sfall-team/sfall/commit/b5847532b433c0b8eff21ac4dba4e87da30703d4

NovaRain commented 1 month ago

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.

phobos2077 commented 1 month ago

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

burner1024 commented 1 month ago

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

phobos2077 commented 1 month ago

Maybe make configurable key?

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