generated from GarandPLG/rust-flake-template
Add scrolling actions and board widget
Introduce directional and scroll actions, update keybindings, add scrollbar state to SkirmishState, and render the board with a new BoardWidget. Adjust CLI defaults and layout heights accordingly.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use ratatui::widgets::ScrollbarState;
|
||||
|
||||
use crate::{
|
||||
app::states::{MainMenuState, PerkDecksState, SettingsState, SkillsConfigState, SkirmishState},
|
||||
cli::Cli,
|
||||
@@ -23,6 +25,8 @@ impl GameStates {
|
||||
skirmish: SkirmishState {
|
||||
id: 1,
|
||||
name: "Skirmish",
|
||||
vertical_scrollbar: ScrollbarState::new(0),
|
||||
horizontal_scrollbar: ScrollbarState::new(0),
|
||||
},
|
||||
perk_decks: PerkDecksState {
|
||||
id: 2,
|
||||
|
||||
Reference in New Issue
Block a user