Base parameters for gdjs.TextInputRuntimeObject

interface TextInputObjectData {
    behaviors: any[];
    content: {
        borderColor: string;
        borderOpacity: number;
        borderWidth: number;
        disabled: boolean;
        fillColor: string;
        fillOpacity: number;
        fontResourceName: string;
        fontSize: number;
        initialValue: string;
        inputType: "number" | "search" | "text" | "email" | "url" | "password" | "text area" | "telephone number";
        maxLength?: number;
        paddingX?: number;
        paddingY?: number;
        placeholder: string;
        readOnly: boolean;
        textAlign?: "left" | "right" | "center";
        textColor: string;
    };
    effects: EffectData[];
    name: string;
    type: string;
    variables: RootVariableData[];
}

Hierarchy

  • ObjectData
    • TextInputObjectData

Properties

behaviors: any[]

The list of default behaviors.

content: {
    borderColor: string;
    borderOpacity: number;
    borderWidth: number;
    disabled: boolean;
    fillColor: string;
    fillOpacity: number;
    fontResourceName: string;
    fontSize: number;
    initialValue: string;
    inputType: "number" | "search" | "text" | "email" | "url" | "password" | "text area" | "telephone number";
    maxLength?: number;
    paddingX?: number;
    paddingY?: number;
    placeholder: string;
    readOnly: boolean;
    textAlign?: "left" | "right" | "center";
    textColor: string;
}

The base parameters of the TextInput

Type declaration

  • borderColor: string
  • borderOpacity: number
  • borderWidth: number
  • disabled: boolean
  • fillColor: string
  • fillOpacity: number
  • fontResourceName: string
  • fontSize: number
  • initialValue: string
  • inputType: "number" | "search" | "text" | "email" | "url" | "password" | "text area" | "telephone number"
  • Optional maxLength?: number
  • Optional paddingX?: number
  • Optional paddingY?: number
  • placeholder: string
  • readOnly: boolean
  • Optional textAlign?: "left" | "right" | "center"
  • textColor: string
effects: EffectData[]

The list of effects.

name: string

The name of the object. During the game, objects can be queried by their name (see gdjs.RuntimeScene.prototype.getObjects for example).

type: string

The object type.

variables: RootVariableData[]

The list of default variables.