1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use self::systems::build_settings;
use bevy::prelude::*;
use bevy_lunex::UiGenericPlugin;
use components::SettingsPgUi;
use resources::Settings;

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

pub struct SettingsUiPlugin;

impl Plugin for SettingsUiPlugin {
    fn build(&self, app: &mut App) {
        app.add_plugins((
            UiGenericPlugin::<SettingsPgUi>::new(),
            bevy_settings::SettingsPlugin::<Settings>::new("GkPixel", "Dreamlighters"),
        ))
        .add_systems(Update, build_settings);
    }
}