KukY wrote:Well, I think HTML and CSS is a better idea because their styling possibilites are endless! Then the game could place in some stuff into elements.
It would be endless when it comes to changing the colors of your text or drawing a background. They would be less endless when it comes to everything else since HTML is a presentation language, and thus only defines the appearance. With XML you could use the same nested tag style but also add your own magic to the mix:
Code: Select all
<bw:frame id="transport" width="160" height="240" padding="5" style="dialog">
<bw:frame width="150">
<bw:button action="launchTransport()" icon="icons/ui/launch.svg" align="left" width="24" height="16" />
<bw:button action="close('transport')" icon="icons/ui/close.svg" align="right" width="16" height="16" />
</bw:frame>
...
</bw:frame>
This would beside making the code more obvious also allow it to be somewhat related with the user interface code in betawidget (hence bw) and make the parsing effective. What betawidget display element would f.ex. a DIV element relate to?
I'm not trying to rain on your parade here, just giving some feedback from my own experiences, especially when it comes to creating WoW interfaces and the likes

Besides, from what I understand betawidget already has Lua support and the SVG support is on its way. As SVG is based on XML, all the tools will already be present that is needed to create a XML/LUA based UI, while writing an entire CSS3-compliant HTML renderer would take way too long
