BGO (TeaScript)

来自SMBX 中文百科
TeaScript/BGO
跳转到导航 跳转到搜索

bgo(id).index,是一个物体背景的属性。

用法

读取某个值:bgo(index).name

修改某个值:bgo(index).name = value

参数

基础

参数名 数据类型 介绍
id double BGO 的对象ID(1-357)
x double BGO 的X坐标
y double BGO 的Y坐标

图形

参数名 数据类型 介绍
zpos double BGO 的 z-index 坐标(为0~1区间)(0为最靠前景,1为最靠背景。)
extx double BGO 的拓展帧的横向位置。
exty double BGO 的拓展帧的纵向位置。
forecolor double BGO 的颜色,使用rgba(red, green, blue, alpha)或整数值控制。
forecolor_r double BGO 的 rgba 前景色中的红色通道的数值。
forecolor_g double BGO 的 rgba 前景色中的绿色通道的数值。
forecolor_b double BGO 的 rgba 前景色中的蓝色通道的数值。
forecolor_a double BGO 的 rgba 前景色中的 alpha(即透明度) 通道的数值。