@minecraft
    正在准备搜索索引...

    接口 IMinimapPropertyItemOptions

    Optional properties for Minimap property item

    interface IMinimapPropertyItemOptions {
        alignment?: LayoutAlignment;
        enable?: boolean;
        isMeMarkerShown?: boolean;
        isMultiplayerMarkerShown?: boolean;
        mapImageSize?: number | { height: number; width: number };
        onClick?: (x: number, y: number) => void;
        visible?: boolean;
    }

    层级 (查看层级一览)

    索引

    属性

    alignment?: LayoutAlignment

    Alignment of the map in the container. If not defined, LayoutAlignment.Center is used.

    enable?: boolean

    Initial enabled state of property item. If undefined, it will default to true.

    isMeMarkerShown?: boolean

    Whether to show me marker on the minimap. If undefined, defaults to true.

    isMultiplayerMarkerShown?: boolean

    Whether to show multiplayer markers on the minimap. If undefined, defaults to false.

    mapImageSize?: number | { height: number; width: number }

    Size of the map image. If undefined, defaults to 35.

    onClick?: (x: number, y: number) => void

    Called when map is clicked.

    visible?: boolean

    Initial visibility state of property item. If undefined, it will default to true.