View Single Post
05/08/14, 04:04 PM   #1
Roupine
Join Date: May 2014
Posts: 18
Question Creating Controls: Lua vs. XML?

Hey Folks,

So far with my addons, I've been creating all of the control elements within the Lua code instead of XML. Is there a downside to doing this compared to using XML? I've noticed that I don't seem able to create a virtual control via Lua, but I don't quite understand the benefit of a virtual control to begin with. The only reason I've had to create a virtual control in XML is for use with ZO_ObjectPool. Quite frankly, I'm keen to just write my own object pool anyway.

Also what I've found is that the error messages are a lot more informative when you mess up the Lua code compared to the XML (ie. "You're missing a '=' at this if statement on this line" vs. "YOUR XML IS BAD AND YOU SHOULD FEEL BAD")

In what sort of situations would I want to create UI controls in XML vs. Lua?
  Reply With Quote