Minecraft Flex UI

⭐ — (10 endorsements) 📥 296 downloads 📌 v0.0.1 📅 2/1/2023
⚪ Last updated 2023

By moheng233 · fabric

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 1/30/2023 📅 Created: 2/1/2023
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 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

🤖 AI-enhanced — based on mod data

📊 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

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More fabric 👤 More by moheng233 🔎 Similar Mods 🌐 Best fabric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods