View Single Post
11/16/14, 03:16 PM   #10
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Baertram View Post
Code:
-- The current control is a texture at a popup dialog ZO_ListDialog1 (crafting station research popup e.g.)
        if (string.find(parent:GetName(), "ZO_ListDialog1")) then
I don't understand what you're trying to do here...

Originally Posted by Baertram View Post
Weird. I've tested with /zgoo mouse to see if the texture's variables and methods are ok.

SetHidden(false) was set:
-IsHidden = true ? But I can see it in the popup o0
-IsControlHidden = false -> Maybe this is why I can see it then....
-IsHandlerSet = false ? contol:SetHandler was done...
IsHandlerSet("OnClicked") should return true. Zgoo is not smart enough to know it requires a parameter.

Originally Posted by Baertram View Post
Do I have to pre-hook the SetHandler somehow so it will work?
In short, no. Unless it already has one and you want to add a menu to what it already does.

Better make it simple for a start. Try adding the menu to ZO_PlayerInventoryInfoBarMoney (that's the amount of gold in your inventory).
  Reply With Quote