1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

Spider: Highlight valid target stack when hovering over it

This is largely copied and pasted from Solitaire. Moving this into
LibCards somehow would be nice but I can't think of a nice way to do so
right now.
This commit is contained in:
Sam Atkins 2023-01-06 12:41:41 +00:00 committed by Linus Groh
parent e193679352
commit 80c7ac0d0e
2 changed files with 27 additions and 0 deletions

View file

@ -91,6 +91,7 @@ private:
void detect_full_stacks();
void detect_victory();
void move_focused_cards(CardStack& stack);
void clear_hovered_stack();
void paint_event(GUI::PaintEvent&) override;
void mousedown_event(GUI::MouseEvent&) override;
@ -117,6 +118,8 @@ private:
Gfx::IntRect m_original_stock_rect;
uint32_t m_score { 500 };
RefPtr<CardStack> m_hovered_stack;
};
}