Originally Posted by Baertram
Check Craftbag Extended code as it adds craftbag fragment to mail and trading house afaik.
Provide proper credit please.
For fragment's check the Wiki please. They are reusable code with controls attached to them (e.g
Inventory Fragment with list control) added to scenes. A scene can have multiple fragment's and upon changing a tab at the UI for example the scene manager removes fragment a and adds fragment b (bank deposit vs. bank withdraw e. G.).
Scene handling and fragment changes are done in the lua code of your addon.
KEEP IN MIND: Manipulating vanilla scenes or fragments might break other addons, most likely Awesome Guild Store, MM and other trading related ones, in your example. Test those popular in combination please or clearly state to NOT use in combination with your addon!
|
TY ill look into them. And yes it will likely break those which I'm aware of and will be handling it. Its those im intending to replace in a very minimalist way to avoid 15 libraries to merely sell from bank(and possibly craft bag) by unit price.
I reached out to sharl but he is unwilling to add the sell from bank feature to his "ttcc" as he feels it would be copying "ags" which i found odd since "ttcc" is 99% identicle to "show ttc price" addon in nearly every way except visual settings panel differences. But all good ill try and work it myself.