Hi Paras9,
A new version of the plugin is available with a new call for the dialog. Its currently in Beta but you can use it and will wait for your feedback.
Hope this help,
Nick
Hi Paras9,
A new version of the plugin is available with a new call for the dialog. Its currently in Beta but you can use it and will wait for your feedback.
Hope this help,
Nick
Awesome, thanks Nick! I’ll test it out and get back to you asap!
Here is some sample code to see the example I show you previously
local options = braintonikDialog.applyOptionsFromTemplate( "roundClassicGrey" ) braintonikDialog.addTransition( options, "RightToLeft" ) options.wDialog = 300 options.buttonFontSize = 12 options.buttonWidth = 100 -- we want to block all touch events braintonikDialog.addBackgroundOptions( options, true ) -- define our button callback handler local function callBack( pressedButton ) print( "Pressed button : ", pressedButton ) end -- set our different data options.titleString = "Session Expiry" options.textString = "This session will expire in 10 seconds" options.buttonHandler = callBack options.buttonName = { "Extend Session", "Log out" } -- we want to overide the default screen options.xScreen = xScreen options.yScreen = yScreen options.wScreen = wScreen options.hScreen = hScreen -- display the dialog local dialogObj, error = braintonikDialog.displayPopupDialogEx( options ) local dismissTime = 10 local function updateAlert() dismissTime = dismissTime - 1 local newTextMsg = string.format( "This session will expire in %s seconds", dismissTime ) dialogObj:changeTextString( newTextMsg ) end timer.performWithDelay( 1000, updateAlert, 10 )