hover effect, layout hands and ponds
This commit is contained in:
parent
4112edbf2a
commit
8a8a702a08
6 changed files with 163 additions and 20 deletions
|
|
@ -59,15 +59,16 @@ impl Plugin for RiichiTui {
|
|||
// general setup
|
||||
.init_state::<TuiState>()
|
||||
.add_computed_state::<InGame>()
|
||||
.add_systems(PreUpdate, input::kb_input_system)
|
||||
.add_systems(PreUpdate, input::keyboard::input_system)
|
||||
.add_systems(PreUpdate, input::mouse::input_system.chain())
|
||||
|
||||
// main menu
|
||||
.add_systems(PostUpdate, menu::draw_mainmenu.run_if(in_state(TuiState::MainMenu)))
|
||||
.add_systems(Update, menu::draw_mainmenu.run_if(in_state(TuiState::MainMenu)))
|
||||
|
||||
// gaming
|
||||
.init_resource::<render::hand::RenderedHand>()
|
||||
.add_systems(PostUpdate, render::hand::render_hands.run_if(in_state(InGame).and(in_state(GameState::Play))))
|
||||
.add_systems(PostUpdate, render::ingame::draw_ingame.run_if(in_state(InGame)))
|
||||
.add_systems(Update, render::hand::render_hands.run_if(in_state(InGame).and(in_state(GameState::Play))))
|
||||
.add_systems(Update, render::ingame::draw_ingame.run_if(in_state(InGame)))
|
||||
|
||||
// semicolon stopper
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue