C# 클래스 Chatterer.ToolbarButtonWrapper

Wraps a Toolbar clickable button, after fetching it from a foreign assembly.
파일 보기 프로젝트 열기: pizzaoverhead/Chatterer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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