View Single Post
05/22/22, 06:10 AM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,913
About addon development:
https://www.esoui.com/forums/showthread.php?t=9867

Chat with other devs:
Gitter chat room:
https://gitter.im/ESOUI/ESOUI


If you want to add/chnage the markers at teh guild store and you know any addon doing this already, try to find out the name of the control where it is added via an addon debugging tool like merTorchbug.
Install, activate and you got chat slash commands like /tb <variableName> or /tbm for Show me the control below my mouse cursor.
Move your mouse above the price control you want to change and write /tbm, press return key.
An inspector window will show you the name then and you can see what values it got and what teh parent control is and what child controls (at the botom) there are.

You can then search the ESOUI source code at github (https://github.com/esoui/esoui/tree/master/esoui) e.g., or download and search locally, for that control or the parent control.
Should bring you somewhere here then:
https://github.com/esoui/esoui/tree/...e/tradinghouse

Depending on keybaord or gamepad mode it's in the keyboard/gamepad folder or the files contain keyboard/gamepad.
This here looks like the price after a search is passed to the rowControl to show it:
https://github.com/esoui/esoui/blob/...board.lua#L543

The global variable of the trading house keyboard is TRADING_HOUSE so you can inspect this via merTorchbug or zgoo addons via /tb TRADING_HOUSE or /zgoo TRADING_HOUSE.
It should provide something like subtables/controls for the listings, search, and in there you will find the "list" controls which contain the shown "rows" for each item and the "rows" again contain child controls for the name, price per unit, amount etc.

After determining a few of the variables or controls names try to search the code of that other addon ATT e.g. and find out how it was done there.

Then check TTC's description for the API givent o get the price info and use this to add the price at the control for your addon, or modify locally the version of the addon which already provides that elsewhere (your linked simple ttc price addon) and modify it.

Ask the auhtor if you are allowed to via the addon comments! If he does not answer within 2 weeks and the addon does not use any licensing which prohibits updates you can ask Dolby to add you to the team of the addon so you ca officially update it, or you can create a copy with a unique name and give credit to the old addon + write what you did add.

Last edited by Baertram : 05/22/22 at 06:14 AM.
  Reply With Quote