跳转至

Lua UI

Lua UI

Lua UI目前都以LuaWidget表示,暂时只支持竖向的简单布局,下面是一些控件函数:

  • color(code: String) 颜色
  • text(text, size, color):显示文本
  • dropdown(options: Array<String>, label: String, defaultVaule: () -> String, onChange: (Int, String) -> Unit):下拉框
  • textButton(text: String, onClick: () -> Unit):按钮
  • textField(text: String, defaultText: () -> String, onTextChanged: (String) -> Unit):输入框
  • checkbox(text: String, checked: () -> Boolean, onCheckedChange: (Boolean) -> Unit): 复选框