aboutsummaryrefslogtreecommitdiff
path: root/go/ui/choice.go
Commit message (Collapse)AuthorAgeFilesLines
* minor whitespace fixesFlorian Fischer2025-08-201-6/+6
|
* overhaul uiFlorian Fischer2025-08-201-18/+26
| | | | | | | | | | | * 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
* ui: add new number choiceFlorian Fischer2025-08-201-0/+65
|
* export less methodsFlorian Fischer2025-08-201-2/+0
|
* implement unit and artifact switch actionFlorian Fischer2025-08-201-39/+23
| | | | | | | | | | 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-10/+2
| | | | | * Generalize hover detection and move it into ui.Collection * Implement transparencu for the prompt banner
* improve permanent pile supportFlorian Fischer2025-08-201-5/+15
| | | | | | * Fix alot of bugs caused by permanents without tiles * Implement a permanent choice to select the permanents in a pile * Fix how pile hooks are called
* intermediate commitFlorian Fischer2025-08-201-0/+72