ux improvement #164
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
in the research lab, button text overlap next button, remove the buy button and make double click/tap buy. lower the explanation text and move research point available at the top with resources
the build menu text overlap when a building costs more than 3 different resources
screenshot added to the ticket files
Done in
3fcc26c, live at https://metaheavens.de/spaceship/Build menu overlap. The grid predicted a caption's height from the column width - wide column, assume one line. That is right for most names and wrong for the long ones, so "Spacial Workshop" wrapped and its second line came down on the price underneath. Captions are now measured against the font that draws them, and prices are sized from
PriceTag.wanted_height(), which existed for exactly this and was not being asked. Prices are also set before anything is measured; the old order laid out first and priced afterwards, so the first layout sized every row for a price that was not there yet.Ship lab, all four parts:
And one you did not ask for but is in the same screenshot: the vessel strip is now spaced from the panel's own width, so the eighth vessel is no longer half off the right edge.