View Single Post
01/23/23, 04:35 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
You need to call the code that sets the needed button of the tabs, to switch to deposit, and after that to the materials tab.

Each button got an identifier named descriptor which can be used to switch to that identifier. Here is an example thread about the PROVISIONER crafting table.

https://www.esoui.com/forums/showthr...bar+descriptor

It also describes the ZO_InventoryManager (class) vs PLAYER_INVENTORY (object created from the class) thing,based on the PROVISIONER
object.

You need to change the menu bar to the one of the bank. Use an addon like merTorchbug updated to inspect the control below the cursor (/tbm Slash command) to get the menubar name and the buttons descriptor (is at the data table of the button).
The descriptor should be shown as number but is a SI_ string constant. It's the tabs text normally so you should be able to find it wir merTorchbug Strings by using slash command /tb and switching to the strings tab. Search for the buttons text then and you see the si_ constants. One should be the "Deposit" text VS vs another the "Material".

This will internally call the scene and its fragments. But there isn't 1 Fragment for each button! It's just 1 for deposit and 1 for withdraw.
And activating a fragment manually can result into problems so better use the code that ZOs does too, means the ZO_ActionBar descriptor change.

Last edited by Baertram : 01/23/23 at 04:42 AM.
  Reply With Quote