Thread Tools Display Modes
Today, 02:21 PM   #1
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 689
Inventory Mods Not Working

Originally Posted by Baertram View Post
In line 83 of MasterMerchant_Inventory.lua change it to:

Code:
local sellPriceControl = rowControl:GetNamedChild("SellPriceText") -- rowControl:GetNamedChild("SellPrice")
Should fix it for now until Sharlikran is able to send a patch.
What Baertram posted should work but it's a suggestion for those that know how to use that. Also it's not that simple.

For example if the intention of GetNamedChild() is to get the control for X,Y placement of text then the change doesn't apply. So you do need to know the authors intended purpose of getting that control.

Last edited by Sharlikran : Today at 02:24 PM.
  Reply With Quote
Today, 02:27 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,133
To add more details:

ZOs moved some of the child controls of scroll lists, where there is a currency, to use a container control around the actual label control.
[ container for position and anchors [ label wth text ] ]

e.g. in inventory list local selllPriceContainer = rowControl:GetChildByName("SellPrice") will provide the container now and NOT the actual label control anymore (as before U43)!
The label is rowControl:GetChildByName("SellPriceText") now, or selllPriceContainer:GetChildByName("Text")

You need to anchor and position the container control
but you need to use SetText and SetFont etc. on the label control!

So you sometimes need both controls now for your addon, and not only "SellPrice" anymore alone.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Inventory Mods Not Working


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