Add icons for each upgrade in the tech tree #112

Closed
opened 2026-08-23 12:35:11 +00:00 by metaheavens · 1 comment
Owner
No description provided.
Author
Owner

Done in 551360f.

A node that unlocks a structure borrows that structure's own menu icon, so the tree and the build menu cannot disagree about what a shipyard looks like. Doctrines and permanent bonuses carry an explicit one.

Drawn as child IconButtons with their frame turned off rather than reimplemented in the tree's own _draw - the glyphs already exist there and are not trivial, and a dozen copied here would be two places to change every time one is redrawn. They are inert, so the tree's raw-input handling still sees every press.

Done in 551360f. A node that unlocks a structure borrows that structure's own menu icon, so the tree and the build menu cannot disagree about what a shipyard looks like. Doctrines and permanent bonuses carry an explicit one. Drawn as child IconButtons with their frame turned off rather than reimplemented in the tree's own _draw - the glyphs already exist there and are not trivial, and a dozen copied here would be two places to change every time one is redrawn. They are inert, so the tree's raw-input handling still sees every press.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
metaheavens/spaceship#112
No description provided.