How do I change default loader window resolution for nwjs?

Get help using Construct 2

Post » Thu Dec 03, 2015 3:54 pm

@ashley could you help here? I have no idea where to begin!
B
8
S
1
Posts: 34
Reputation: 599

Post » Thu Dec 03, 2015 4:20 pm

Would using this export option do the trick?

Kiosk mode:

use a "kiosk" display mode, where the app runs in fullscreen and tries to prevent the user from leaving.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Dec 03, 2015 4:37 pm

I'm already using it :-/

This is what I get before going fullscreen:
Image

... and this is The Next Penelope using a custom res:
Image
B
39
S
16
G
6
Posts: 542
Reputation: 7,617

Post » Thu Dec 03, 2015 4:49 pm

This?

https://github.com/nwjs/nw.js/issues/811

Or maybe you could set the window transparant and add an Image?

in your html body, specify the alpha of the background colour, in my example below, I set it to be full transparent

<body style="background-color:rgba(0,0,0,0);">

you can set the window's transparency "on the fly" using

var gui = require('nw.gui');
var win = gui.Window.get();
win.setTransparent(!win.isTransparent);

you can also specify it in package.json

"window": {
"transparent": true
}
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Dec 03, 2015 7:40 pm

I messed around in package and package-win.json quite a bit with nothing happening. Not a sausage. But then I remembered; my project uses the node-webkit object and not the nwjs object! They're functionally identical as far as I know but only nwjs will access package-win.json in the nwjs folder obviously. Hoo man. Now it works.

Thanks for all the help :)
B
39
S
16
G
6
Posts: 542
Reputation: 7,617

Previous

Return to How do I....?

Who is online

Users browsing this forum: adventurist, Artcadev, Blendi1223, PROxMTswatTR and 39 guests