Thread Tools Display Modes
04/02/14, 07:43 AM   #1
Tingle0x539
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 25
Using XML to attach to a ZO_ parent?

Currently I am creating GUI elements with lua using WINDOW_MANAGER:CreateControl(.., _G["ZO_ChatWindow"], ..). Is it somehow possible to make a XML tag and have to parent its self to ZO_ChatWindow for example?

Also, is there a explanation of what tags do what, the wiki only has a listing without any explanation of what each tag is. Like what is TopLevelControl, what is Control, what is Layer, what is AnchorFill etc...

Last edited by Tingle0x539 : 04/02/14 at 07:55 AM.
  Reply With Quote
04/03/14, 11:48 AM   #2
Tingle0x539
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 25
Bump, if the first isn't possible, can I at least have an explanation of the tags in my second question?

Last edited by Tingle0x539 : 04/03/14 at 01:21 PM.
  Reply With Quote
04/03/14, 04:20 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
1.
Don't use _G["ZO_ChatWindow"]. Just use ZO_ChatWindow.
You can set a parent through frame:SetParent(ZO_ChatWindow)

2.
A control is the name ESO uses for objects.
TopLevelControl = top level window (the main window your other stuff is attached to)
Control = frame
http://wiki.esoui.com/Globals#DrawLayer
AnchorFill = make this frame fill the frame it's anchored to (In ESO, control:SetAnchorFill() is equivalent to WoW's frame:SetAllPoints() if you are familiar with that.)
  Reply With Quote
04/03/14, 04:52 PM   #4
Tingle0x539
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 25
Ah thanks,

you say "You can set a parent through frame:SetParent(ZO_ChatWindow)", my question was if this can be achieved from the .xml file?

Last edited by Tingle0x539 : 04/03/14 at 05:11 PM.
  Reply With Quote
04/03/14, 04:58 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
No. Parent/child structure is created by the way you order your nesting in the XML.
  Reply With Quote
04/03/14, 05:12 PM   #6
Tingle0x539
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 25
Thanks for your help

Last edited by Tingle0x539 : 04/03/14 at 05:35 PM.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Using XML to attach to a ZO_ parent?


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