Skip to content

Implementing menu support in a game (Alien Swarm: Reactive Drop) #1938

@BenLubar

Description

@BenLubar

(appid 563560, beta branch; see also ReactiveDrop/reactivedrop_public_src#510)

I would like to get SourceMod menus working in my game. In the current beta branch (as of a few minutes ago) they... partially work.

The only changes in the beta branch related to this are the additions of a few resource/ui/plugin*.res files copied from L4D2 and some sounds and sprites that it looks like SourceMod uses copied from HL2.

I can type !admin in chat on a local dedicated server and (after pushing the ESC key) navigate the menu it spawns. However, once I do this, I am unable to click on anything in the game unless a game menu (such as the ESC menu, the chat box, or (annoyingly) vgui_drawtree) is open.

I'd prefer if seeing a menu from SourceMod wasn't something that would lock you out of playing the game, obviously. Is this something someone has implemented in a mod using one of the newer Source Engine branches before? If it would be easier, we could implement a whole new menu handler in AS:RD (which would also give the benefits of being able to access it from vscript, having it visible without hitting ESC, making its style fit the game better, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions