Table of Contents

Interface IMenusComponent.IManagedInterface

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the managed interface implemented by its unmanaged counterpart.

public interface IMenusComponent.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

Create(string, Vector2, byte, float, float)

Creates a new menu with the specified properties.

IMenu Create(string title, Vector2 position, byte columns, float col1Width, float col2Width)

Parameters

title string

The title of the menu.

position Vector2

The position to display the menu.

columns byte

The number of columns (1 or 2).

col1Width float

The width of the first column.

col2Width float

The width of the second column (if applicable).

Returns

IMenu

The created menu, or null if creation failed.

GetEventDispatcher()

Gets the event dispatcher for menu events.

IEventDispatcher<IMenuEventHandler> GetEventDispatcher()

Returns

IEventDispatcher<IMenuEventHandler>

An event dispatcher for IMenuEventHandler events.