From 1b71488df8e57b70ca469adb079855360624ff05 Mon Sep 17 00:00:00 2001 From: griffi-gh <prasol258@gmail.com> Date: Tue, 11 Mar 2025 16:25:30 +0100 Subject: [PATCH] add WIP `bevy_hui` --- Cargo.toml | 1 + bevy_hui/Cargo.toml | 16 ++++++++++++++++ bevy_hui/src/input.rs | 1 + bevy_hui/src/lib.rs | 7 +++++++ bevy_hui/src/render.rs | 1 + 5 files changed, 26 insertions(+) create mode 100644 bevy_hui/Cargo.toml create mode 100644 bevy_hui/src/input.rs create mode 100644 bevy_hui/src/lib.rs create mode 100644 bevy_hui/src/render.rs diff --git a/Cargo.toml b/Cargo.toml index 5244000..56f2b94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,4 +10,5 @@ members = [ "hui-wgpu", "hui-winit", "hui-loaders", + "bevy_hui", ] diff --git a/bevy_hui/Cargo.toml b/bevy_hui/Cargo.toml new file mode 100644 index 0000000..e81d8c4 --- /dev/null +++ b/bevy_hui/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "bevy_hui" +version = "0.1.0-alpha.7" +edition = "2024" +publish = false # WIP + +[dependencies] +bevy = { version = "0.15", default-features = false } +hui-painter = { version = "0.1.0-alpha.7", path = "../hui-painter", default-features = false } +hui = { version = "0.1.0-alpha.7", path = "../hui", default-features = false, optional = true } + +[features] +default = ["plugin-all"] +plugin-all = ["plugin-painter", "plugin-input"] +plugin-painter = [] +plugin-input = ["dep:hui"] \ No newline at end of file diff --git a/bevy_hui/src/input.rs b/bevy_hui/src/input.rs new file mode 100644 index 0000000..2f4cfbf --- /dev/null +++ b/bevy_hui/src/input.rs @@ -0,0 +1 @@ +pub struct UiInputPlugin {} \ No newline at end of file diff --git a/bevy_hui/src/lib.rs b/bevy_hui/src/lib.rs new file mode 100644 index 0000000..a290016 --- /dev/null +++ b/bevy_hui/src/lib.rs @@ -0,0 +1,7 @@ +mod input; +pub use input::UiInputPlugin; + +mod render; +pub use render::UiRenderPlugin; + +pub struct UiPlugin {} \ No newline at end of file diff --git a/bevy_hui/src/render.rs b/bevy_hui/src/render.rs new file mode 100644 index 0000000..b5b0e8d --- /dev/null +++ b/bevy_hui/src/render.rs @@ -0,0 +1 @@ +pub struct UiRenderPlugin {} \ No newline at end of file