C# 클래스 Divine_Right.InterfaceComponents.Components.TextLogComponent

A Component which logs a number of text messages
상속: IGameInterfaceComponent
파일 보기 프로젝트 열기: Haedrian/Divine-Right 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
feedback List
globalLog List
locationX int
locationY int

공개 메소드들

메소드 설명
Draw ( Microsoft content, Microsoft batch ) : void
HandleClick ( int x, int y, System.Objects mouseAction, DRObjects &actionType, InternalActionEnum &internalActionType, object &args, MapItem &itm, DRObjects &coord, bool &destroy ) : bool
HandleKeyboard ( Microsoft keyboard, DRObjects &actionType, object &args, DRObjects &coord, bool &destroy ) : bool
HandleMouseOver ( int x, int y ) : void
IsModal ( ) : bool
Move ( int x, int y ) : void

Moves the TextLogComponent to a new location. This is intended to be used for resizing purposes

PerformDrag ( int deltaX, int deltaY ) : void
ReturnLocation ( ) : Rectangle
TextLogComponent ( int x, int y, List globalLog ) : System
UpdateLog ( ) : void

Updates the log with new items

메소드 상세

Draw() 공개 메소드

public Draw ( Microsoft content, Microsoft batch ) : void
content Microsoft
batch Microsoft
리턴 void

HandleClick() 공개 메소드

public HandleClick ( int x, int y, System.Objects mouseAction, DRObjects &actionType, InternalActionEnum &internalActionType, object &args, MapItem &itm, DRObjects &coord, bool &destroy ) : bool
x int
y int
mouseAction System.Objects
actionType DRObjects
internalActionType InternalActionEnum
args object
itm DRObjects.MapItem
coord DRObjects
destroy bool
리턴 bool

HandleKeyboard() 공개 메소드

public HandleKeyboard ( Microsoft keyboard, DRObjects &actionType, object &args, DRObjects &coord, bool &destroy ) : bool
keyboard Microsoft
actionType DRObjects
args object
coord DRObjects
destroy bool
리턴 bool

HandleMouseOver() 공개 메소드

public HandleMouseOver ( int x, int y ) : void
x int
y int
리턴 void

IsModal() 공개 메소드

public IsModal ( ) : bool
리턴 bool

Move() 공개 메소드

Moves the TextLogComponent to a new location. This is intended to be used for resizing purposes
public Move ( int x, int y ) : void
x int
y int
리턴 void

PerformDrag() 공개 메소드

public PerformDrag ( int deltaX, int deltaY ) : void
deltaX int
deltaY int
리턴 void

ReturnLocation() 공개 메소드

public ReturnLocation ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

TextLogComponent() 공개 메소드

public TextLogComponent ( int x, int y, List globalLog ) : System
x int
y int
globalLog List
리턴 System

UpdateLog() 공개 메소드

Updates the log with new items
public UpdateLog ( ) : void
리턴 void

프로퍼티 상세

feedback 보호되어 있는 프로퍼티

Cleaned feedback to display. We will basically take a look at the global log each time. If there's anything new, we clean it up and put it in the top. Then we try to draw all of them. If we run out of bottom draw space, then we trim the feedback list to save some memory.
protected List feedback
리턴 List

globalLog 보호되어 있는 프로퍼티

A link to the log which we will be sampling from
protected List globalLog
리턴 List

locationX 보호되어 있는 프로퍼티

protected int locationX
리턴 int

locationY 보호되어 있는 프로퍼티

protected int locationY
리턴 int