bool IsCloseUI()
{
// ...
return b;
}
-- 判断设置UI的关闭按钮是否被点击
if IsCloseUI() then
PrintLog("设置UI被关闭", 0)
end
bool Button(char* label, int sizex, int sizey);
-- 显示一个按钮,并且判断是否点击
if Button("我是按钮##隐藏文字", 60, 60) then
PrintLog("我被点击了", 0)
end