czyzby/gdx-lml

List of lml tags

Hellgasm opened this issue · 2 comments

Hello,

Where can I find the list of all lml tags(or scene2d objects), all their attributes and possible attribute values?
There seems to be tags/attributes in your DTD file. How did you generate it? I couldn't even find Scene2d object and property list anywhere. Plus attribute descriptions would even be better but I don't think that's possible.

The list of tags and attributes varies based on your LML parser setup. You can add and remove any tags or attributes to suit your application. The official DTD file contains only the default settings.

As for the DTD generation, check out the official LML tutorial. In particular, the content assist section covers this topic.

I couldn't even find Scene2d object and property list anywhere.

The parser does not keep the tags and attributes lists directly. Instead, they are stored in the LmlSyntax object, which the parser has a reference to.

Plus attribute descriptions would even be better but I don't think that's possible.

Every attribute has a javadoc comment describing its behavior and the Scene2D method it handles. The DTD attribute definitions are proceeded with the Java class that represent them in code. Finding the class and reading its doc is as close as you can get to attribute descriptions.