C# Class Ensage.Common.SideMessage

Provides side message notifications
显示文件 Open project: EnsageSharp/Ensage.Common Class Usage Examples

Public Properties

Property Type Description
MessagePosition System.Vector2

Public Methods

Method Description
AddElement ( System.Vector2 position1, System.Vector2 position2, Color color ) : void

AddElement ( System.Vector2 position, System.Vector2 size, Color color, bool outline = false ) : void

AddElement ( System.Vector2 position, System.Vector2 size, DotaTexture texture ) : void

AddElement ( string text, System.Vector2 position, Color color, FontFlags fontFlags ) : void

AddElement ( string text, System.Vector2 position, System.Vector2 size, Color color, FontFlags fontFlags ) : void

AddElement ( string text, string fontName, System.Vector2 position, System.Vector2 size, Color color, FontFlags fontFlags ) : void

CreateMessage ( ) : void

DestroyMessage ( ) : void

Initialize ( ) : void

SideMessage ( string name, System.Vector2 size, Color bgColor = null, Color bdColor = null, int enterTime = null, int stayTime = null, int exitTime = null ) : System

Private Methods

Method Description
OnDraw ( EventArgs args ) : void
SetX ( float x ) : void
ShiftVec ( System.Vector2 vector ) : void
SideMessage ( ) : System

Method Details

AddElement() public method

public AddElement ( System.Vector2 position1, System.Vector2 position2, Color color ) : void
position1 System.Vector2
position2 System.Vector2
color Color
return void

AddElement() public method

public AddElement ( System.Vector2 position, System.Vector2 size, Color color, bool outline = false ) : void
position System.Vector2
size System.Vector2
color Color
outline bool
return void

AddElement() public method

public AddElement ( System.Vector2 position, System.Vector2 size, DotaTexture texture ) : void
position System.Vector2
size System.Vector2
texture DotaTexture
return void

AddElement() public method

public AddElement ( string text, System.Vector2 position, Color color, FontFlags fontFlags ) : void
text string
position System.Vector2
color Color
fontFlags FontFlags
return void

AddElement() public method

public AddElement ( string text, System.Vector2 position, System.Vector2 size, Color color, FontFlags fontFlags ) : void
text string
position System.Vector2
size System.Vector2
color Color
fontFlags FontFlags
return void

AddElement() public method

public AddElement ( string text, string fontName, System.Vector2 position, System.Vector2 size, Color color, FontFlags fontFlags ) : void
text string
fontName string
position System.Vector2
size System.Vector2
color Color
fontFlags FontFlags
return void

CreateMessage() public method

public CreateMessage ( ) : void
return void

DestroyMessage() public method

public DestroyMessage ( ) : void
return void

Initialize() public static method

public static Initialize ( ) : void
return void

SideMessage() public method

public SideMessage ( string name, System.Vector2 size, Color bgColor = null, Color bdColor = null, int enterTime = null, int stayTime = null, int exitTime = null ) : System
name string
size System.Vector2
bgColor Color
bdColor Color
enterTime int
stayTime int
exitTime int
return System

Property Details

MessagePosition public_oe property

Position of side message
public Vector2,System MessagePosition
return System.Vector2