Support for librocket

Support for librocket

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Support for librocket

Post by SpliFF »

http://www.librocket.com/

It's a UI middleware for creating windows/panels using a subset of HTML and CSS (called RML and RCSS respectively). In short if you want UI elements like tables or select boxes you design them in RML/RCSS and then load them through librocket.

The advantage of this approach is it removes the requirement for the UI designer to know Lua. Most designers aren't programmers so building your Spring UI currently requires a programmer to translate the designs into OpenGL calls.

LibRocket supports many GUI elements that are difficult to implement in Lua/OpenGL. Elements that come to mind are tables with dynamic cell resizing, drop-down lists, flowed content, floated elements, scrolling content, forms, tabs, backgrounds, borders and UI events like drag-and-drop. I'm not saying you can't do these things now, just that they are difficult and generally ugly to code.

I looked around at a variety of UI middleware but most are either:

1.) too ugly (fltk,gtk,etc)
2.) don't work over OpenGL (most of them)
3.) too heavy (QT,webkit,etc)

libRocket appears to provide enough CSS support for elegant designs without being prohibitively complex.
Post Reply

Return to “Feature Requests”