Close the window using Node webkit

Get help using Construct 2

Post » Fri Nov 15, 2013 3:26 am

So I want to make an event that closes the window when you click it in Node Webkit. Any thoughts?
B
17
S
3
Posts: 225
Reputation: 2,358

Post » Fri Nov 15, 2013 3:53 am

Maybe the browser plugin helps? Since node-webkit is more or less a Chrome browser, the browser plugin's action "Close" might work? Wild guessing...
Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Fri Nov 15, 2013 5:04 am

Nope, doesn't work. First thing I tried!
B
17
S
3
Posts: 225
Reputation: 2,358

Post » Fri Nov 15, 2013 10:56 am

Works for me. Using the latest beta if that makes any difference.
B
19
S
7
G
10
Posts: 82
Reputation: 4,996

Post » Fri Nov 15, 2013 12:55 pm

The browser Close action should work.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Fri Nov 15, 2013 12:56 pm

it works for me. But, like toggling full screen, I think it has to be triggered by a user input, for security reason. So the close action has to be inside mouse click or key pressed eventOlivierC2013-11-15 12:57:10
B
12
S
5
G
2
Posts: 132
Reputation: 2,627

Post » Fri Nov 15, 2013 9:39 pm

Is it only on export, not on preview? That might be why it's not working for me.

And yes I'm using r150.Ashodin2013-11-15 22:08:33
B
17
S
3
Posts: 225
Reputation: 2,358


Return to How do I....?

Who is online

Users browsing this forum: el3um4s, Ryan Kocourek, TylerJS and 9 guests