Menu functions (zPE)
External functions for working with menu.
Menu_SearchItems
Menu_SearchItems
Find all C_MenuItem object instances by the mask and automatically places them in the current menu instance
mask- regex like mask for searching
Open_Link
Open_Link
Opens a link in the browser
link- link to open in the browser
Example
This function is used in the Union Menu API script.
In this script the Menu_SearchItems external is used to collect all Union menu scripts that are placed into the Union & Plugins menu that will appear in the game if you use any of the plugins that use this feature.
| Usage of Menu_SearchItems external function | |
|---|---|
In this case all instances are of the name MENUITEM_UNION_AUTO_* where * is a wildcard that can be substituted with anything. The plugin will search the scripts and find all instances (in the case of zGamePad it is MenuItem_Union_Auto_zGamePad)
This example comes from the zUnionMenu.d injectable API script that is part of the zGamePad plugin, GitHub link.