Skip to content
迷你世界 Studio
Main Navigation
教程
迷你世界Studio操作教程
操作手册
多人协作
运行模式
使用资源ID
API
类
数据库
枚举
官方主页
简体中文
English
简体中文
English
Appearance
Menu
Return to top
On this page
UIDropDownBox
继承自
:
UIComponent
描述
场景UI下拉框
属性
ColorQuad
TitleColor
文本颜色
int
TitleFontSize
文本字体大小
int
SelectedIndex
选中的下标
函数
string
GetValue
()
获取下拉框选中的内容
string
GetItem
()
获取下拉框某item项
void
RemoveItem
(
int
index)
通过下标移除下拉框中某项item
int
AddItemWithValue
(
string
item,
string
value)
给下拉框新增一项item
int
AddItem
(
string
item)
给下拉框添加一项item
string
GetItemByIndex
(
int
index)
通过下标获取下拉框中某项item的key
string
GetValueByIndex
(
int
index)
通过item获取Index
int
GetIndexByItem
(
string
arg1)
事件
SBXSignal
SelectIndexChange
(
SandboxNode
node,
int
index)
索引切换事件