Skip to content

Need scripted way to a add button to vanilla interface windows #545

Description

@phobos2077

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions