Skip to content

If an action card is not obtainable or playable, highlight the resource that prevents performing/obtaining #24

@shaoster

Description

@shaoster

There are already separate functions in Action.js that return a true/false for whether the obtain/perform is valid.
We could extend this function to also return a "reason" if the requested move is not valid, and then provide that feedback in the UI.

Potential UI changes:

  1. Add a highlighted/flashing style to the resource icon that's preventing the move.
  2. When clicked or hovered, pop up a text description explaining why the move is invalid.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions