View Single Post
04/06/14, 04:07 AM   #14
Cr4x
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 11
Originally Posted by Wukar View Post
Now i am stuck with setting appropriate handlers. Is there a list of valid and fireing events for controls? OnKeyup as well as Onclicked or OnFocus is not working.

lua Code:
  1. local function BBS_OnFocusLost(editbox, label)
  2.     label:SetHidden(editbox:GetText() ~= "")
  3. end
  4.  
  5. local function BBS_OnKeyUp(editbox, label)
  6.     label:SetHidden(editbox:GetText():len() > 0)
  7. end
  8.  
  9. editbox:SetHandler("OnKeyUp", function(self) BBS_OnKeyUp(self, label) end)
  10. editbox:SetHandler("OnFocusLost", function(self) BBS_OnFocusLost(self, label) end)
wiki.esoui.com/UI_XML

Use zgoo to inspect which type of control you want to handle, head to the specific section and looks what it has of attributes additional childs and ofc which events (OnEvent). The most Controls inherits from Control which also have OnEvents so this is the overview you requested.

Originally Posted by Lyrael View Post
Not sure how to add a filter as I found this trying to figure that out myself.

There is however an existing search box in the game, there's just no non-script way of showing it (AFAIK).

/script ZO_PlayerInventorySearchBox:ToggleHidden() will toggle its visibility.
The search bar is working but, as you said, not there . I already figured that out too and was wondering why ZO isnt showing it . However if you want to add a filter, you may check the ZO_InventoryManager even the data sets of the different filters
  Reply With Quote