local UI登陆
function onClick()
UI登陆=true
print("-----------------------------")
return UI登陆
end
ui.newLayout("用户登陆",800,700)
ui.addTextView("用户登陆","用户名标签1","软件激活密钥KEY:")
ui.addEditText("用户登陆","用户KEY","输入KEY",-1)
ui.newRow("用户登陆","row1")
ui.addButton("用户登陆","btn2","登陆")
ui.setOnClick("btn2","onClick()")
ui.show("用户登陆",false)
j=999
for i=1200,0,-1 do
if UI登陆~=true then
if i==999 then
ui.dismiss("用户登陆")
break
else
print(i)
ui.setButton("btn2","登陆("..j..")")
sleep(1000)
end
j=j-1
print(UI登陆)
else
ui.dismiss("用户登陆")
break
end
end
sleep(10000)
|