Method | Description | |
---|---|---|
Draw ( Vector2 offsetPosition, bool highlighted ) : void |
Draws the menu entry at the specified position.
|
|
Update ( bool highlighted ) : void |
Updates the specified highlighted.
|
|
VolumeControlDisplayEntry ( string text, string description, |
Initializes a new instance of the VolumeControlDisplayEntry class.
|
Method | Description | |
---|---|---|
ChangeVolume ( int amount ) : void |
Changes the volume by the specified amount.
|
|
Disappear ( ) : void |
Has all scales go to 0.
|
|
GetVolume ( ) : int |
Gets the volume in the range [0, 10].
|
|
UpdateTValues ( ) : void |
Updates the T values (positions and scales) based on volume.
|
public Draw ( Vector2 offsetPosition, bool highlighted ) : void | ||
offsetPosition | Vector2 | The offset position. |
highlighted | bool | Specifies whether or not this menu entry /// is the highlighted menu entry in the list of menu entries. |
return | void |
public Update ( bool highlighted ) : void | ||
highlighted | bool | Specifies whether or not this menu entry /// is the highlighted menu entry in the list of menu entries. |
return | void |
public VolumeControlDisplayEntry ( string text, string description, |
||
text | string | The text. |
description | string | The description. |
actions | The actions. | |
position | Vector2 | The position. |
numberDisplayPosition | Vector2 | The number display position. |
scale | float | The scale of the largest number. |
numberLayerDepth | float | The number layer depth. |
musicVolume | bool | Is this for music volume? Else, sound volume. |
ignoreOffsetPosition | bool | if set to |
return | System |