1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use bevy::prelude::*;

use crate::UiState;

use self::systems::build_settings;

pub mod components;
pub mod resources;
pub mod styles;
pub mod systems;

pub struct SettingsPlugin;

impl Plugin for SettingsPlugin {
    fn build(&self, app: &mut App) {
        // app.insert_resource(RenderSettings { brightness: 1.0 })
        app.add_systems(OnEnter(UiState::Settings), build_settings);
    }
}