C# Class SunsetHigh.ListPanel

Inheritance: Panel, IListPanel
Afficher le fichier Open project: ErraticUnicorn/MOSH Class Usage Examples

Protected Properties

Свойство Type Description
cursor int
entries List
font Microsoft.Xna.Framework.Graphics.SpriteFont
scrollBar ScrollBar

Méthodes publiques

Méthode Description
ListPanel ( ) : System
ListPanel ( int x, int y, int width, int height ) : System
alignEntriesHorizontal ( ) : void
alignEntriesHorizontal ( int startX, int endX, int startY, int endY ) : void
alignEntriesTable ( int rows, int cols, bool rowFirst = true ) : void
alignEntriesTable ( int rows, int cols, int startX, int endX, int startY, int endY, bool rowFirst = true ) : void
alignEntriesVertical ( ) : void
alignEntriesVertical ( int startX, int endX, int startY, int endY ) : void
clearEntries ( ) : void
draw ( SpriteBatch sb ) : void
getCurrentEntry ( ) : MenuEntry
getEntries ( ) : List
getEntryColor ( ) : Color
getEntryHighlightedColor ( ) : Color
hideEntries ( ) : void
isScrolling ( ) : bool
loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
loadEntries ( ) : void
onConfirm ( ) : void
onExit ( ) : void
onFocus ( ) : void
onMoveCursor ( Direction dir ) : void
onRefocus ( ) : void
reset ( ) : void
setEntryColor ( Color color ) : void
setEntryHighlightedColor ( Color color ) : void
setScrolling ( int numRowsVisible, int numCols ) : void
setScrolling ( int numRowsVisible, int numCols, int startX, int endX, int startY ) : void
unhideEntries ( ) : void
update ( float elapsed ) : void

Private Methods

Méthode Description
drawHelper ( SpriteBatch sb, int i ) : void

Method Details

ListPanel() public méthode

public ListPanel ( ) : System
Résultat System

ListPanel() public méthode

public ListPanel ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
Résultat System

alignEntriesHorizontal() public méthode

public alignEntriesHorizontal ( ) : void
Résultat void

alignEntriesHorizontal() public méthode

public alignEntriesHorizontal ( int startX, int endX, int startY, int endY ) : void
startX int
endX int
startY int
endY int
Résultat void

alignEntriesTable() public méthode

public alignEntriesTable ( int rows, int cols, bool rowFirst = true ) : void
rows int
cols int
rowFirst bool
Résultat void

alignEntriesTable() public méthode

public alignEntriesTable ( int rows, int cols, int startX, int endX, int startY, int endY, bool rowFirst = true ) : void
rows int
cols int
startX int
endX int
startY int
endY int
rowFirst bool
Résultat void

alignEntriesVertical() public méthode

public alignEntriesVertical ( ) : void
Résultat void

alignEntriesVertical() public méthode

public alignEntriesVertical ( int startX, int endX, int startY, int endY ) : void
startX int
endX int
startY int
endY int
Résultat void

clearEntries() public méthode

public clearEntries ( ) : void
Résultat void

draw() public méthode

public draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

getCurrentEntry() public méthode

public getCurrentEntry ( ) : MenuEntry
Résultat MenuEntry

getEntries() public méthode

public getEntries ( ) : List
Résultat List

getEntryColor() public méthode

public getEntryColor ( ) : Color
Résultat Color

getEntryHighlightedColor() public méthode

public getEntryHighlightedColor ( ) : Color
Résultat Color

hideEntries() public méthode

public hideEntries ( ) : void
Résultat void

isScrolling() public méthode

public isScrolling ( ) : bool
Résultat bool

loadContent() public méthode

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

loadEntries() public méthode

public loadEntries ( ) : void
Résultat void

onConfirm() public méthode

public onConfirm ( ) : void
Résultat void

onExit() public méthode

public onExit ( ) : void
Résultat void

onFocus() public méthode

public onFocus ( ) : void
Résultat void

onMoveCursor() public méthode

public onMoveCursor ( Direction dir ) : void
dir Direction
Résultat void

onRefocus() public méthode

public onRefocus ( ) : void
Résultat void

reset() public méthode

public reset ( ) : void
Résultat void

setEntryColor() public méthode

public setEntryColor ( Color color ) : void
color Color
Résultat void

setEntryHighlightedColor() public méthode

public setEntryHighlightedColor ( Color color ) : void
color Color
Résultat void

setScrolling() public méthode

public setScrolling ( int numRowsVisible, int numCols ) : void
numRowsVisible int
numCols int
Résultat void

setScrolling() public méthode

public setScrolling ( int numRowsVisible, int numCols, int startX, int endX, int startY ) : void
numRowsVisible int
numCols int
startX int
endX int
startY int
Résultat void

unhideEntries() public méthode

public unhideEntries ( ) : void
Résultat void

update() public méthode

public update ( float elapsed ) : void
elapsed float
Résultat void

Property Details

cursor protected_oe property

protected int cursor
Résultat int

entries protected_oe property

protected List entries
Résultat List

font protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

scrollBar protected_oe property

protected ScrollBar scrollBar
Résultat ScrollBar