ClickThroughBlocker icon indicating copy to clipboard operation
ClickThroughBlocker copied to clipboard

CTB doesn't block mousewheel in flight or certain click actions

Open JonnyOThan opened this issue 7 months ago • 1 comments

When working on CTB support for TUFX, I realized that the mousewheel would still zoom the camera in certain scenes (but not the vab) and I could still click on certain things behind the window (e.g. vessel icons in the spacecenter view).

I managed to fix these by creating an invisible UGUI window that follows the TUFX window. I'm not sure exactly how, but it might be interesting to integrate those fixes to CTB itself.

relevant code is here: https://github.com/KSPModStewards/TUFX/commit/898ffc86a338c20d67a6e2d167313fd6c3e3c4a3

I think you'd probably have to maintain the gameobjects internall to CTB according to their window IDs? Not really sure.

JonnyOThan avatar Jul 25 '24 13:07 JonnyOThan