nw.js lacks dialog On-Cancel Trigger

Bugs will be moved here once resolved.

Post » Mon Jun 13, 2016 6:10 pm

Problem Description
Scenario: offer player option to upload images for customisation on platform nw.js. In the upload dialog, if the player presses Cancel then there is no way for events to detect this selection, even though nw.js offers api support (see here for v14.2 changelog - nw.js receives an On-Cancel trigger event).

Attach a Capx
capx

Description of Capx
Simple example to offer player option to upload an image to one of two sprites. If you click on one of them a global variable changes to manage the mode of the event sheet and a nw.js open dialog opens. Either select an image file and upload, via OK, or press Cancel. If you press Cancel then the global Mode variable cannot be reset because there is no event trigger for the dialog when it is closed using Cancel.

Steps to Reproduce Bug
  • Click on a sprite and upload a new image by pressing OK.
  • Click on a sprite and then cancel the upload / close the dialog window.
  • Observe that the 'game' is now locked because the global Mode variable is incorrectly set for image upload.

Observed Result
As above.

Expected Result
The nw.js plugin requires a dialog Cancel or close trigger event, as supported by nw.js api.

Affected Browsers
  • nw.js only - tested on v14.2

Operating System and Service Pack
w10 x64

Construct 2 Version ID
r229 64 bit
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,287
Reputation: 47,558

Post » Tue Jun 21, 2016 11:20 am

More of a feature request, but straightforward to add, so it's in the next build.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,145

Post » Tue Jun 21, 2016 11:28 am

Thank you @Ashley - very much appreciated!
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,287
Reputation: 47,558


Return to Closed bugs

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests