spaceship/controllers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Loïc Wisniewski 080e3bb928 #147: one resource per line, and the price back under its button
Both halves of the report had the same cause: a craft cell laid out with
more slack than its row pitch had room for.

The caption box was 62px for a one-line vessel name, which pushed the price
70px clear of the button it belonged to - "far from the button they are
about". And the price was given 184px of width in a 190px column, so a
two-resource price ran out of its own box and into its neighbour's.

Prices now put each resource on its own line. Not only where they would
otherwise overflow, which was my first attempt: two resources came to 174px
in a 184px box, so it fitted - until the player was holding three figures
rather than one, and then it did not. A layout that is correct until you get
rich is not correct, and the ticket asked for the line break outright.

The caption is one line tall now with the price directly under it, and rows
are placed off a MEASURED band rather than a written-down pair of tops - the
same fix #144 needed for the build menu, and now the same code. A
centre-anchored grid under a top-anchored header has a gap between them that
is half the panel height, so it can never be a constant.

The test pins what the ticket describes rather than the numbers behind it: a
multi-resource price is stacked, its content stays inside its own box, it
sits within 80px of its button, and no craft entry overlaps another - the
price of one row into the button of the next included, which the old
geometry did by 14px whatever was priced.
2026-08-29 13:05:46 +02:00
..
AimedFleetAbilityController.gd #108: the prologue - the convoy, the ambush, and the breach 2026-08-23 20:59:12 +02:00
AimedFleetAbilityController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
BuildController.gd #147: one resource per line, and the price back under its button 2026-08-29 13:05:46 +02:00
BuildController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
FireStickController.gd #89: the default gun bends onto a target near the aimed heading 2026-08-22 03:19:52 +02:00
FireStickController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GameController.gd #148: the main theme plays, and keeps playing 2026-08-29 13:05:21 +02:00
GameController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
GasBombController.gd Garrison laser vessels and gas bombers, on a shared ability seam 2026-08-23 19:23:35 +02:00
GasBombController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
LaserController.gd Garrison laser vessels and gas bombers, on a shared ability seam 2026-08-23 19:23:35 +02:00
LaserController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
MouseCombatController.gd #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
MouseCombatController.gd.uid #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00