aboutsummaryrefslogtreecommitdiff
path: root/go/client
Commit message (Collapse)AuthorAgeFilesLines
* support remote draftsFlorian Fischer2025-08-201-1/+1
|
* rework the client's input handlingFlorian Fischer2025-08-202-66/+66
|
* improve prompt cancellationFlorian Fischer2025-08-202-10/+26
| | | | | | | | 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-202-1/+2
| | | | | | 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.
* refactor client activitiesFlorian Fischer2025-08-204-362/+32
| | | | | Make the activity stack explicit and move reusable activities to the activity package.
* add touch friendly way to cancel the current promptFlorian Fischer2025-08-202-9/+24
|
* implement simple bot based draftFlorian Fischer2025-08-202-0/+210
|
* support touch inputFlorian Fischer2025-08-201-0/+4
|
* improve the sealed activityFlorian Fischer2025-08-201-21/+31
| | | | | | Do not export the sealed client type. Validate the entered set list. Show the default set list.
* support touch input as selectionFlorian Fischer2025-08-202-5/+37
|
* define global player colorsFlorian Fischer2025-08-203-8/+2
|
* improve and fix slow action timing checkFlorian Fischer2025-08-201-0/+4
| | | | | Do not allow to declare slow play actions in the client. Fix the slow action check in the game state.
* introduce game.State interface abstractionFlorian Fischer2025-08-202-32/+27
| | | | | This allows to not use the internal game state directly from client code.
* support choosing a value for X when playing cards with variadic costsFlorian Fischer2025-08-201-9/+27
|
* check if Targets allow a selectionFlorian Fischer2025-08-201-1/+1
| | | | This fixes highlighting when an action needs no targets at all.
* client: start trigger implementationFlorian Fischer2025-08-201-0/+14
|
* client: make key bindings dynamicFlorian Fischer2025-08-202-32/+85
|
* remove duplicate selectedObject assignmentsFlorian Fischer2025-08-201-2/+0
| | | | | The selected obj is assigned when creating an action choice therefore it is not necessary to assign it additionally beforehand.
* client: remove active prompt or choice before adding a new oneFlorian Fischer2025-08-201-6/+12
|
* bump ebiten version to 2.5.1 and new APIsFlorian Fischer2025-08-202-2/+2
|
* prompt for selection if the targets allow selectionsFlorian Fischer2025-08-201-1/+2
|
* ui: separate selection and options via their highlight colorFlorian Fischer2025-08-201-11/+12
|
* intermediate commitFlorian Fischer2025-08-202-3/+15
| | | | | | | | | | | * 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-1/+0
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* run screen updates after handling user inputFlorian Fischer2025-08-201-4/+8
| | | | | The reordering of the update logic hopefully results in a more responsive UX.
* allow to exit any prompt on escFlorian Fischer2025-08-201-1/+5
|
* do not draw the pass button multiple timesFlorian Fischer2025-08-201-1/+3
|
* implement equip actionFlorian Fischer2025-08-201-7/+46
|
* use prompt for target selection of all actionsFlorian Fischer2025-08-201-59/+114
|
* implement unit and artifact switch actionFlorian Fischer2025-08-201-10/+5
| | | | | | | | | | 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-204-201/+97
| | | | | * Generalize hover detection and move it into ui.Collection * Implement transparencu for the prompt banner
* client: use only the currently available actions in the action choiceFlorian Fischer2025-08-201-2/+2
|
* replace Fatalf with PanicfFlorian Fischer2025-08-201-2/+2
| | | | Panicf includes a stacktrace and causes a debugger to halt.
* fix NPE when adding the wrong widgetFlorian Fischer2025-08-201-1/+1
|
* intermediate commitFlorian Fischer2025-08-201-46/+75
|
* sealed: only let the user select buyable cardsFlorian Fischer2025-08-201-1/+6
|
* add sealed activity to select a starting deckFlorian Fischer2025-08-204-68/+192
|
* improve state barFlorian Fischer2025-08-201-3/+2
|
* remove debug messages from the clientFlorian Fischer2025-08-201-2/+0
|
* fix some warnings reported by golang-ciFlorian Fischer2025-08-201-6/+2
|
* improve permanent pile supportFlorian Fischer2025-08-201-9/+37
| | | | | | * 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
* set textInput input value to the specified player nameFlorian Fischer2025-08-201-6/+6
| | | | | Only setting the label gives the user the wronmg impression and does not return any input.
* add text input and properly center textFlorian Fischer2025-08-201-10/+61
|
* intermediate commitFlorian Fischer2025-08-203-0/+718