C# 클래스 Project290.Menus.VolumeControlDisplayEntry

Used for both controlling volume and displaying the volume.
상속: DescriptionMenuEntry
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 메소드들

메소드 설명
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, MenuAction actions, Vector2 position, Vector2 numberDisplayPosition, float scale, float numberLayerDepth, bool musicVolume, bool ignoreOffsetPosition ) : System

Initializes a new instance of the VolumeControlDisplayEntry class.

비공개 메소드들

메소드 설명
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.

메소드 상세

Draw() 공개 메소드

Draws the menu entry at the specified position.
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.
리턴 void

Update() 공개 메소드

Updates the specified highlighted.
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.
리턴 void

VolumeControlDisplayEntry() 공개 메소드

Initializes a new instance of the VolumeControlDisplayEntry class.
public VolumeControlDisplayEntry ( string text, string description, MenuAction actions, Vector2 position, Vector2 numberDisplayPosition, float scale, float numberLayerDepth, bool musicVolume, bool ignoreOffsetPosition ) : System
text string The text.
description string The description.
actions MenuAction 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 true [ignore offset position].
리턴 System