Structure of the layout file (layout.xml)
Prev
Next

Structure of the layout file (layout.xml)

The top-level tag is unique and is named <ktuberling>. It contains several <playground> tags, one per playground, and several <language> tags, one per language.

The <playground> tag has two attributes: gameboard and masks. These attributes give the name of the files holding the pictures. The <playground> tag also contains one <menuitem> tag, one <editablearea> tag, several <category> tags, and several <object> tags.

The <menuitem> tag describes the action identifier of the menu item allowing to select position of the area where you can drop objects, and the label of this menu item. This action identifier should be identical to the one in ktuberlingui.rc.

The <editablearea> tag describes the position of the area where you can drop objects, and the name of the sound associated with it.

The <category> tag describes the position and the label of a text describing a group of objects. For example, it can describe the position and the text of the group of “goodies”.

The <object> tag describes the position (in the gameboard and in the masks) of an object, as well as the name of the sound associated with it.

The <language> tag has one attribute: code This attribute give the code of the locale for that language. The <language> tag also contains one <menuitem> tag and several <sound> tags.

The lower level tags are not explained here, since their meaning is quite straightforward. If you modify layout.xml, don't forget to modify layout.i18n and ktuberlingui.rc accordingly.

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team