C# Класс Divine_Right.InterfaceComponents.Components.TextLogComponent

A Component which logs a number of text messages
Наследование: IGameInterfaceComponent
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
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