bevy_codex/resources.rs
1use bevy::{color::palettes::css::WHITE, prelude::*};
2
3#[derive(Resource, Clone)]
4pub struct CodexSettings {
5 pub title: String,
6 pub button_texture: String,
7 pub button_color: Color,
8 pub font: String,
9 pub debug: bool,
10}
11
12impl Default for CodexSettings {
13 fn default() -> Self {
14 Self {
15 title: "test".to_string(),
16 button_texture: "tile_0003.png".to_string(),
17 button_color: WHITE.into(),
18 font: "fonts/FiraSans-Bold.ttf".to_string(),
19 debug: false,
20 }
21 }
22}