神岛 API 文档 - ArenaPro版
    Preparing search index...

    Type Alias GameDialogParams

    对话框参数类型定义

    type GameDialogParams = {
        confirmText?: string;
        content: string;
        contentBackgroundColor?: GameRGBAColor;
        contentTextColor?: GameRGBAColor;
        hasArrow?: boolean;
        lookEye?: GameVector3 | GameEntity;
        lookEyeOffset?: GameVector3;
        lookTarget?: GameVector3 | GameEntity;
        lookTargetOffset?: GameVector3;
        lookUp?: GameVector3;
        options?: string[];
        placeholder?: string;
        title?: string;
        titleBackgroundColor?: GameRGBAColor;
        titleTextColor?: GameRGBAColor;
        type: GameDialogType;
    }
    Index

    Properties

    confirmText?: string

    输入对话框的确认按钮文本

    content: string

    对话框内容

    contentBackgroundColor?: GameRGBAColor

    对话框背景色

    contentTextColor?: GameRGBAColor

    对话框文字颜色

    hasArrow?: boolean

    文本对话框是否显示箭头

    相机眼位置

    lookEyeOffset?: GameVector3

    如果相机眼位置是实体,则为实体位置的偏移量

    lookTarget?: GameVector3 | GameEntity

    对象的目标点

    lookTargetOffset?: GameVector3

    如果目标实体已给出,则为目标实体的偏移量

    lookUp?: GameVector3

    相机上方向量

    options?: string[]

    选择对话框的选项列表

    placeholder?: string

    输入对话框的默认输入文本

    title?: string

    对话框标题

    titleBackgroundColor?: GameRGBAColor

    对话框标题背景色

    titleTextColor?: GameRGBAColor

    对话框标题文字颜色

    对话框类型