메소드 | 설명 | |
---|---|---|
Add ( |
Adds a control to the screen
|
|
HandleInput ( |
Handles the input events from the player controlling the current control
|
|
Invalidate ( ) : void |
Marks this Screen as requiring to be refreshed
|
|
LoseFocus ( ) : void |
Removes focus from the current control
|
|
OnFocusAcquired ( ) : void |
|
|
OnFocusLost ( ) : void |
|
|
PrepareRenderTarget ( GraphicsDevice device ) : void |
Creates or recreate the RenderTarget where the screen will be rendered
|
|
Refresh ( GraphicsDevice device ) : void |
Refreshes the Screen properties when it requires to be redrawn to the RenderTarget
|
|
Remove ( |
Removes a control from the screen
|
|
RemoveAll ( ) : void | ||
Screen ( ) : System |
Creates a new instance that renders to screen
|
|
Screen ( bool renderToScreen ) : System |
Creates a new instance without input support
|
|
Screen ( bool renderToScreen, bool isMenu, |
Creates a new instance which width and height are set to the current Viewport Width and Height
|
|
Screen ( bool renderToScreen, bool isMenu, |
Creates a new instance
|
|
SetFocus ( ) : void |
Sets focus to the current control
|
|
Update ( |
Update loop call
|
메소드 | 설명 | |
---|---|---|
IGuiElement ( GraphicsDevice device ) : void |
Refreshes the Screen properties when it requires to be redrawn to the RenderTarget
|
|
IGuiElement ( |
Renders the Screen
|
public HandleInput ( |
||
input | The current player input states | |
gameTime | The GameTime instance | |
리턴 | void |
public PrepareRenderTarget ( GraphicsDevice device ) : void | ||
device | GraphicsDevice | |
리턴 | void |
public Screen ( bool renderToScreen ) : System | ||
renderToScreen | bool | Set it to true to render directly to screen; false to use the Texture property and render the Screen content elsewhere |
리턴 | System |
public Screen ( bool renderToScreen, bool isMenu, |
||
renderToScreen | bool | Set it to true to render directly to screen; false to use the Texture property and render the Screen content elsewhere |
isMenu | bool | If set to true, the inner Buttons will react as in a standard menu; false means that you'll control how inner controls react to input events within their Control.HandleInput() method |
playerInput | The player input state instance. One Screen can only be controlled by One PlayerInput instance | |
리턴 | System |
public Screen ( bool renderToScreen, bool isMenu, |
||
renderToScreen | bool | Set it to true to render directly to screen; false to use the Texture property and render the Screen content elsewhere |
isMenu | bool | If set to true, the inner Buttons will react as in a standard menu; false means that you'll control how inner controls react to input events within their Control.HandleInput() method |
playerInput | The player input state instance. One Screen can only be controlled by One PlayerInput instance | |
width | int | The width of the screen, this will be also be used for the inner RenderTarget2D if renderToScreen is set to true |
height | int | The height of the screen, this will be also be used for the inner RenderTarget2D if renderToScreen is set to true |
리턴 | System |
public Update ( |
||
gameTime | ||
리턴 | void |