bgui - Range is an adaptation of the Python library bgui for handling graphical user interfaces (GUI) in the Range Engine.
Adaptation author: Bernardo Ribeiro
Email: bernardo.ribeiro@outlook.com.br
Original base: bgui by Mitchell Stokes (Moguri)
Original documentation: http://bgui.readthedocs.org/en/latest/
This project is under development! Some features may not be working properly or have not yet been adapted.
- Go to the
range 1.6directory, which contains the standard project hierarchy. - Use the
bguifolder directly in your Range Engine project. - Usage examples can be found in
range 1.6/scripts/(e.g.,slider_example.py,test_ui.py). - Example
.rangefiles are also available for reference.
Tip: Just keep the
bguifolder at the root of your Range Engine project to start using it.
The project includes a visual tool to create and edit BGUI XML files in your browser.
- Open
tools/xml_ui_editor.htmlin your local browser. - In the Hierarchy panel, click Load XML to import an existing interface file, or start from scratch.
- In the Inspector panel, fill widget fields (type, name, pos, size, text, etc.) and click Add widget.
- Use the widget list to Edit, Up, Down, or Delete existing widgets.
- In the Viewport panel, use the 16:9 preview as a visual reference while building the interface.
- Optionally load a theme using Load default theme.cfg or by selecting a custom theme file.
- Click Generate XML to refresh the output text.
- Click Save XML to write directly to a file (when browser permissions allow), or Download interface.xml as a fallback.
- The viewport is currently a preview-only area (no drag-and-drop editing yet).
- Browser CSS rendering may differ slightly from in-game OpenGL rendering.
- The generated XML is compatible with the BGUI XML loader used in this project.
Feel free to contribute to the project, report issues, or suggest improvements.