Skip to content

Button Events v1

Latest

Choose a tag to compare

@DevKilo1 DevKilo1 released this 03 Oct 13:49
· 1 commit to main since this release

Installation:

  • Drag and drop the .net.dll file into your fivepd/plugins folder!

How it works:
The following is the event format:
FIVEPD::OnMenuTrigger:{MENU_TITLE}:{ITEM_TEXT}
Item text is in plain text, meaning without color or formatting codes.

Example Usage:

EventHandlers["FIVEPD::OnMenuTrigger:Dispatch menu:Check license"] += new Action(() =>
            {
                Debug.WriteLine("Got check license button pressed!");
            });

Refresh event:
FIVEPD::RefreshMenuTriggers

Example Usage:

BaseScript.TriggerEvent("FIVEPD::RefreshMenuTriggers");

This plugin automatically works with any FivePD addon menus. Running the refresh event is recommended after creating your new menu (if you care, of course)

(I also provided a list of all the default FivePD menu button events to refer to if needed.)