-- 创建脚本界面入口
function createUI()
showLoopSetting(true)
createTextView("标题","结束模式")
newLine()
createRadioBox("jieshumoshi","快速结束","true")
createRadioBox("jieshumoshi","正常结束","false")
newLine()
end
-- 脚本执行入口
function main()
If jieshumoshi=="快速结束" then
toast("快速结束")
elseif jieshumoshi=="正常结束" then
toast("正常结束")
end
end
=========================================
代码如图,我在UI里设置了个单选框,请问在主程序里要怎么根据单选框的选择结果执行相应的命令,例如,上述代码中,我在UI界面选择了“快速结束”这个单选框,问题是,我在主程序中要怎么根据选择的结果执行相应的命令呢?象我写的 “If jieshumoshi=="快速结束" then”这个判断语句行吗?新手刚接触LUA,请多多指教