Closed kuchi closed 3 months ago
Hello Anthony,
If you look at the definition of DockableWindows: https://pthom.github.io/hello_imgui/book/doc_params.html#dockable-window , you will see a field named callBeginEnd
(call_begin_end
in python).
If you intend to display a "close window button", you will have to specify a boolean with the value True
as the second parameter in the call to imgui.begin
.
If you were using DockableWindow.focus_window_at_next_frame
, you will have to handle it manually, using inspiration from this snippet.
Thank you, I hadn't thought of looking in the docking options. That makes sense and yes I am using docking. That is perfect.
Closing.
I am wanting to change the alpha of specific windows for some overlays I am doing. I couldn't figure out a way to do this with how hello_imgui handles the windows (I am using Python).
What I was wanting to call pre begin() for the window:
Then of course after the end() for the window:
Do you have a suggested way to do this or would it make sense to have something like
pre_window_function
andpost_window_function
inDockableWindow
? Or if there was a way to allow thegui_function
to manually do thebegin()
andend()
window calls instead of hello_imgui.