mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-14 23:53:14 +00:00
0d4072c806
This PR adds Material component inspection to the frontend Entity Inspector, and adds functional editing capabilities for the Transform and Material inspectors. ### Changes * Added a `ScalarFieldElement` for numeric form fields, with a hybrid slider/text-input UX inspired by Blender, Unreal Engine, etc. * Added `MaterialInspectorElement` for inspecting the Bevy `StandardMaterial` component * Wired up the `TransformInspectorElement` and `MaterialInspectorElement` to apply changes made in the UI to the Bevy scene * Refactored the `studio/ui/inspector` module to output `Result::Err`s to the dev console * Refactored the `studio/interaction/selection` module to use only the `Selection` resource, removing the redundant `Selected` component which added some unnecessary complexity. This fixes #39 * Fixed primitive shapes not receiving a selection outline when selected ### To-Do These tasks will be addressed in a forthcoming PR: * The **Transform** > **Rotation** section in the inspector is still not displaying sensible values. Currently it's just displaying the raw quaternion `xyz` vector rather than displaying the orientation in human-readable terms (e.g., as Euler angles). * We're currently ignoring the Primitive Shape component, which would allow the user to configure some additional geometric properties of the shape or replace it with a different one. --------- Co-authored-by: rewin <rewin1996@gmail.com>
88 lines
1.8 KiB
TOML
88 lines
1.8 KiB
TOML
[package]
|
|
name = "studio"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "studio"
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "studio-standalone"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "studio-headless"
|
|
path = "src/main-headless.rs"
|
|
|
|
[dependencies]
|
|
bevy-inspector-egui = "0.22.0"
|
|
bevy_mod_raycast = "0.16.0"
|
|
bevy_rapier3d = "0.23.0"
|
|
bevy_mod_outline = "0.6.0"
|
|
bevy_web_asset = "0.7.0"
|
|
bitflags = "2.4.0"
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
itertools = "0.12.1"
|
|
js-sys = { version = "0.3.65", optional = true }
|
|
parking_lot = "0.12.1"
|
|
serde = "1.0.192"
|
|
serde-wasm-bindgen = { version = "0.6.1", optional = true }
|
|
serde_json = "1.0.108"
|
|
studio-bvh = { path = "../studio-bvh" }
|
|
wasm-bindgen = "0.2.84"
|
|
web-sys = { version = "0.3.65", optional = true, features = [
|
|
"CustomEvent",
|
|
"CustomEventInit",
|
|
"Document",
|
|
"HtmlElement",
|
|
"Window",
|
|
] }
|
|
clap = { version = "4.4.18", features = ["derive"] }
|
|
futures-intrusive = "0.5.0"
|
|
wgpu = "0.17.1"
|
|
futures-lite = "2.2.0"
|
|
futures = "0.3.30"
|
|
image = "0.24.8"
|
|
bytemuck = "1.14.1"
|
|
space_editor = {git = "https://github.com/rewin123/space_editor", rev = "0f2439ba8cd38ebf2db8d90ea6de736992bcb56e"}
|
|
anyhow.workspace = true
|
|
serde_repr = "0.1.18"
|
|
bevy_tweening = "0.9"
|
|
async-compat = "0.2"
|
|
uuid = { version = "1", features = ["v4", "serde"]}
|
|
|
|
[dependencies.reqwest]
|
|
version = "0.11.24"
|
|
features = [
|
|
"default",
|
|
"json",
|
|
"stream",
|
|
]
|
|
|
|
[features]
|
|
wasm = [
|
|
"dep:console_error_panic_hook",
|
|
"dep:js-sys",
|
|
"dep:serde-wasm-bindgen",
|
|
"dep:web-sys",
|
|
"bevy_rapier3d/wasm-bindgen",
|
|
]
|
|
desktop = []
|
|
|
|
[dependencies.bevy]
|
|
workspace = true
|
|
|
|
[dependencies.bevy_mod_picking]
|
|
version = "0.17.0"
|
|
default-features = false
|
|
features = [
|
|
"backend_bevy_ui",
|
|
"backend_rapier",
|
|
"backend_raycast",
|
|
"backend_sprite",
|
|
"debug",
|
|
"selection",
|
|
]
|