reorder stuff for tui main menu
This commit is contained in:
parent
3417384b86
commit
130bb38725
4 changed files with 60 additions and 34 deletions
|
|
@ -13,8 +13,8 @@ mod render;
|
|||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, States, Default)]
|
||||
enum TuiState {
|
||||
MainMenu,
|
||||
#[default]
|
||||
MainMenu,
|
||||
InGame,
|
||||
}
|
||||
|
||||
|
|
@ -44,9 +44,11 @@ impl Plugin for RiichiTui {
|
|||
.add_systems(Update, console::draw_console.run_if(in_state(console::ConsoleState::Open)))
|
||||
|
||||
.init_state::<TuiState>()
|
||||
.add_systems(Update, render::draw_mainmenu.run_if(in_state(TuiState::MainMenu)))
|
||||
// .add_systems(Update, input::keyboard_input_system)
|
||||
.add_systems(Update, render::draw_ingame.run_if(in_state(TuiState::InGame)))
|
||||
.add_systems(Update,render::render_changed_hand.run_if(in_state(GameState::Play)))
|
||||
// .add_systems()
|
||||
.add_systems(Update, render::ingame::draw_ingame.run_if(in_state(TuiState::InGame)))
|
||||
.add_systems(Update, render::hand::render_changed_hand.run_if(in_state(GameState::Play)))
|
||||
// semicolon stopper
|
||||
;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue