C# Class SunsetHigh.ListPanel

Inheritance: Panel, IListPanel
Mostrar archivo Open project: ErraticUnicorn/MOSH Class Usage Examples

Protected Properties

Property Type Description
cursor int
entries List
font Microsoft.Xna.Framework.Graphics.SpriteFont
scrollBar ScrollBar

Public Methods

Method 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

Method Description
drawHelper ( SpriteBatch sb, int i ) : void

Method Details

ListPanel() public method

public ListPanel ( ) : System
return System

ListPanel() public method

public ListPanel ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
return System

alignEntriesHorizontal() public method

public alignEntriesHorizontal ( ) : void
return void

alignEntriesHorizontal() public method

public alignEntriesHorizontal ( int startX, int endX, int startY, int endY ) : void
startX int
endX int
startY int
endY int
return void

alignEntriesTable() public method

public alignEntriesTable ( int rows, int cols, bool rowFirst = true ) : void
rows int
cols int
rowFirst bool
return void

alignEntriesTable() public method

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
return void

alignEntriesVertical() public method

public alignEntriesVertical ( ) : void
return void

alignEntriesVertical() public method

public alignEntriesVertical ( int startX, int endX, int startY, int endY ) : void
startX int
endX int
startY int
endY int
return void

clearEntries() public method

public clearEntries ( ) : void
return void

draw() public method

public draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

getCurrentEntry() public method

public getCurrentEntry ( ) : MenuEntry
return MenuEntry

getEntries() public method

public getEntries ( ) : List
return List

getEntryColor() public method

public getEntryColor ( ) : Color
return Color

getEntryHighlightedColor() public method

public getEntryHighlightedColor ( ) : Color
return Color

hideEntries() public method

public hideEntries ( ) : void
return void

isScrolling() public method

public isScrolling ( ) : bool
return bool

loadContent() public method

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

loadEntries() public method

public loadEntries ( ) : void
return void

onConfirm() public method

public onConfirm ( ) : void
return void

onExit() public method

public onExit ( ) : void
return void

onFocus() public method

public onFocus ( ) : void
return void

onMoveCursor() public method

public onMoveCursor ( Direction dir ) : void
dir Direction
return void

onRefocus() public method

public onRefocus ( ) : void
return void

reset() public method

public reset ( ) : void
return void

setEntryColor() public method

public setEntryColor ( Color color ) : void
color Color
return void

setEntryHighlightedColor() public method

public setEntryHighlightedColor ( Color color ) : void
color Color
return void

setScrolling() public method

public setScrolling ( int numRowsVisible, int numCols ) : void
numRowsVisible int
numCols int
return void

setScrolling() public method

public setScrolling ( int numRowsVisible, int numCols, int startX, int endX, int startY ) : void
numRowsVisible int
numCols int
startX int
endX int
startY int
return void

unhideEntries() public method

public unhideEntries ( ) : void
return void

update() public method

public update ( float elapsed ) : void
elapsed float
return void

Property Details

cursor protected_oe property

protected int cursor
return int

entries protected_oe property

protected List entries
return List

font protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
return Microsoft.Xna.Framework.Graphics.SpriteFont

scrollBar protected_oe property

protected ScrollBar scrollBar
return ScrollBar