The UI parts will end up in "widgets.rs". Buttons, labels, etc. The "contsants.rs" module is meant to have compile-time configurables. Bevy's reflection abilities make it possible to alter these at runtime, which means this module will actually have the startup defaults rather than true program constants.
13 lines
218 B
Rust
13 lines
218 B
Rust
//! Program constants & defaults
|
|
|
|
use bevy::prelude::*;
|
|
|
|
#[derive(Debug, Reflect, Resource)]
|
|
struct ConfigDefaults {}
|
|
|
|
impl FromWorld for ConfigDefaults {
|
|
fn from_world(world: &mut World) -> Self {
|
|
todo!()
|
|
}
|
|
}
|