Class UISetting_MinMax
UISetting subclass for settings that are value
ranges. A value range simply defines a minimum and a maximum
value as either a float or an integer.
Inheritance
UISetting_MinMax
Namespace: AS2.UI
Assembly: .dll
Syntax
public class UISetting_MinMax : UISetting
Constructors
Declaration
public UISetting_MinMax(GameObject go, Transform parentTransform, string name, MinMax minMax)
Parameters
Type |
Name |
Description |
GameObject |
go |
|
Transform |
parentTransform |
|
string |
name |
|
MinMax |
minMax |
|
Declaration
public UISetting_MinMax(GameObject go, Transform parentTransform, string name, float inputMin, float inputMax, UISetting_MinMax.InputType inputType)
Parameters
Fields
Declaration
private TMP_InputField input1
Field Value
Type |
Description |
TMP_InputField |
|
Declaration
private string input1prev
Field Value
Declaration
private TMP_InputField input2
Field Value
Type |
Description |
TMP_InputField |
|
Declaration
private string input2prev
Field Value
Declaration
private UISetting_MinMax.InputType inputType
Field Value
onValueChangedEvent
Declaration
public Action<string, string> onValueChangedEvent
Field Value
Methods
ClearRefs()
Clears all subclass-specific callback events.
Declaration
protected override void ClearRefs()
Overrides
GetValueString()
Access to the current value.
Declaration
public override string GetValueString()
Returns
Type |
Description |
string |
The current value of the setting as a string.
|
Overrides
Declaration
protected bool IsInputValid(string input)
Parameters
Type |
Name |
Description |
string |
input |
|
Returns
LockSetting()
Locks the setting to prevent changes.
Declaration
protected override void LockSetting()
Overrides
OnValueChanged()
Declaration
private void OnValueChanged()
SetInteractableState(bool)
Sets the setting's interactable state.
Declaration
protected override void SetInteractableState(bool interactable)
Parameters
Type |
Name |
Description |
bool |
interactable |
The new interactable state.
|
Overrides
SetValueString(string)
The inverse of GetValueString().
If calling both methods after each other, nothing should change.
Declaration
public override void SetValueString(string input)
Parameters
Type |
Name |
Description |
string |
input |
String representation of the setting's new value.
|
Overrides
UnlockSetting()
Unlocks the setting to allow changes again after locking.
Declaration
protected override void UnlockSetting()
Overrides