mirror of
https://codeberg.org/schrottkatze/mgd2-tram-championships.git
synced 2025-07-03 10:37:39 +00:00
menu system: ITS ALIVE
This commit is contained in:
parent
2b18cdea38
commit
acbcfe5956
7 changed files with 216 additions and 30 deletions
|
@ -10,8 +10,8 @@ mod menus;
|
|||
#[derive(States, Default, Debug, Clone, PartialEq, Eq, Hash, Reflect)]
|
||||
#[allow(unused)]
|
||||
enum AppState {
|
||||
Menus,
|
||||
#[default]
|
||||
Menus,
|
||||
Ingame,
|
||||
PostGame,
|
||||
}
|
||||
|
@ -21,8 +21,10 @@ fn main() {
|
|||
.add_plugins(DefaultPlugins)
|
||||
.add_systems(Startup, camera::setup)
|
||||
.add_plugins(game::plugin)
|
||||
.add_plugins(menus::plugin)
|
||||
.init_state::<AppState>()
|
||||
.register_type::<AppState>()
|
||||
.add_plugins(debugging::plugin)
|
||||
.register_type::<AppState>()
|
||||
// .insert_state(AppState::Ingame)
|
||||
.run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue