Thread Tools Display Modes
04/03/14, 06:19 AM   #1
Wukar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 27
Adding elements to existing UI elements

Hi there,

after walking through the very basic addon tutorial, i come up with more questions than answers. I am familiar with Lua in a way from my studies. But i definetly lack the knowledge to interact with the ESO UI.

I want to extend inventory and bank windows with a crafting-profession filter as well as a editbox for a full-text search. Well, the events aren't the problem. Adding the elements to the proper control is. On top of it: is there a predefined editBox (doesn't look like that) ?

I tried to skip that problem with the usage of the library LibAddonMenu-1.0:
Code:
LAM:AddEditBox(ZO_PlayerInventoryBackpack, "bbs_search", "filter inventory", "custom tooltip", false, getFunc(), setFunc())
But the LibAddon itself complains about the optionsWindow variable which is set at the beginning to:
Code:
local optionsWindow = ZO_OptionsWindowSettingsScrollChild
Thanks for your time ;-)
  Reply With Quote
04/03/14, 04:28 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
From the description:
LibAddonMenu-1.0 is a library to aid addon authors in creating a configuration GUI for their addons which is located in the game's Settings menu.
LAM doesn't do what you think it does.
  Reply With Quote
04/03/14, 07:12 PM   #3
Wukar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 27
*self-facepalm* configuration gui - got it

But the UI elment question remains.
  Reply With Quote
04/03/14, 08:35 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
Look to see how LAM creates the editbox. (Hint: I used a template from the default UI )
  Reply With Quote
04/04/14, 07:42 AM   #5
Cr4x
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 11
Easiest way to achive your goal is to install zgoo and try to figure out which is the head control of the tabs.

type /zgoo mouse while you are on any filter button and have a look at his parent
Should be something like ZO_PlayerInventoryFilterTab or so

now have a look at the wiki example to dynamicly adding some controls to another.

That should be enough to make it. if you need a complete soloutin and dont want to learn from it (i totally advice! you to do it by yourself), reply on my post and wait until i got time for it *lol*

Cheers
  Reply With Quote
04/04/14, 01:18 PM   #6
Wukar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 27
Thanks for the hints. I hate direct solutions and prefer learning by doing
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Adding elements to existing UI elements


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