Originally Posted by fRodzet
True that is!
Creating Templates in XML is easy anyways, but for longer codes i think XML gets really messy and adding comments (<!-- xxx -->) in XML doesn't seem to make it more readable to me.
|
You really shouldn't need comments - that's what the "name" attribute in the root node is for. If you strive for a kinda quasi-OOP method, where each object will have its own lua file, and an accompanying xml file, things stay very neat and orderly, making maintaining and changing things a lot easier.
While I'm not going to argue that hammering out an entire UI in lua isn't easier in the short term, it's generally considered extremely lazy to mix visual elements and code in any language/api that has a layout system.