Thanks to visit codestin.com
Credit goes to github.com

Skip to content

empathic-ai/flux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splash

Flux

⚠️ Still in early development. ⚠️

A cohesive system for networking/replication, data binding and data storage using Bevy ECS.

Create complex configurations of entities (scenes, UI layouts, etc.) using a straightforward builder pattern.

Instructions

To add to your project, simply run:

cargo add --git https://github.com/empathic-ai/flux.git

Within your app, you can use the builder like this:

use bevy::prelude::*;
use flux::prelude::*;

fn main() {
  App::new()
    .add_startup_system(create_simple_ui)
    .run();
}

// Use the builder to create a simple sign up UI
fn create_simple_ui(mut commands: Commands) {
  commands.child().expand().v_list().small_padding().with_children(|parent| {
      parent.child().input_field("Username".to_string(), InputType::Default);
      parent.child().input_field("Email".to_string(), InputType::Default);
      parent.child().input_field("Password".to_string(), InputType::Password);
  });
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages