Open browser in NW.JS game

Discussion and feedback on Construct 2

Post » Tue Dec 08, 2015 11:33 am

I have game demo exported in NW.JS.
I'd like to add "Get full version" button that opens default browser with steam link.
Browser object opens this in the game's window. "Open in new window" opens another NWJS window - that's not a browser.

How to open link in a browser in NWJS game?
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Tue Dec 08, 2015 11:46 am

tecbug wrote:I have game demo exported in NW.JS.
I'd like to add "Get full version" button that opens default browser with steam link.
Browser object opens this in the game's window. "Open in new window" opens another NWJS window - that's not a browser.

How to open link in a browser in NWJS game?

What about the NW.js 'Open Browser' action?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,389
Reputation: 58,460

Post » Tue Dec 08, 2015 12:05 pm

@zenox98 that helps, thanks! I didn't notice that one, since I already knew of the browser object's url action.
B
147
S
74
G
20
Posts: 1,787
Reputation: 22,529

Post » Wed Dec 09, 2015 12:35 pm

Thank you very much :)
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Thu Dec 10, 2015 9:27 pm

Nice! I didn't know this was possible. Thank you.
B
63
S
12
G
6
Posts: 456
Reputation: 8,981


Return to Construct 2 General

Who is online

Users browsing this forum: Kyatric and 13 guests