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
..
BreachOverlay.gd
#125 : slow the prologue down, and give the breach a real black hole
2026-08-24 13:25:10 +02:00
BreachOverlay.gd.uid
Add the .uid files for the newest tests
2026-08-24 20:50:51 +02:00
DevWaveButton.gd
#110 : a dev-mode button that puts a wave on the board now
2026-08-23 21:58:58 +02:00
DevWaveButton.gd.uid
Add the .uid files Godot generated for the newest scripts
2026-08-24 12:10:41 +02:00
FormationEditor.gd
#118/#121: the speed fader and the formation editor under a mouse
2026-08-23 21:59:24 +02:00
FormationEditor.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
GarrisonPanel.gd
#102/#103 (#97d/#97e): the outpost, and the garrison you compose for it
2026-08-23 14:02:20 +02:00
GarrisonPanel.gd.uid
Add the .uid files Godot generated for the new scripts
2026-08-23 19:23:50 +02:00
HangarMenuPanel.gd
#111/#120: the crafter and hangar panels get room to breathe
2026-08-23 21:59:26 +02:00
HangarMenuPanel.gd.uid
Add the .uid files Godot generated for the newest scripts
2026-08-24 12:10:41 +02:00
IconButton.gd
#140 : the objective moves behind a button next to the map's
2026-08-28 15:37:13 +02:00
IconButton.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
MainMenu.gd
#148 : the main theme plays, and keeps playing
2026-08-29 13:05:21 +02:00
MainMenu.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
MainMenu.tscn
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
NarrationBanner.gd
#128 : a dialog stops the game until it is acknowledged
2026-08-28 14:40:46 +02:00
NarrationBanner.gd.uid
Add the .uid files Godot generated for the newest scripts
2026-08-24 12:10:41 +02:00
NeonNumber.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
NeonNumber.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
NeonPanel.gd
#92 : shrink the confirm popup to the window it is in
2026-08-22 23:29:44 +02:00
NeonPanel.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
PaletteEntryButton.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
PaletteEntryButton.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
PlanningPanel.gd
#106/#107 (#98a/#98b): the Planning Center
2026-08-23 14:21:52 +02:00
PlanningPanel.gd.uid
Add the .uid files Godot generated for the new scripts
2026-08-23 19:23:50 +02:00
PriceTag.gd
#147 : one resource per line, and the price back under its button
2026-08-29 13:05:46 +02:00
PriceTag.gd.uid
#136 , #137 , #134 : one build grid that cannot stack, one way to show a price
2026-08-28 15:05:20 +02:00
QuestPanel.gd
#140 : the objective moves behind a button next to the map's
2026-08-28 15:37:13 +02:00
QuestPanel.gd.uid
#140 : the objective moves behind a button next to the map's
2026-08-28 15:37:13 +02:00
ResourceBar.gd
#136 , #137 , #134 : one build grid that cannot stack, one way to show a price
2026-08-28 15:05:20 +02:00
ResourceBar.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ResourceReadout.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ResourceReadout.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ResourceTransferList.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
ResourceTransferList.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
SkillTreeView.gd
#112 : every skill node carries an icon
2026-08-23 21:59:27 +02:00
SkillTreeView.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
SpeedFader.gd
#118/#121: the speed fader and the formation editor under a mouse
2026-08-23 21:59:24 +02:00
SpeedFader.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
TouchJoystick.gd
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
TouchJoystick.gd.uid
#84 : move 215 root files into a folder hierarchy
2026-08-21 19:44:14 +02:00
WaveAlert.gd
#100 (#97b): waves replace the roaming enemy spawner
2026-08-23 13:37:42 +02:00
WaveAlert.gd.uid
Add the .uid files Godot generated for the new scripts
2026-08-23 19:23:50 +02:00