aboutsummaryrefslogtreecommitdiff
path: root/go/ui
Commit message (Collapse)AuthorAgeFilesLines
...
* scale pan distance for ScrollFlorian Fischer2025-08-201-1/+1
|
* switch focus on tap or clickFlorian Fischer2025-08-201-1/+3
|
* allow to update a TextBox's textFlorian Fischer2025-08-201-0/+6
|
* use constants instead of hardcoded valuesFlorian Fischer2025-08-201-1/+1
|
* ui: include touch inputs in the input queueFlorian Fischer2025-08-203-97/+94
|
* support js/wasm for openUrlFlorian Fischer2025-08-202-1/+16
|
* add simple timer bar widgetFlorian Fischer2025-08-201-0/+61
|
* improve prompt cancellationFlorian Fischer2025-08-201-2/+8
| | | | | | | | The cancel button was overlaying the submit button preventing the submission of a prompt. Distinguish between cancelable and mandatory prompt. Only^ allow cancelable prompts to be removed. Fixes: 37acd982
* make input events consumableFlorian Fischer2025-08-203-37/+140
| | | | | | 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.
* minor whitespace fixesFlorian Fischer2025-08-201-6/+6
|
* initialize event handler map and hanlde neutralized tilesFlorian Fischer2025-08-201-0/+3
|
* fix ToggleCardView blocking other widgetsFlorian Fischer2025-08-201-5/+8
|
* add toggable card viewFlorian Fischer2025-08-201-0/+54
|
* refactor client activitiesFlorian Fischer2025-08-201-0/+25
| | | | | Make the activity stack explicit and move reusable activities to the activity package.
* improve the sealed activityFlorian Fischer2025-08-201-0/+1
| | | | | | Do not export the sealed client type. Validate the entered set list. Show the default set list.
* overhaul uiFlorian Fischer2025-08-2016-190/+509
| | | | | | | | | | | * 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
* add a singleton to handle touch inputsFlorian Fischer2025-08-201-0/+220
|
* define global player colorsFlorian Fischer2025-08-201-0/+4
|
* migrate to ebiten/v2/text/v2Florian Fischer2025-08-205-51/+52
|
* introduce game.State interface abstractionFlorian Fischer2025-08-202-27/+28
| | | | | This allows to not use the internal game state directly from client code.
* ui: add new number choiceFlorian Fischer2025-08-202-11/+101
|
* update dependencies and revert AppendInputChars changeFlorian Fischer2025-08-201-2/+3
|
* support special wall, gate and tower tile selectionFlorian Fischer2025-08-201-15/+122
|
* ui: allow multiple highlights of thesame game pieceFlorian Fischer2025-08-201-16/+28
|
* ui: add simple hamburger style pile hintFlorian Fischer2025-08-201-0/+59
|
* bump ebiten version to 2.5.1 and new APIsFlorian Fischer2025-08-204-9/+8
|
* ui: separate selection and options via their highlight colorFlorian Fischer2025-08-203-43/+66
|
* intermediate commitFlorian Fischer2025-08-202-4/+8
| | | | | | | | | | | * 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
* intermeditae commitFlorian Fischer2025-08-201-0/+4
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* use prompt for target selection of all actionsFlorian Fischer2025-08-203-9/+13
|
* export less methodsFlorian Fischer2025-08-201-2/+0
|
* implement unit and artifact switch actionFlorian Fischer2025-08-202-40/+27
| | | | | | | | | | 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-2010-30/+277
| | | | | * Generalize hover detection and move it into ui.Collection * Implement transparencu for the prompt banner
* replace Fatalf with PanicfFlorian Fischer2025-08-202-5/+5
| | | | Panicf includes a stacktrace and causes a debugger to halt.
* intermediate commitFlorian Fischer2025-08-204-35/+31
|
* only scroll to the maximaFlorian Fischer2025-08-201-0/+9
|
* add sealed activity to select a starting deckFlorian Fischer2025-08-2010-99/+317
|
* improve state barFlorian Fischer2025-08-204-34/+41
|
* improve permanent pile supportFlorian Fischer2025-08-203-7/+32
| | | | | | * 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
* add text input and properly center textFlorian Fischer2025-08-206-27/+88
|
* change unit attack representation and implement swordFlorian Fischer2025-08-201-1/+1
|
* intermediate commitFlorian Fischer2025-08-2012-0/+991