Project

General

Profile

Feature - New #2249

Items - Simulate Drag & Drop on Containers

Added by LostOne about 1 year ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2023-11-06
Due date:
% Done:

0%

Estimated time:
vbulletin_issue_id:

Description

Wanted to see if you could simulate the dragging and dropping of items onto bags (bank, shared bank, inventory bags) so that we can benifit from the in-game stacking and sorting features. When you do a drag and drop onto a bag in-game it will first determine if the item is stackable and simply add it to an existing elegible stack (if there is overflow it will fill the existing stack then start a new one). Otherwise, it will place the item in the next free slot within the bag. This is really for inventory management. It's a pain to determine if an item is stackable and then figure out of the bag has an existing stack that isn't at its max. If the item is trade locked (see Issue #2248) it will look like it can stack but it won't. Trade locked items won't stack with other items. The move method seems to be very specific so maybe something like an AddToBag item method that would simulate a true in-game drag and drop.

I tired to find something that already exists which simulates this... I tested out AddToConsignment but it doesn't appear to simulate a true drag and drop either. I have 5 of the same items stacked in my first broker box and I remove one to inventory. If I manually drag that item back into broker box the game will automatically add it back onto the existing stack. If I use the AddToConsignment method it won't stack with the others and get added as a new single item.

Hopefully, that makes sense. If not let me know. Thanks!

#1

Updated by Kannkor about 1 year ago

LostOne wrote:

Wanted to see if you could simulate the dragging and dropping of items onto bags (bank, shared bank, inventory bags) so that we can benifit from the in-game stacking and sorting features. When you do a drag and drop onto a bag in-game it will first determine if the item is stackable and simply add it to an existing elegible stack (if there is overflow it will fill the existing stack then start a new one). Otherwise, it will place the item in the next free slot within the bag. This is really for inventory management. It's a pain to determine if an item is stackable and then figure out of the bag has an existing stack that isn't at its max. If the item is trade locked (see Issue #2248) it will look like it can stack but it won't. Trade locked items won't stack with other items. The move method seems to be very specific so maybe something like an AddToBag item method that would simulate a true in-game drag and drop.

I tired to find something that already exists which simulates this... I tested out AddToConsignment but it doesn't appear to simulate a true drag and drop either. I have 5 of the same items stacked in my first broker box and I remove one to inventory. If I manually drag that item back into broker box the game will automatically add it back onto the existing stack. If I use the AddToConsignment method it won't stack with the others and get added as a new single item.

Hopefully, that makes sense. If not let me know. Thanks!

To add onto this, making it so we can drag/drop onto this.

https://cdn.discordapp.com/attachments/550454120520351745/1173821535761485984/image.png?ex=6565597e&is=6552e47e&hm=eba2de28994245b3393d332279456ae497bd4ab9c57f2943968255d164235e6b&

 

Not sure if it's possible, to be able for us to drag/drop onto any UI element?

#3

Updated by Kannkor 5 months ago

Also available in: Atom PDF