aboutsummaryrefslogtreecommitdiff
path: root/go/ui/button.go
Commit message (Collapse)AuthorAgeFilesLines
* add doc comment for NewRoundSimpleButtonFlorian Fischer2025-07-241-0/+3
|
* overhaul uiFlorian Fischer2025-05-011-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-01-271-6/+12
|
* bump ebiten version to 2.5.1 and new APIsFlorian Fischer2025-01-271-2/+2
|
* intermediate commitFlorian Fischer2025-01-271-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-01-271-4/+9
|
* move more ui logic into CollectionFlorian Fischer2025-01-271-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-01-271-2/+2
|
* add text input and properly center textFlorian Fischer2025-01-271-9/+2
|
* intermeditae commitFlorian Fischer2025-01-271-2/+12
|
* intermediate commitFlorian Fischer2025-01-271-24/+21
|
* intermediate commitFlorian Fischer2025-01-271-0/+53
Implement actions and multiple ui widgets