GUI Lib
Deus GUI Library is a universal and extensible platform for developing graphical interfaces in the BTA Minecraft environment. This library offers developers a powerful set of tools for managing various user interface components while preserving the integrity of the original Minecraft code.
Key Features
- Declarative programming style: Create interfaces declaratively for simplified design
- Intuitive interface: Convenient API for managing GUI elements
- Constructors with minimal parameters: Simplify element creation with fewer arguments
- Flexible configuration: Adapt element parameters to your needs
- Automatically generated slots: Seamless integration with the
Containerclass - Theme system: Apply consistent styles to your interfaces
- Hierarchical architecture: Element management through tree structure
- Foreground text: Clear display of textual information
Available Elements
The library includes the following components: Button, ClickableElement, Column, DraggableElement, FreeElement, Panel, PlayerInventory, ProgressBar, Row, ScrollBar, Slot, Text, TextArea, TextField.
Development Principles
The main philosophy of the framework is to preserve the original Minecraft code without modifications. The system is designed as an extensible and flexible platform for managing graphical interfaces.
Technical Implementation
The framework uses a hierarchical node structure where a parent node contains child elements. Main classes include:
PageGui: Modified standard GUI with SPA Router support for managing different pagesAdvancedContainer: Extended version of the Container class with automatic slot placement according to element positions
Project Analysis: BTA-GuiLibrary
Development Summary
The BTA-GuiLibrary mod was created to simplify graphical interface development in BattleTech Advanced. Tools for working with XML and YAML were implemented, along with helper utilities for modders.
Achievements
- XML and YAML support with validation
- Useful tools and examples for developers
- Optimized code structure and TexturePack support
Challenges
- Low community adoption rate
- Initial documentation difficulties
Conclusion
Despite technical improvements, the mod did not achieve the expected level of popularity.
Note: This mod uses a modified version of Fabric (Babric) and is intended exclusively for Better than Adventure - a significantly modified version of Minecraft b1.7.3!