What is TWL

TWL is a graphical user interface library targeted at games and game editors. It provides a rich set of standard widgets including labels, edit fields, tables, popups, tooltips, frames and a lot more. Different layout container are available to create even the most advanced user interfaces.

As games have a high demand on visual identity, TWL provides a very flexible theme manager. The theme manager decouples the visual representation of widgets from the code. Themes are specified in XML and PNG files with full alpha blending for effects such as glow or shadows.

With the TextArea class TWL also features a powerful HTML renderer which supports a subset of XHTML/CSS: floating elements, tables, images, unordered lists, text alignment, justified text and background images. See the TextArea Demo for details.

A Scala API is now also available

Screenshots
A simple look A very simple look. It is based on a set of borders, a few icons and gradients. This theme can be used as a starting point to create your own themes.
Blue glow (c) Eforen A complex look with blue glow as major design element. The glow extends outside of the widgets. This theme demonstrates the power of the theme engine.
Demo
Downloads

Nightly build results - updated at 05:00 GMT

twl.zip The complete content of the repositories TWL and TWLExamples in a single ZIP file.
It also contains all required external libraries including natives.
Download this file if you are unsure what to download.
TWL.jar Precompiled TWL library
twl-src.zip Complete library source code in a ZIP file
PNGDecoder.jar PNGDecoder class from TWL library
xpp3-1.1.4c_all.zip An implementation of the XMP1 API which is used by all TWL examples. Check the links section for more details.
Source

TWL is provided under the BSD license. The source code is available via Mercurial SCM. The complete repository can be download as .zip or .tar.gz file by using the repective links on each repository page.

Valid HTML 4.01 Transitional