Classdesc

Floating menu

Hierarchy

  • Menu

Constructors

  • Parameters

    • context: Wrapper<{}>

      Android context

    • config: Config = ...

      Configuration

    Returns Menu

    Example

    const menu = new Menu(context);
    menu.attach()

    Example

    const config = new Config();
    config.MENU_TITLE = "Moded with Frida";
    const menu = new Menu(context, config);
    menu.attach()

Methods

  • Add a feature to the menu.

    Parameters

    • featName: string

      The name of the feature.

    • fn: (() => void)

      The function to be called when the button is pressed.

        • (): void
        • Returns void

    Returns void

    Example

    menu.ButtonAction('Kill All', () => {
    // Kill all players
    });
  • Add a button that opens a url to the menu.

    Parameters

    • text: string

      The text to display.

    • url: string

      The url to open.

    Returns void

    Example

    menu.ButtonLink('Discord', 'https://discord.gg/abc123');
    menu.ButtonLink('Website', 'https://example.com');
  • Add a on/off button to the menu.

    Parameters

    • featName: string

      The name of the feature.

    • value: Primitive<boolean>

      The pointer to the value of the feature.

    Returns void

    Example

    const isGodMode = Primitive.of(false);
    menu.ButtonOnOff('Feature', isGodMode);
  • Add a category section to the menu.

    Parameters

    • name: string

      The name of the category.

    Returns void

    Example

    menu.Category('Player');
    
  • Add a CheckBox to the menu.

    Parameters

    • featName: string

      The name of the feature.

    • value: Primitive<boolean>

      The pointer to the value of the feature.

    Returns void

    Example

    const isGodMode = Primitive.of(false);
    menu.CheckBox('God Mode', isGodMode);
  • Add a feature to the menu.

    Parameters

    • featName: string

      The name of the feature.

    • value: Primitive<number>

      The pointer to the value of the feature.

    Returns void

    Example

    const coins = Primitive.of(0);
    menu.InputNumber('Coins', coins);
  • Add a feature to the menu.

    Parameters

    • featName: string

      The name of the feature.

    • value: Primitive<string>

      The pointer to the value of the feature.

    Returns void

    Example

    const playerName = Primitive.of('My Player');
    menu.InputText('Player Name', playerName);
  • Add a RadioGroup to the menu.

    Parameters

    • featName: string

      The name of the feature.

    • value: Primitive<number>

      The pointer to the value of the feature.

    • options: string[]

      The options to display.

    Returns void

    Example

    const value = Primitive.of(0);
    const options = ['Option 1', 'Option 2', 'Option 3'];
    menu.RadioButton('Options', value, options);
  • Add a slider to the menu.

    Parameters

    • featName: string

      The name of the feature.

    • value: Primitive<number>

      The pointer to the value of the feature.

    • min: number

      The minimum value slider can be set to.

    • max: number

      The maximum value slider can be set to.

    • step: number = 1

      The step size of the slider.

    Returns void

    Throws

    Error if value is not between min and max.

    Throws

    Error if step is less than 1.

    Throws

    Error if step is not a divisor of (max - min).

    Throws

    Error if min is greater than max.

    Example

    const speed = Primitive.of(50);
    menu.SeekBar('Speed', speed, 0, 100);
    menu.SeekBar('Speed', speed, 0, 100, 5);
  • Add a switch to the menu.

    Parameters

    • featName: string

      The name of the feature.

    • value: Primitive<boolean>

      The pointer to the value of the feature.

    Returns void

    Example

    const isGodmode = Primitive.of(false);
    menu.Switch('Godmode', isGodmode);
  • Add a text view to the menu. note: this does not fully support html. Use menu.WebTextView

    Parameters

    • text: string

      The text to display.

    Returns void

    Example

    menu.TextView('Hello world!');
    menu.TextView('Hello <b>world</b>!');
    menu.TextView('Hello <font color="#ff0000">world</font>!');
  • Add a web text view with full html support to the menu.

    Parameters

    • html: string

      The html to display.

    Returns void

    Example

    menu.WebTextView('<b>Hello world!</b>');
    menu.WebTextView('<font color="#ff0000">Hello world!</font>');
    menu.WebTextView('<font size="20">Hello world!</font>');
  • Attaches the menu to the screen.

    Returns void

  • Ends the current collapse and adds it to the menu

    Returns void

    Throws

    If there is no collapse active

  • Starts a new collapse Every feature added after this will be added to the collapse until endCollapse is called

    Parameters

    • title: string

      The title of the collapse

    Returns void

    Throws

    If there is already a collapse active

Generated using TypeDoc