C# Класс Chatterer.ToolbarButtonWrapper

Wraps a Toolbar clickable button, after fetching it from a foreign assembly.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Button object
ButtonDestroy System.Reflection.MethodInfo
ButtonEnalbed System.Reflection.PropertyInfo
ButtonImportant System.Reflection.PropertyInfo
ButtonOnClick System.Reflection.EventInfo
ButtonOnMouseEnter System.Reflection.EventInfo
ButtonOnMouseLeave System.Reflection.EventInfo
ButtonText System.Reflection.PropertyInfo
ButtonTextColor System.Reflection.PropertyInfo
ButtonTexturePath System.Reflection.PropertyInfo
ButtonToolTip System.Reflection.PropertyInfo
ButtonVisibility System.Reflection.PropertyInfo
ButtonVisible System.Reflection.PropertyInfo
ClickHandlerType System.Type
GameScenesVisibilityType System.Type
IButton System.Type
MouseEnterHandlerType System.Type
MouseLeaveHandlerType System.Type
TBManagerAdd System.Reflection.MethodInfo
TBManagerInstance object
ToolbarManager System.Type

Открытые методы

Метод Описание
AddButtonClickHandler ( Action Handler ) : void

Adds event handler to receive "on click" events.

AddButtonOnMouseEnterHandler ( Action Handler ) : void

Adds event handler that can be registered with to receive "on mouse enter" events.

AddButtonOnMouseLeaveHandler ( Action Handler ) : void

Adds event handler that can be registered with to receive "on mouse leave" events.

Destroy ( ) : void

Permanently destroys this button so that it is no longer displayed. Should be used when a plugin is stopped to remove leftover buttons.

SetButtonVisibility ( ) : void

Sets this button's visibility. Can be used in addition to or as a replacement for Visible.

TryWrapToolbarButton ( string ns, string id ) : ToolbarButtonWrapper

If ToolbarManager is present, initializes a new instance of the VOID.ToolbarButtonWrapper class.

Защищенные методы

Метод Описание
AddButtonEventHandler ( EventInfo Event, Action Handler ) : void
ToolbarButtonWrapper ( object button ) : System

Initializes a new instance of the VOID.ToolbarButtonWrapper class.

TryWrapToolbarManager ( ) : bool

Wraps the ToolbarManager class, if present.

Приватные методы

Метод Описание
ToolbarButtonWrapper ( ) : System

Описание методов

AddButtonClickHandler() публичный Метод

Adds event handler to receive "on click" events.
public AddButtonClickHandler ( Action Handler ) : void
Handler Action Delegate to handle "on click" events
Результат void

AddButtonEventHandler() защищенный Метод

protected AddButtonEventHandler ( EventInfo Event, Action Handler ) : void
Event System.Reflection.EventInfo
Handler Action
Результат void

AddButtonOnMouseEnterHandler() публичный Метод

Adds event handler that can be registered with to receive "on mouse enter" events.
public AddButtonOnMouseEnterHandler ( Action Handler ) : void
Handler Action Delegate to handle "OnMouseEnter" events.
Результат void

AddButtonOnMouseLeaveHandler() публичный Метод

Adds event handler that can be registered with to receive "on mouse leave" events.
public AddButtonOnMouseLeaveHandler ( Action Handler ) : void
Handler Action Delegate to handle "OnMouseLeave" events.
Результат void

Destroy() публичный Метод

Permanently destroys this button so that it is no longer displayed. Should be used when a plugin is stopped to remove leftover buttons.
public Destroy ( ) : void
Результат void

SetButtonVisibility() публичный Метод

Sets this button's visibility. Can be used in addition to or as a replacement for Visible.
public SetButtonVisibility ( ) : void
Результат void

ToolbarButtonWrapper() защищенный Метод

Initializes a new instance of the VOID.ToolbarButtonWrapper class.
protected ToolbarButtonWrapper ( object button ) : System
button object
Результат System

TryWrapToolbarButton() публичный статический Метод

If ToolbarManager is present, initializes a new instance of the VOID.ToolbarButtonWrapper class.
public static TryWrapToolbarButton ( string ns, string id ) : ToolbarButtonWrapper
ns string Namespace, usually the plugin name.
id string Identifier, unique per namespace.
Результат ToolbarButtonWrapper

TryWrapToolbarManager() защищенный статический Метод

Wraps the ToolbarManager class, if present.
protected static TryWrapToolbarManager ( ) : bool
Результат bool

Описание свойств

Button защищенное свойство

protected object Button
Результат object

ButtonDestroy защищенное свойство

protected MethodInfo,System.Reflection ButtonDestroy
Результат System.Reflection.MethodInfo

ButtonEnalbed защищенное свойство

protected PropertyInfo,System.Reflection ButtonEnalbed
Результат System.Reflection.PropertyInfo

ButtonImportant защищенное свойство

protected PropertyInfo,System.Reflection ButtonImportant
Результат System.Reflection.PropertyInfo

ButtonOnClick защищенное свойство

protected EventInfo,System.Reflection ButtonOnClick
Результат System.Reflection.EventInfo

ButtonOnMouseEnter защищенное свойство

protected EventInfo,System.Reflection ButtonOnMouseEnter
Результат System.Reflection.EventInfo

ButtonOnMouseLeave защищенное свойство

protected EventInfo,System.Reflection ButtonOnMouseLeave
Результат System.Reflection.EventInfo

ButtonText защищенное свойство

protected PropertyInfo,System.Reflection ButtonText
Результат System.Reflection.PropertyInfo

ButtonTextColor защищенное свойство

protected PropertyInfo,System.Reflection ButtonTextColor
Результат System.Reflection.PropertyInfo

ButtonTexturePath защищенное свойство

protected PropertyInfo,System.Reflection ButtonTexturePath
Результат System.Reflection.PropertyInfo

ButtonToolTip защищенное свойство

protected PropertyInfo,System.Reflection ButtonToolTip
Результат System.Reflection.PropertyInfo

ButtonVisibility защищенное свойство

protected PropertyInfo,System.Reflection ButtonVisibility
Результат System.Reflection.PropertyInfo

ButtonVisible защищенное свойство

protected PropertyInfo,System.Reflection ButtonVisible
Результат System.Reflection.PropertyInfo

ClickHandlerType защищенное свойство

protected Type,System ClickHandlerType
Результат System.Type

GameScenesVisibilityType защищенное свойство

protected Type,System GameScenesVisibilityType
Результат System.Type

IButton защищенное свойство

protected Type,System IButton
Результат System.Type

MouseEnterHandlerType защищенное свойство

protected Type,System MouseEnterHandlerType
Результат System.Type

MouseLeaveHandlerType защищенное свойство

protected Type,System MouseLeaveHandlerType
Результат System.Type

TBManagerAdd защищенное статическое свойство

protected static MethodInfo,System.Reflection TBManagerAdd
Результат System.Reflection.MethodInfo

TBManagerInstance защищенное статическое свойство

protected static object TBManagerInstance
Результат object

ToolbarManager защищенное статическое свойство

protected static Type,System ToolbarManager
Результат System.Type