Interface ModConfigFieldNumber

Represents a number configuration field that will be represented as a number input in the configuration UI.

interface ModConfigFieldNumber {
    defaultValue: number;
    description?: string;
    id: string;
    maxValue?: number;
    minValue?: number;
    name: string;
    overrideValue?: Binding<null | number>;
    type: "number";
    visible?: Binding<boolean>;
}

Hierarchy

  • ModConfigFieldBase
    • ModConfigFieldNumber

Properties

defaultValue: number

The default value of the number field.

description?: string

The description for the field that appears in a help tooltip.

id: string

The unique identifier of the configuration element.

maxValue?: number

The maximum value that the user can input.

minValue?: number

The minimum value that the user can input.

name: string

The name of the field.

overrideValue?: Binding<null | number>

The override value of the number field. If this value is anything other than null, it will override the current value. If the value is overridden, it will also be read only.

type: "number"

The type of the configuration element.

visible?: Binding<boolean>

Determines if the field is visible or not.