//! Hint and right-click highlights, plus cursor hit-testing helpers. use super::*; use bevy::color::Color; use solitaire_core::Card; use solitaire_core::game_state::GameState; use crate::events::StateChangedEvent; use crate::layout::{Layout, LayoutResource}; use crate::pause_plugin::PausedResource; use crate::resources::{DragState, GameStateResource}; use crate::settings_plugin::SettingsResource; use crate::table_plugin::{PILE_MARKER_DEFAULT_COLOUR, PileMarker}; /// Counts down `HintHighlight::remaining` each frame. When it reaches zero, /// removes both `HintHighlight` and `HintHighlightTimer` (if present) and /// resets the card sprite to its normal face-up colour. pub(super) fn tick_hint_highlight( time: Res