aboutsummaryrefslogtreecommitdiff
path: root/go/ui
Commit message (Collapse)AuthorAgeFilesLines
* migrate to ebiten/v2/text/v2Florian Fischer2025-01-275-51/+52
|
* introduce game.State interface abstractionFlorian Fischer2025-01-272-27/+28
| | | | | This allows to not use the internal game state directly from client code.
* ui: add new number choiceFlorian Fischer2025-01-272-11/+101
|
* update dependencies and revert AppendInputChars changeFlorian Fischer2025-01-271-2/+3
|
* support special wall, gate and tower tile selectionFlorian Fischer2025-01-271-15/+122
|
* ui: allow multiple highlights of thesame game pieceFlorian Fischer2025-01-271-16/+28
|
* ui: add simple hamburger style pile hintFlorian Fischer2025-01-271-0/+59
|
* bump ebiten version to 2.5.1 and new APIsFlorian Fischer2025-01-274-9/+8
|
* ui: separate selection and options via their highlight colorFlorian Fischer2025-01-273-43/+66
|
* intermediate commitFlorian Fischer2025-01-271-2/+4
| | | | | | * use names for pile perm choice * fix PocList hover segfault * prevent mysterius autogenerated playTargets segfault
* 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
* fixup! intermeditae commitFlorian Fischer2025-01-271-1/+1
|
* intermeditae commitFlorian Fischer2025-01-271-0/+4
| | | | | | * implement dopping piles * implement simple spell targeting * add some simple spells
* use prompt for target selection of all actionsFlorian Fischer2025-01-273-9/+13
|
* export less methodsFlorian Fischer2025-01-271-2/+0
|
* implement unit and artifact switch actionFlorian Fischer2025-01-272-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-01-2710-30/+277
| | | | | * Generalize hover detection and move it into ui.Collection * Implement transparencu for the prompt banner
* replace Fatalf with PanicfFlorian Fischer2025-01-272-5/+5
| | | | Panicf includes a stacktrace and causes a debugger to halt.
* intermediate commitFlorian Fischer2025-01-274-6/+28
| | | | | | | | | | | | * fix a lot of target and action bugs * check target selection before adding it to the prompt * use the store view for stores on the map * fix card highlighting in CardGrid * Only prompt for Upkeep-/DiscardActions if appropriate * Add helper for areaEffects granting new FullActions * Add Target() helper selecting the first target to the Action interface * Fix BuyAction and DiscardAction targets * Remember the stores a player has seen
* intermediate commitFlorian Fischer2025-01-272-32/+6
|
* only scroll to the maximaFlorian Fischer2025-01-271-0/+9
|
* add sealed activity to select a starting deckFlorian Fischer2025-01-2710-99/+317
|
* improve state barFlorian Fischer2025-01-274-34/+41
|
* improve permanent pile supportFlorian Fischer2025-01-273-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-01-276-27/+88
|
* change unit attack representation and implement swordFlorian Fischer2025-01-271-1/+1
|
* intermediate commitFlorian Fischer2025-01-272-1/+6
|
* intermediate commitFlorian Fischer2025-01-274-15/+104
|
* intermeditae commitFlorian Fischer2025-01-278-59/+289
|
* intermediate commitFlorian Fischer2025-01-273-16/+35
|
* intermediate commitFlorian Fischer2025-01-279-108/+219
|
* intermediate commitFlorian Fischer2025-01-271-1/+1
| | | | | * Add static analysis and improve Makefile * Implement hints from static code analysis
* reformat using gofmtpFlorian Fischer2025-01-271-2/+2
|
* sanity check calculated x and y before using it as slice indexFlorian Fischer2025-01-271-0/+4
|
* intermediate commitFlorian Fischer2025-01-278-16/+337
| | | | Implement actions and multiple ui widgets
* implement unit movementFlorian Fischer2025-01-272-109/+212
|
* intermediate commitFlorian Fischer2025-01-271-0/+109