aboutsummaryrefslogtreecommitdiff
path: root/go/ui/button.go
Commit message (Collapse)AuthorAgeFilesLines
* switch to new vector API for drawing pathsFlorian Fischer2025-10-081-2/+2
|
* add ui to packages and format codeFlorian Fischer2025-09-031-1/+0
|
* add discard2 icon and button to trigger the free actionFlorian Fischer2025-08-201-0/+15
|
* add doc comment for NewRoundSimpleButtonFlorian Fischer2025-08-201-0/+3
|
* overhaul uiFlorian Fischer2025-08-201-15/+38
| | | | | | | | | | | * 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-6/+12
|
* bump ebiten version to 2.5.1 and new APIsFlorian Fischer2025-08-201-2/+2
|
* intermediate commitFlorian Fischer2025-08-201-2/+4
| | | | | | | | | | | * Implement move artifact action * Fix widget update memory leak * update the highlights not during on each frame * do not update the unchanged label of a button * Allow to exit the game by pressing 'q' * Implement some cards from the magic set * Improve permanent formatting * Some tweaks to UnitAI code
* use prompt for target selection of all actionsFlorian Fischer2025-08-201-4/+9
|
* move more ui logic into CollectionFlorian Fischer2025-08-201-7/+0
| | | | | * 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-2/+2
|
* add text input and properly center textFlorian Fischer2025-08-201-9/+2
|
* intermediate commitFlorian Fischer2025-08-201-0/+60