Search Results for

    Show / Hide Table of Contents

    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
    object
    UISetting
    UISetting_MinMax
    Namespace: AS2.UI
    Assembly: .dll
    Syntax
    public class UISetting_MinMax : UISetting

    Constructors

    | Edit this page View Source

    UISetting_MinMax(GameObject, Transform, string, MinMax)

    Declaration
    public UISetting_MinMax(GameObject go, Transform parentTransform, string name, MinMax minMax)
    Parameters
    Type Name Description
    GameObject go
    Transform parentTransform
    string name
    MinMax minMax
    | Edit this page View Source

    UISetting_MinMax(GameObject, Transform, string, float, float, InputType)

    Declaration
    public UISetting_MinMax(GameObject go, Transform parentTransform, string name, float inputMin, float inputMax, UISetting_MinMax.InputType inputType)
    Parameters
    Type Name Description
    GameObject go
    Transform parentTransform
    string name
    float inputMin
    float inputMax
    UISetting_MinMax.InputType inputType

    Fields

    | Edit this page View Source

    input1

    Declaration
    private TMP_InputField input1
    Field Value
    Type Description
    TMP_InputField
    | Edit this page View Source

    input1prev

    Declaration
    private string input1prev
    Field Value
    Type Description
    string
    | Edit this page View Source

    input2

    Declaration
    private TMP_InputField input2
    Field Value
    Type Description
    TMP_InputField
    | Edit this page View Source

    input2prev

    Declaration
    private string input2prev
    Field Value
    Type Description
    string
    | Edit this page View Source

    inputType

    Declaration
    private UISetting_MinMax.InputType inputType
    Field Value
    Type Description
    UISetting_MinMax.InputType
    | Edit this page View Source

    onValueChangedEvent

    Declaration
    public Action<string, string> onValueChangedEvent
    Field Value
    Type Description
    Action<string, string>

    Methods

    | Edit this page View Source

    ClearRefs()

    Clears all subclass-specific callback events.

    Declaration
    protected override void ClearRefs()
    Overrides
    UISetting.ClearRefs()
    | Edit this page View Source

    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
    UISetting.GetValueString()
    | Edit this page View Source

    IsInputValid(string)

    Declaration
    protected bool IsInputValid(string input)
    Parameters
    Type Name Description
    string input
    Returns
    Type Description
    bool
    | Edit this page View Source

    LockSetting()

    Locks the setting to prevent changes.

    Declaration
    protected override void LockSetting()
    Overrides
    UISetting.LockSetting()
    | Edit this page View Source

    OnValueChanged()

    Declaration
    private void OnValueChanged()
    | Edit this page View Source

    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
    UISetting.SetInteractableState(bool)
    | Edit this page View Source

    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
    UISetting.SetValueString(string)
    | Edit this page View Source

    UnlockSetting()

    Unlocks the setting to allow changes again after locking.

    Declaration
    protected override void UnlockSetting()
    Overrides
    UISetting.UnlockSetting()
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX