kitgit

tirbofish/dropbear · diff

8235d5c · Thribhu K

wip: ui editor refactor: prepared kino_ui for serialization refactor: integrated kino_ui WidgetTree into the components and redback-runtime. feature: ability to switch between UI and editor possible now feature: implemented categorisation to adding a component feature: scene settings related to overlaying.

Unverified

diff --git a/crates/dropbear-engine/src/animation.rs b/crates/dropbear-engine/src/animation.rs
index a1925fc..ec651e8 100644
--- a/crates/dropbear-engine/src/animation.rs
+++ b/crates/dropbear-engine/src/animation.rs
@@ -553,3 +553,5 @@ impl AnimationComponent {
         }
     }
 }
+
+pub const MAX_MORPH_WEIGHTS: usize = 4096;
\ No newline at end of file
diff --git a/crates/eucalyptus-core/Cargo.toml b/crates/eucalyptus-core/Cargo.toml
index d91d577..60e2573 100644
--- a/crates/eucalyptus-core/Cargo.toml
+++ b/crates/eucalyptus-core/Cargo.toml
@@ -12,6 +12,7 @@ crate-type = ["rlib", "cdylib"]
 [dependencies]
 dropbear-macro = { path = "../dropbear-macro" }
 magna-carta = { path = "../magna-carta" }
+kino-ui = { path = "../kino-ui", features = ["ser"]}
 
 anyhow.workspace = true
 postcard.workspace = true
diff --git a/crates/eucalyptus-core/src/billboard.rs b/crates/eucalyptus-core/src/billboard.rs
index 60d5405..757be2a 100644
--- a/crates/eucalyptus-core/src/billboard.rs
+++ b/crates/eucalyptus-core/src/billboard.rs
@@ -23,6 +23,8 @@ pub struct BillboardComponent {
     pub world_size: glam::Vec2,
     #[serde(default = "default_enabled")]
     pub enabled: bool,
+    #[serde(default)]
+    pub ui_tree: kino_ui::WidgetTree,
 }
 
 impl Default for BillboardComponent {
@@ -32,6 +34,7 @@ impl Default for BillboardComponent {
             rotation: None,
             world_size: glam::Vec2::ONE,
             enabled: true,
+            ui_tree: Default::default(),
         }
     }
 }
@@ -47,7 +50,7 @@ impl Component for BillboardComponent {
         ComponentDescriptor {
             fqtn: "eucalyptus_core::billboard::BillboardComponent".to_string(),
             type_name: "Billboard".to_string(),
-            category: Some("Rendering".to_string()),
+            category: Some("UI".to_string()),

Large diffs are not rendered by default. Showing the first 50 of 1919 lines. Show full diff