sparkles
This commit is contained in:
@@ -2,7 +2,15 @@ use std::time::{Duration, Instant};
|
||||
|
||||
use crate::state::Modal;
|
||||
|
||||
pub struct Sparkle {
|
||||
pub x: u16,
|
||||
pub y: u16,
|
||||
pub char_idx: usize,
|
||||
pub life: u8,
|
||||
}
|
||||
|
||||
pub struct UiState {
|
||||
pub sparkles: Vec<Sparkle>,
|
||||
pub status_message: Option<String>,
|
||||
pub flash_until: Option<Instant>,
|
||||
pub modal: Modal,
|
||||
@@ -16,6 +24,7 @@ pub struct UiState {
|
||||
impl Default for UiState {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
sparkles: Vec::new(),
|
||||
status_message: None,
|
||||
flash_until: None,
|
||||
modal: Modal::None,
|
||||
|
||||
Reference in New Issue
Block a user