Hello,
I am trying to build an overlay scene to show a password dialog. The objective is to allow the user to access an admin area, once the overlay scene is shown the user can enter a password, if the password is correct I send the user to the admin scene.
I tried initially to send the user directly from the overlay scene but that didn’t seem to work so I am using a variable set to true if the password is valid and trying to send the user to the admin scene from the overlayEnded event on the underlying scene. This doesn’t seem to work either I get the following message
File: bad argument #-2 to ‘insert’ (Proxy expected, got nil)
Bad argument #-2 to ‘insert’ (Proxy expected, got nil)
stack traceback:
[C]: ?
[C]: in function ‘insert’
?: in function ‘?’
?: in function ‘gotoScene’
/Volumes/FALP_4GB/CCS/scripts/screen1.lua:125: in function ‘gotoAdminScene’
/Volumes/FALP_4GB/CCS/scripts/screen1.lua:117: in function </Volumes/FALP_4GB/CCS/scripts/screen1.lua:112>
?: in function ‘dispatchEvent’
?: in function <?:1165>
?: in function ‘hideOverlay’
/Volumes/FALP_4GB/CCS/scripts/overlay.lua:32: in function ‘hide’
/Volumes/FALP_4GB/CCS/scripts/overlay.lua:21: in function </Volumes/FALP_4GB/CCS/scripts/overlay.lua:16>
?: in function <?:218>
storyboard.gotoScene(“scripts.admin”)
It’s really frustrating that the documentation doesn’t have an example of how to use this feature correctly.
Thanks in advance.