C# 클래스 Bricklayer.Client.Interface.GameScreen

The main screen to be used for game functions
상속: Bricklayer.Client.Interface.BaseScreen
파일 보기 프로젝트 열기: Cyral/Bricklayer

공개 프로퍼티들

프로퍼티 타입 설명
Bar TomShane.Neoforce.Controls.StatusBar
ChatBox TomShane.Neoforce.Controls.Console
Inventory TomShane.Neoforce.Controls.Button[]
LeaveButton TomShane.Neoforce.Controls.Button
PlayerList TomShane.Neoforce.Controls.ListBox
StatsLabel TomShane.Neoforce.Controls.Label

공개 메소드들

메소드 설명
Add ( Bricklayer.Client.Interface.ScreenManager screenManager ) : void
AddChat ( string username, string message ) : void

Adds a chat message to the chat box

GameScreen ( ) : System
GameScreen ( System.Action action ) : System
Remove ( ) : void
SentChat ( object sender, TomShane.Neoforce.Controls.ConsoleMessageEventArgs e ) : void

Called when a chat is sent from the local user

Show ( ) : void

Called when we recieve the Init packet, meaning we can now show game UI and hide the loading message

SystemChat ( string message ) : void

Adds a system chat message to the chat box

TextBox_TextChanged ( object sender, TomShane e ) : void

Called when the content of the chatbox's text is changed

WrapText ( SpriteFont spriteFont, string text, float maxLineWidth ) : string

Wraps a string around the width of an area (Ex: The chat box)

비공개 메소드들

메소드 설명
AddText ( ConsoleMessage c, string texts, ConsoleMessage msgs ) : void

Used to add text messages to the chat box

메소드 상세

Add() 공개 메소드

public Add ( Bricklayer.Client.Interface.ScreenManager screenManager ) : void
screenManager Bricklayer.Client.Interface.ScreenManager
리턴 void

AddChat() 공개 메소드

Adds a chat message to the chat box
public AddChat ( string username, string message ) : void
username string
message string
리턴 void

GameScreen() 공개 메소드

public GameScreen ( ) : System
리턴 System

GameScreen() 공개 메소드

public GameScreen ( System.Action action ) : System
action System.Action
리턴 System

Remove() 공개 메소드

public Remove ( ) : void
리턴 void

SentChat() 공개 메소드

Called when a chat is sent from the local user
public SentChat ( object sender, TomShane.Neoforce.Controls.ConsoleMessageEventArgs e ) : void
sender object
e TomShane.Neoforce.Controls.ConsoleMessageEventArgs
리턴 void

Show() 공개 메소드

Called when we recieve the Init packet, meaning we can now show game UI and hide the loading message
public Show ( ) : void
리턴 void

SystemChat() 공개 메소드

Adds a system chat message to the chat box
public SystemChat ( string message ) : void
message string
리턴 void

TextBox_TextChanged() 공개 메소드

Called when the content of the chatbox's text is changed
public TextBox_TextChanged ( object sender, TomShane e ) : void
sender object
e TomShane
리턴 void

WrapText() 공개 메소드

Wraps a string around the width of an area (Ex: The chat box)
public WrapText ( SpriteFont spriteFont, string text, float maxLineWidth ) : string
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont
text string
maxLineWidth float
리턴 string

프로퍼티 상세

Bar 공개적으로 프로퍼티

public StatusBar,TomShane.Neoforce.Controls Bar
리턴 TomShane.Neoforce.Controls.StatusBar

ChatBox 공개적으로 프로퍼티

public Console,TomShane.Neoforce.Controls ChatBox
리턴 TomShane.Neoforce.Controls.Console

Inventory 공개적으로 프로퍼티

public Button[],TomShane.Neoforce.Controls Inventory
리턴 TomShane.Neoforce.Controls.Button[]

LeaveButton 공개적으로 프로퍼티

public Button,TomShane.Neoforce.Controls LeaveButton
리턴 TomShane.Neoforce.Controls.Button

PlayerList 공개적으로 프로퍼티

public ListBox,TomShane.Neoforce.Controls PlayerList
리턴 TomShane.Neoforce.Controls.ListBox

StatsLabel 공개적으로 프로퍼티

public Label,TomShane.Neoforce.Controls StatsLabel
리턴 TomShane.Neoforce.Controls.Label