Minecraft Flex UI
⚪ Last updated 2023⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
🖼️ Gallery (1 images)
🔍 Analysis
- 🏆 #58 of 909 fabric mods in this game by downloads
📋 About This Mod
# Minecraft Flex UI # For ordinary players do not download the mod In most cases the module is used by other module developers and is included in their mod Jar package # Description Based on `facebook` open source `Yoga` layout engine implements the `Minecraft` GUI framework based on the `Flex` layout. A subset of the `Flex` standard is implemented on top of `Yoga` and most of the `CSS` properties are implemented as well. The design concept of `MVC` is adopted to realize the one-way and two-way data binding. Developers can design and implement complex UI interfaces on top of this, and this project can be used as `Yoga` engine embedded in the game as a non-exhaustive reference implementation of the game layout engine. # Example !(https://github.com/moheng233/MFUI/raw/master/doc/example.gif) ```java public class WidgetTestScreen extends WidgetScreen { protected StringBuilderObservable text = new StringBuilderObservable(); public WidgetTestScreen() { super(Text.of("test")); } @Override public void widget(ScreenWidget root) { root.flexDirection.set(WidgetFlexDirection.Row) .justifyContent.set(WidgetJustify.Center) .alignItems.set(WidgetAlign.Center) .child(new BoxWidget() .background.set(RectDrawable.LIGHT_PANEL) .child(new LabelWidget() .text.binding(text.computed((StringBuilderObservable text) -> Text.of(text.getString()))) .margin(WidgetEdge.All, 4)) .child(new TextBoxWidget() .text.binding(text)) .child(new ButtonWidget() .click.on((mouse) -> close()) .child(new LabelWidget() .text.set(Text.of("取消")))) ); } } ``` # Data Binding By default all bindings from `non-computed binding sources` are `bi-directional bindings`. > Setting values for `computed binding sources` is ignored **But most components will only operate `one-way` on bound values**
# Minecraft Flex UI
# For ordinary players do not download the mod In most cases the module is used by other module developers and is included in their mod Jar package
# Description Based on `facebook` open source `Yoga` layout engine implements the `Minecraft` GUI framework based on the `Flex` layout.
A subset of the `Flex` standard is implemented on top of `Yoga` and most of the `CSS` properties are implemented as well.
The design concept of `MVC` is adopted to realize the one-way and two-way data binding.
Developers can design and implement complex UI interfaces on top of this, and this project can be used as `Yoga` engine embedded in the game as a non-exhaustive reference implementation of the game layout engine.
!(https://github.com/moheng233/MFUI/raw/master/doc/example.gif)
```java public class WidgetTestScreen extends WidgetScreen { protected StringBuilderObservable text = new StringBuilderObservable();
public WidgetTestScreen() { super(Text.of("test")); }
@Override public void widget(ScreenWidget root) { root.flexDirection.set(WidgetFlexDirection. Row) .justifyContent.set(WidgetJustify. Center) .alignItems.set(WidgetAlign. Center) .child(new BoxWidget() .background.set(RectDrawable. LIGHT_PANEL) .child(new LabelWidget() .text.binding(text.computed((StringBuilderObservable text) -> Text.of(text.getString()))) .margin(WidgetEdge. All, 4)) .child(new TextBoxWidget() .text.binding(text)) .child(new ButtonWidget() .click.on((mouse) -> close()) .child(new LabelWidget() .text.set(Text.of("取消")))) ); } }
# Data Binding By default all bindings from `non-computed binding sources` are `bi-directional bindings`. > Setting values for `computed binding sources` is ignored
But most components will only operate `one-way` on bound values
📊 Mod Details
- Game
- Minecraft Mods
- Author
- moheng233
- Version
- 0.0.1
- Downloads
- 296
- Endorsements
- 10
- Category
- fabric
- Created
- 2/1/2023
- Updated
- 1/30/2023
- Game Versions
- 1.19, 1.19.1, 1.19.2, 1.19.3
- Tags
- library, utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does Minecraft Flex UI support?
The author lists 1.19, 1.19.1, 1.19.2, 1.19.3. Other versions may work but are untested by the author.
What is the latest version of Minecraft Flex UI?
Version 0.0.1, published 2023-01-30 with 296 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await
