How do I use NW.js correctly regarding to full screen, etc

Get help using Construct 2

Post » Fri Feb 12, 2016 7:59 pm

When I set 1080 as height, the window size is actually 1018 because of the window title and board bars. So, of course that no one wants to play with these bars showing then how to get the real full screen? Also it's interfering a character panel that I'm creating, which occupies the whole screen and I can't just use windowheight and width to determine the Tiled Background width and height because of this problem.

Any solution for this?
Thank you!
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sat Feb 13, 2016 12:46 am

Anyone? =/

Also this question leads me to another question, which is the possibility of players changing the resolution to fit their screen. It's simple to do I guess, but with no full screen option like the browser object have, I found myself kinda lost on this subject.
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sat Feb 13, 2016 2:47 pm

Anyone? =/
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sat Feb 13, 2016 2:58 pm

Browser: set full screen. Browser: cancel full screen. When you export, don't check permit resize to limit the game window to the default and/or full screen options.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,214
Reputation: 43,850

Post » Sat Feb 13, 2016 6:09 pm

@Colludium I thought that browser actions wouldn't work while using NW.JS. Thank you.
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Sat Feb 13, 2016 6:38 pm

No probs. I think it initiates kiosk mode, but only @Ashley could confirm (useful on a Mac to hide the prog shortcuts pop-up). You can also execute JavaScript commands to do this (a list is available on nw.js github). :)
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,214
Reputation: 43,850


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, brunopalermo, ChesVCF, Google [Bot], R0J0hound, zenox98 and 16 guests