Свойство | Тип | Описание | |
---|---|---|---|
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 AddScreen ( |
||
screen | ||
Результат | void |
public Draw ( |
||
gameTime | ||
Результат | void |
public FadeBackBufferToBlack ( float alpha ) : void | ||
alpha | float | |
Результат | void |
public GetScreens ( ) : GameStateManagement.GameScreen[] | ||
Результат | GameStateManagement.GameScreen[] |
public RemoveScreen ( |
||
screen | ||
Результат | void |
public ScreenManager ( LDEngine game ) : System | ||
game | LDEngine | |
Результат | System |
public Update ( |
||
gameTime | ||
Результат | void |