跳到主要内容

Combo

在当前上下文,添加一个列表框

声明

int Combo(string label, ImInt current_item, array items, int popup_max_height_in_items)

参数

参数名描述
label显示文本
current_item当前选中的值
items列表项
popup_max_height_in_items列表框的最大高度, -1 为默认值, imgui 会自动计算高度

返回值

使用方式


gsimgui.Combo("##combo_1", _int1, ["a", "b", "c"]);

返回文档