aboutsummaryrefslogtreecommitdiff
path: root/go/ui/collection.go
Commit message (Collapse)AuthorAgeFilesLines
* make input events consumableFlorian Fischer2025-08-201-37/+58
| | | | | | Having a input queue of consumable input events allow widgets to prevent the further handling of the same event by different collections by consuming the event.
* overhaul uiFlorian Fischer2025-08-201-15/+138
| | | | | | | | | | | * implement events instead of interfaces Interfaces and the wrappers head the problem that they could not support multiple events at once or only a single one without loosing the others. * add text input support for WASM on mobile A hidden html input is required to open the keyboard and receive the input. * improve the number choice * fix using the default number * add submit button only if a onclick method was provided
* migrate to ebiten/v2/text/v2Florian Fischer2025-08-201-3/+2
|
* update dependencies and revert AppendInputChars changeFlorian Fischer2025-08-201-2/+3
|
* bump ebiten version to 2.5.1 and new APIsFlorian Fischer2025-08-201-3/+2
|
* intermeditae commitFlorian Fischer2025-08-201-0/+4
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* implement unit and artifact switch actionFlorian Fischer2025-08-201-1/+4
| | | | | | | | | | Simplify the Choice Widget and make it a TextBox variant. Drive-by fixes: * ui.Collection: prioritize newer widgets during active widget selection * game.FullAction: fix incorrect cost function. Full actions cost all available actions. Also fix the cost check
* move more ui logic into CollectionFlorian Fischer2025-08-201-2/+42
| | | | | * Generalize hover detection and move it into ui.Collection * Implement transparencu for the prompt banner
* add sealed activity to select a starting deckFlorian Fischer2025-08-201-0/+70