Property | Type | Description | |
---|---|---|---|
_minScale | Vector2 | ||
_speed | Vector2 | ||
_state | PanelState |
Method | Description | |
---|---|---|
Collapse ( ) : bool |
Collapse the panel. Panel must be in Open or Expanding states.
|
|
Expand ( ) : bool |
Expand the panel. The panel must be in Collapsed or Collapsing state.
|
|
Panel ( GraphicsDevice graphics, Vector2 size, Vector2 speed, Vector2 position, Color color ) : System |
Creates an expandable/collapsable panel
|
|
Update ( |
Standard XNA Game loop Update method.
|
Method | Description | |
---|---|---|
switchState ( PanelState panelState ) : void |
Switches the current state of the panel, and fires StateChanged event, if there are any subscribers.
|
public Panel ( GraphicsDevice graphics, Vector2 size, Vector2 speed, Vector2 position, Color color ) : System | ||
graphics | GraphicsDevice | Graphics device |
size | Vector2 | Size of panel when fully expanded |
speed | Vector2 | Speed of expansion/collapse |
position | Vector2 | Position of center of the panel. Panel expands/collapses from/to this point |
color | Color | Color of the panel |
return | System |
public Update ( |
||
gameTime | GameTime object for current game. | |
return | void |
protected switchState ( PanelState panelState ) : void | ||
panelState | PanelState | New state for the current panel. |
return | void |