fix tech tree menu #93
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?
Both points fixed in
4883197.Mouse input: the tree only ever handled
InputEventScreenTouch/ScreenDrag,so a real click never reached it.
SkillTreeViewgrewhandle_mouse_buttonand
handle_mouse_motion(thin wrappers over the same press/pan logic thetouch path uses), and
BuildController._unhandled_inputnow routes mouseevents to them while the menu is open. Left click selects, a second click on
the selected node researches it, dragging pans only while held, and the wheel
scrolls the tree either way.
Layout: with the bottom button gone, the readout moved down 154px in
Main.tscnand the tree took the space - it is now 1344px tall instead of1190px. The detail label, cost and status all shifted with it, so there is no
dead gap left under the tree.
Covered by
tests/test_skill_menu.gd, which drives events through thecontroller (the routing was the missing piece, so testing the view alone would
not have caught it) across all five behaviours, including asserting no gap
larger than 48px remains below the tree.