C# Class Gonzo.Elements.UISkinBrowser

A skin browser is used to browse through thumbnails of heads and bodies. This is the base class for UIHeadBrowser and UIBodyBrowser.
Inheritance: UIControl
ファイルを表示 Open project: Afr0Games/Project-Dollhouse

Protected Properties

Property Type Description
m_BtnWidth int
m_Collections List
m_Counter int
m_DarkAppearances List
m_DarkFemaleAppearances List
m_Depth float
m_LightAppearances List
m_LightFemaleAppearances List
m_Map ].int[
m_MediumAppearances List
m_MediumFemaleAppearances List
m_SelectedSkintype SkinType
m_Sex AvatarSex
m_SkinBrowserArrowLeft UIButton
m_SkinBtns List
m_Thumb Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
Draw ( SpriteBatch SBatch, float LayerDepth ) : void
UISkinBrowser ( UIScreen Screen, UIControl Ctrl, int SkinType, AvatarSex Sex ) : System

Constructs a new instance of UISkinBrowser.

Update ( InputHelper Helper, GameTime GTime ) : void

Protected Methods

Method Description
IsMouseOverButton ( InputHelper Input, SkinBtnContainer Button, Vector2 BtnPosition ) : bool

Checks if the mouse cursor is over a skin button.

Private Methods

Method Description
M_SkinBrowserArrowLeft_OnButtonClicked ( object Sender ) : void
M_SkinBrowserArrowRight_OnButtonClicked ( object Sender ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch SBatch, float LayerDepth ) : void
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
LayerDepth float
return void

IsMouseOverButton() protected method

Checks if the mouse cursor is over a skin button.
protected IsMouseOverButton ( InputHelper Input, SkinBtnContainer Button, Vector2 BtnPosition ) : bool
Input InputHelper The InputHelper instance used to get the mouse curor's position.
Button SkinBtnContainer A SkinBtnContainer representing the button to check.
BtnPosition Vector2 Position of the button.
return bool

UISkinBrowser() public method

Constructs a new instance of UISkinBrowser.
public UISkinBrowser ( UIScreen Screen, UIControl Ctrl, int SkinType, AvatarSex Sex ) : System
Screen UIScreen A UIScreen instance that this UISkinBrowser belongs to.
Ctrl UIControl A UIControl instance that this UISkinBrowser should be created from.
SkinType int The type of skin initially displayed by this UISkinBrowser. 0 = light, 1 = medium, 2 = dark.
Sex AvatarSex
return System

Update() public method

public Update ( InputHelper Helper, GameTime GTime ) : void
Helper InputHelper
GTime Microsoft.Xna.Framework.GameTime
return void

Property Details

m_BtnWidth protected_oe property

protected int m_BtnWidth
return int

m_Collections protected_oe property

protected List m_Collections
return List

m_Counter protected_oe property

protected int m_Counter
return int

m_DarkAppearances protected_oe property

protected List m_DarkAppearances
return List

m_DarkFemaleAppearances protected_oe property

protected List m_DarkFemaleAppearances
return List

m_Depth protected_oe property

protected float m_Depth
return float

m_LightAppearances protected_oe property

protected List m_LightAppearances
return List

m_LightFemaleAppearances protected_oe property

protected List m_LightFemaleAppearances
return List

m_Map protected_oe property

protected int[,] m_Map
return ].int[

m_MediumAppearances protected_oe property

protected List m_MediumAppearances
return List

m_MediumFemaleAppearances protected_oe property

protected List m_MediumFemaleAppearances
return List

m_SelectedSkintype protected_oe property

protected SkinType m_SelectedSkintype
return SkinType

m_Sex protected_oe property

protected AvatarSex m_Sex
return AvatarSex

m_SkinBrowserArrowLeft protected_oe property

protected UIButton,Gonzo.Elements m_SkinBrowserArrowLeft
return UIButton

m_SkinBtns protected_oe property

protected List m_SkinBtns
return List

m_Thumb protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics m_Thumb
return Microsoft.Xna.Framework.Graphics.Texture2D