Search Results for

    Show / Hide Table of Contents

    Class UISetting_Color

    UISetting subclass for setting a color. Colors are represented in RGB format, either as integers from 0 to 255 or as floats from 0 to 1.

    Inheritance
    object
    UISetting
    UISetting_Color
    Namespace: AS2.UI
    Assembly: .dll
    Syntax
    public class UISetting_Color : UISetting

    Constructors

    | Edit this page View Source

    UISetting_Color(GameObject, Transform, string, Color, InputType)

    Declaration
    public UISetting_Color(GameObject go, Transform parentTransform, string name, Color start, UISetting_Color.InputType inputType)
    Parameters
    Type Name Description
    GameObject go
    Transform parentTransform
    string name
    Color start
    UISetting_Color.InputType inputType

    Fields

    | Edit this page View Source

    color

    Declaration
    private Color color
    Field Value
    Type Description
    Color
    | Edit this page View Source

    inputB

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

    inputBprev

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

    inputG

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

    inputGprev

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

    inputR

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

    inputRprev

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

    inputType

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

    onValueChangedEvent

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

    Properties

    | Edit this page View Source

    Color

    Declaration
    public Color Color { get; }
    Property Value
    Type Description
    Color

    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, out int, out float)

    Declaration
    protected bool IsInputValid(string input, out int intVal, out float floatVal)
    Parameters
    Type Name Description
    string input
    int intVal
    float floatVal
    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

    UpdateValue(Color)

    Declaration
    public void UpdateValue(Color newColor)
    Parameters
    Type Name Description
    Color newColor
    • 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