Quantcast Handholding request: banking - ESOUI
Thread Tools Display Modes
12/08/17, 03:31 PM   #1
Join Date: Jul 2015
Posts: 5
Handholding request: banking

I'm trying to add a feature to Mass Deconstructor to allow non-crafting characters to deposit all the to-be-deconstructed items in the bank in preparation for deconstructing by the crafting character(s).

At this point I'm getting a little confused by some of the stuff I'm seeing in esoui LUA files and I need some help.

In inventoryslot.lua there is a function TryBankItem which appears to effect a deposit by invoking "PickupInventoryItem(bag, index)" and then "PlaceInTransfer". How does this work? Is this dependent on having the appropriate tab open (i.e.: Withdraw or Deposit)? If so, how can I select/open the Deposit tab of the bank?

In the crafting tables we can select the appropriate tab using SMITHING:SetMode(), but because I don't know what I'm looking for I can't find the equivalent thing for banking. All the esoui LUA code I'm looking reacts to the state of the bank but doesn't set it.
  Reply With Quote
12/08/17, 03:38 PM   #2
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,022
look at bankmanager code?

don't use PickupInventoryItem and then PlaceInTransfer, they're made for base UI, not addons which automoves.

Lua Code:
  1. if IsProtectedFunction("RequestMoveItem") then
  2.     CallSecureProtected("RequestMoveItem", bagIdFrom, slotIdFrom, bagIdTo, slotIdTo, qtyToMove)
  3. else
  4.     RequestMoveItem(bagIdFrom, slotIdFrom, bagIdTo, slotIdTo, qtyToMove)
  5. end
Obsessive Compulsive Coder

My little french Guild: Cercle de l'Eveil
  Reply With Quote
12/08/17, 04:29 PM   #3
Join Date: Jul 2015
Posts: 5
The only "banking" stuff I could find was in gamepad banking_gamepad.lua etc

Thank you for suggesting RequestMoveItem!
  Reply With Quote
12/08/17, 04:29 PM   #4
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 1,618
I personally would say you shouldn't rebuild the code of the other addons for Mass deconstructor as the addon is for mass deconstructing items, and not moving them to the bank.

There are several addons moving items to the bank already so just let ppl combine both instead of implementing it into your addon.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Handholding request: banking

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off