Auto-translated
The idle click won't disappear because the button has two states (pressed | not pressed), and I don't know how to tell the button to change its state if the window it displays is closed. Therefore, I didn't find anything better than leaving the button in one state (pressed), which opens a (semi-transparent) window, which can then be interacted with using another button and/or hotkeys. That is, if you click the button, a window with the necessary information appears, and it already has another button that can close this window 😎.
I took the contents of NecroHider.(WindowMSButton).xdb and NecroHider.(WindowMSButtonShared).xdb from your combat mod and substituted my own. The button opens the window, but doesn't close it; it can be closed with Esc, a hotkey, or the exit button that I placed at the bottom of the table. The question is: how do I make the background inactive and dimmed (like when you open the spellbook on the global screen) around the table, so that the necro button is also under it, since it doesn't turn off the table anyway, but at least it would always take only one click to turn it on?