C# Class PathfindingTest.UI.Menus.Multiplayer.Panels.UserDisplayPanel

Inheritance: XNAInterfaceComponents.Components.XNAPanel
Exibir arquivo Open project: Wotuu/RTS_XNA_v2

Public Properties

Property Type Description
componentHeight int
componentSpacing int

Public Methods

Method Description
GetSelectedColor ( ) : Color

Gets the currently selected color.

OnColorChanged ( ) : void

Notify the rest that this user's color has changed.

OnKickButtonPressed ( XNAButton source ) : void

When the kick button has been pressed.

OnReadyChanged ( XNAInterfaceComponents.ChildComponents.XNACheckBox source ) : void

When the ready state changed.

OnTeamChanged ( ) : void

Notify the rest that this user's team has changed.

SelectColor ( int colorIndex ) : void

Selects a color.

UpdateBounds ( int index ) : void

Sets the index of this panel, and updates it's location

UserDisplayPanel ( ParentComponent parent, SocketLibrary.Users.User user, int index ) : System

Method Details

GetSelectedColor() public method

Gets the currently selected color.
public GetSelectedColor ( ) : Color
return Color

OnColorChanged() public method

Notify the rest that this user's color has changed.
public OnColorChanged ( ) : void
return void

OnKickButtonPressed() public method

When the kick button has been pressed.
public OnKickButtonPressed ( XNAButton source ) : void
source XNAInterfaceComponents.AbstractComponents.XNAButton
return void

OnReadyChanged() public method

When the ready state changed.
public OnReadyChanged ( XNAInterfaceComponents.ChildComponents.XNACheckBox source ) : void
source XNAInterfaceComponents.ChildComponents.XNACheckBox The source, bla
return void

OnTeamChanged() public method

Notify the rest that this user's team has changed.
public OnTeamChanged ( ) : void
return void

SelectColor() public method

Selects a color.
public SelectColor ( int colorIndex ) : void
colorIndex int The index of the color to select.
return void

UpdateBounds() public method

Sets the index of this panel, and updates it's location
public UpdateBounds ( int index ) : void
index int
return void

UserDisplayPanel() public method

public UserDisplayPanel ( ParentComponent parent, SocketLibrary.Users.User user, int index ) : System
parent XNAInterfaceComponents.AbstractComponents.ParentComponent
user SocketLibrary.Users.User
index int
return System

Property Details

componentHeight public_oe static_oe property

public static int componentHeight
return int

componentSpacing public_oe static_oe property

public static int componentSpacing
return int