[admin-toolkit] Toolkit close (×) button does not fire on click; only F1 closes the panel #13
Labels
No labels
blocked:needs-attention
blocked:needs-decision
blocked:needs-decompose
blocked:needs-design
blocked:needs-triage
blocked:unclassified
bug
documentation
enhancement
gsd-spec
in-progress
needs-decompose
priority:high
priority:low
priority:medium
quickfix
test
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/veilwalkers#13
Loading…
Add table
Add a link
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?
Summary
The Creation Toolkit's title-bar close button (×) at the top-right corner of the window does not fire when clicked. Only the F1 keybinding (which the button's own tooltip advertises: "Close (F1)") reliably closes the panel. Clicks land on the button's general area but the
pressedsignal never fires.Environment
Mark/veilwalkersclickand hand-click on a touchpadSteps to Reproduce
Expected
The toolkit panel should close (its visibility flips off). Same behavior as pressing F1.
Actual
Nothing happens. The toolkit stays open. The click does reach the panel — moving the cursor over the button shows the hover state (cursor changes / button background lightens) — but
pressedis not emitted. The same click coordinates sometimes instead activate the World tab (which sits below the title bar in the panel layout), confirming the click is reaching the panel's Control hierarchy but missing the close Button's hitbox specifically.Repro Coordinates
Within the 1280×720 Godot window, the close (×) was at approximately (810, 30) in window-relative pixels. That position is inside the panel's title bar visually but does not register as a hit on the
closeButton instance. World tab is at (263, 78) and the (×) being at (810, 30) means there's a wide X distance between the two — yet clicks near (810, 30) sometimes activate the World tab, suggesting the panel's internal layout is shifted or the title bar's hitbox is too tall and is funneling clicks into the TabContainer underneath.Why This Matters
Suggested Investigation Path
scenes/admin/admin_toolkit.gd_build_title_bar()— confirm thecloseButton'smouse_filterisMOUSE_FILTER_STOP(notMOUSE_FILTER_PASSorMOUSE_FILTER_IGNORE).close.pressed.connect(toggle)is firing by adding aprint("close pressed")in the toggle function.PanelContainermay be clipping or the close button may be mispositioned by a few pixels.gui_input.connect(_on_title_gui_input)drag handler isn't eating the click on the close button. The drag handler fires onInputEventMouseButton; if the close button is a child of the title bar, the close'spressedsignal should still fire — but if the title bar usesMOUSE_FILTER_PASSor the close'smouse_filteris wrong, the click can be lost.Workaround (until fixed)
Press F1 to close the toolkit. F1 still works reliably.
Fixed in
90c7438on main. Root cause: the title bar PanelContainer'sgui_inputdrag handler was initiating a tiny drag between press and release on close-button clicks, shifting the window off the button before the Button's release could emitpressed. Fix: skip drag-start when the press lands inside the close button's hitbox, give the close button a 32x32 minimum size and explicit STOP mouse_filter, and reference it via a member variable. F1 path unchanged. gdlint + gdformat clean.