bevy-basic-ui 0.4.12

A small manager for menus and huds
Documentation
use bevy::{
    asset::{Asset, Handle},
    ecs::system::Resource,
    reflect::TypePath,
};

use serde::Deserialize;

#[derive(Resource)]
pub struct SettingsVals(pub Vec<SettingsVal>);

#[derive(Deserialize, Clone, Debug)]
pub struct SettingsVal {
    pub tag: String,
    pub value: u32,
}

#[derive(Deserialize)]
pub struct SettingsCategory {
    pub name: String,
    pub contents: Vec<SettingsVal>,
}

#[derive(Asset, TypePath, Deserialize)]
pub struct AllSettings {
    pub categories: Vec<SettingsCategory>,
}

#[derive(Resource)]
pub struct TomlAsset(pub Handle<AllSettings>);