tirbofish/dropbear · commit
8235d5cf136ac9978375ef6bdaa38a20e266b6ab
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.
Signature present but could not be verified.
Unverified
@@ -553,3 +553,5 @@ impl AnimationComponent { } } } + +pub const MAX_MORPH_WEIGHTS: usize = 4096; @@ -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 @@ -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