-
Notifications
You must be signed in to change notification settings - Fork 41
Description
In the vain of interface_art_draw
and interface_print
, need a way to add button to a built-in interface window, such as the main interface panel (iface).
AddButton
and related opcodes deal with managed windows and buttons. These exist as a higher abstraction layer, separate list of windows w/ buttons, but they use the same low-level windows that the game itself uses underneath. Need a way to hack into that.
Just drawing button is not enough, need a way to click on it too.
Potential workaround
I can try using MOUSECLICK hook or get_mouse_buttons
to detect clicks and then just draw the button FRM using existing functions. A "fake" button. But this should be better than creating separate small window that sits on top of vanilla window (this causes huge pain with overlapping under different sfall/hrp configurations).