Retained-mode game GUI library in C++17: XML layouts, Luau scripting, OpenGL 3.3 renderer
https://github.com/bagobor/gamegui β// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Around since 2013 and still shipping
- 15 forks for 19 stars: people build on it
// how to help
// readme
gamegui
A retained-mode GUI library for games, written in C++17. Layouts are described in XML, behaviour is scripted in Luau, and the result is drawn with an OpenGL 3.3 core renderer. The design takes after the World of Warcraft interface: windows declare their look and their event handlers in markup, and small scripts glue them together.
Features
- Widgets: labels, buttons and image buttons, check boxes, edit boxes (plain, numeric, password), key binders, combo boxes, sliders, progress and image bars, scroll bars, scroll panes, image boxes, list boxes, categorized lists, markup text with colours, inline images, links and tooltips, frame windows that drag and resize, panels, tooltips and context menus.
- XML layouts with templates: a window can inherit its look from a base file
(
file="base\button.xml") and override only what differs. Windows align and stick to their parentβs edges when it resizes. - Luau scripting through LuaBridge3. Handlers are compiled to bytecode once and cached.
- Skinning with imagesets (texture atlases) and nine-slice frame imagery.