Hello
I am trying to pause code while a native.alert is on screen (to make a prompt on startup regarding what to do next).
My code
– code start --------------------------
local function onComplete (event)
print(“b”)
– snipped out button detect code to not spam this post.
end
print (“a”)
local alert = native.alert(“title”, “message box text”, {“button1”, “button2”, “button3”}, onComplete)
print (“c”)
– code end --------------------------
I would have expected this debug output after the code runs
> a
> b
> c
but I get this
> a
> c
> b
Am I missing something?
Q1) Do I have to now add state variables and an fps enter frame loop to then direct my code before or after modal events (alerts and settings screen popups)?
Thanks In Advance
Edit: I am using 2014.2189 as a pro subscriber.