Actually, I can't think of any logic when user tap out prompt and user tap cancel button on prompt.
local value will always be nil ;-;
for example:
test = gg.prompt ({
[1] = "..." })
if test == nil then -- user tap out prompt
print("menu hide")
-- code menu hide
elseif -- how to know when user tap cancel button on prompt?
main() -- back to main()
end
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.