No description
  • GDScript 96.3%
  • GDShader 2%
  • Shell 0.8%
  • Python 0.6%
  • HTML 0.3%
Find a file
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
android Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1 2026-08-10 18:41:58 +02:00
audio #148: the main theme plays, and keeps playing 2026-08-29 13:05:21 +02:00
buildings #138: structures and doctrines cost more than rocks, and more the deeper they are 2026-08-28 15:30:30 +02:00
controllers #147: one resource per line, and the price back under its button 2026-08-29 13:05:46 +02:00
core #145, #144, #143: a quest that could not be finished, and two boxes that overhung 2026-08-29 12:51:09 +02:00
enemies #114: the enemy bomber flies, and its bombs arrive 2026-08-23 21:58:56 +02:00
fonts Skill tree, node-based building animation, bigger UI, and a 19x faster test suite 2026-08-11 15:00:41 +02:00
logistics Add the .uid files Godot generated for the newest scripts 2026-08-24 12:10:41 +02:00
planets #129 (#131, #132, #133): a quest chain, and a World Ship out of reach 2026-08-28 14:41:03 +02:00
PlanetSetups #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
resources #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
shaders Add the .uid files for the newest tests 2026-08-24 20:50:51 +02:00
shots Remove the one-way ore API superseded by the transfer menu 2026-08-12 13:07:52 +02:00
surface #140: the objective moves behind a button next to the map's 2026-08-28 15:37:13 +02:00
tests #147: one resource per line, and the price back under its button 2026-08-29 13:05:46 +02:00
ui #147: one resource per line, and the price back under its button 2026-08-29 13:05:46 +02:00
vessels #130, #135: a vessel's death takes a moment, and leaves an interceptor 2026-08-28 15:05:02 +02:00
vfx #130, #135: a vessel's death takes a moment, and leaves an interceptor 2026-08-28 15:05:02 +02:00
world #140: the objective moves behind a button next to the map's 2026-08-28 15:37:13 +02:00
.gitignore Add a WSL path to the test runner 2026-08-22 14:40:44 +02:00
export_presets.cfg Fix the web build: a wasm trap on integer % 0, and buttons that never fired 2026-08-19 01:08:09 +02:00
icon.svg Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1 2026-08-10 18:41:58 +02:00
icon.svg.import Initial commit: SpaceshipTest, a top-down space RTS in Godot 4.7.1 2026-08-10 18:41:58 +02:00
project.godot #84: move 215 root files into a folder hierarchy 2026-08-21 19:44:14 +02:00
ui_theme.tres Skill tree, node-based building animation, bigger UI, and a 19x faster test suite 2026-08-11 15:00:41 +02:00
web_shell.html Fix the web build: a wasm trap on integer % 0, and buttons that never fired 2026-08-19 01:08:09 +02:00