ksjsjsjs Posted March 28, 2019 Share Posted March 28, 2019 function doAction() local ret = gg.alert('Here some action', 'OK', 'Cancel', 'Exit') if ret == 3 then os.exit() end gg.setVisible(false) while true do if gg.isVisible() then gg.setVisible(false) doAction() end gg.sleep(100) end Link to comment Share on other sites More sharing options...
TopGEOYT Posted March 30, 2019 Share Posted March 30, 2019 On 3/28/2019 at 9:50 PM, ksjsjsjs said: function doAction() local ret = gg.alert('Here some action', 'OK', 'Cancel', 'Exit') if ret == 3 then os.exit() end gg.setVisible(false) while true do if gg.isVisible() then gg.setVisible(false) doAction() end gg.sleep(100) end You use gg.alert and it cannot get any buttons like checkbox . You need gg.multiChoise . Link to comment Share on other sites More sharing options...
noblack Posted April 4, 2019 Share Posted April 4, 2019 On 3/29/2019 at 1:50 AM, ksjsjsjs said: function doAction() local ret = gg.alert('Here some action', 'OK', 'Cancel', 'Exit') if ret == 3 then os.exit() end gg.setVisible(false) while true do if gg.isVisible() then gg.setVisible(false) doAction() end gg.sleep(100) end function doAction() local ret = gg.alert('Here some action', 'OK', 'Cancel', 'Exit') if ret == 3 then os.exit() end end gg.setVisible(false) while true do if gg.isVisible() then gg.setVisible(false) doAction() else gg.sleep(100) end end Link to comment Share on other sites More sharing options...
Administrators Enyby Posted March 28, 2019 Administrators Share Posted March 28, 2019 Read API help: https://gameguardian.net/help/ View examples. Code it. Link to comment Share on other sites More sharing options...
Question
ksjsjsjs
function doAction()
local ret = gg.alert('Here some action', 'OK', 'Cancel', 'Exit')
if ret == 3 then os.exit() end
gg.setVisible(false)
while true do
if gg.isVisible() then
gg.setVisible(false)
doAction()
end
gg.sleep(100)
end
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.