프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Game | LDEngine.Game | ||
Input | |||
ScaledMousePos | Point | ||
blankTexture | Texture2D |
메소드 | 설명 | |
---|---|---|
AddScreen ( |
Adds a new screen to the screen manager.
|
|
Draw ( |
Tells each screen to draw itself.
|
|
FadeBackBufferToBlack ( float alpha ) : void |
Helper draws a translucent black fullscreen sprite, used for fading screens in and out, and for darkening the background behind popups.
|
|
GetScreens ( ) : GameStateManagement.GameScreen[] |
Expose an array holding all the screens. We return a copy rather than the real master list, because screens should only ever be added or removed using the AddScreen and RemoveScreen methods.
|
|
Initialize ( ) : void |
Initializes the screen manager component.
|
|
LoadContent ( ) : void |
Load your graphics content.
|
|
RemoveScreen ( |
Removes a screen from the screen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.
|
|
ScreenManager ( LDEngine game ) : System |
Constructs a new screen manager component.
|
|
TraceScreens ( ) : void |
Prints a list of all the screens, for debugging.
|
|
UnloadContent ( ) : void |
Unload your graphics content.
|
|
Update ( |
Allows each screen to run logic.
|
메소드 | 설명 | |
---|---|---|
CloseAllScreens ( ) : void | ||
CloseScreen ( |
public Draw ( |
||
gameTime | ||
리턴 | void |
public FadeBackBufferToBlack ( float alpha ) : void | ||
alpha | float | |
리턴 | void |
public GetScreens ( ) : GameStateManagement.GameScreen[] | ||
리턴 | GameStateManagement.GameScreen[] |
public Update ( |
||
gameTime | ||
리턴 | void |