About Node-Webkit

Discussion and feedback on Construct 2

Post » Wed Jun 12, 2013 6:13 pm

I'd use many of the features personally. +1 !
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Thu Jun 13, 2013 3:13 am

... I accidentally posted the reply to another thread right under my reply to this thread... disregard that second one please...
B
21
S
8
G
5
Posts: 89
Reputation: 6,017

Post » Wed Aug 06, 2014 2:29 pm

Sorry to resurrect this thread, but I've been playing much with NW too lately,

And after having a look at the docs, I agree that something like a frameless window would be a really neat thing to have indeed

It would add a bunch of design possibilities for both widget-like apps or games

https://github.com/zcbenz/nw-sample-apps/tree/master/frameless-window

Image
B
21
S
6
G
8
Posts: 328
Reputation: 6,611

Post » Wed Aug 06, 2014 3:38 pm

It's very easy to make a frameless window in NW. Add the line "frame": false, to the C2\exporters\html5\node-webkit\package.json file, under the "window": { section. Apparently it's suggested that you also add "toolbar": false, but I haven't tested that.

More info here.
B
57
S
15
G
11
Posts: 912
Reputation: 12,596

Post » Wed Aug 06, 2014 6:41 pm

Sweet, thanks for the tip! it works indeed at export (but not in preview)

I wouldn't say it's "very easy" to handle or switch though, maybe we could have a new Nodewebkit action inside C2 for that,

Or if it's meant to work only after package, maybe a [frameless] box to tick in NW export option?
B
21
S
6
G
8
Posts: 328
Reputation: 6,611

Post » Wed Aug 06, 2014 8:13 pm

You can get it to work in preview if you change the package-preview.json file as well.

Eh, I think it is very easy to edit a text file, but I do agree that a couple of toggles and/or options in the NW object would certainly make it easier and more accessible. @ashley, would this be possible? Support in this form for kiosk mode (forced fullscreen) would also be pretty neat.
B
57
S
15
G
11
Posts: 912
Reputation: 12,596

Post » Wed Aug 06, 2014 8:32 pm

Don't forget there are other features we don't have access to unless we roll our own. Stuff like notifications, and nodejs npms.
Not sure how those api's would work with C2 however.
Image ImageImage
B
166
S
49
G
154
Posts: 8,103
Reputation: 100,227

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests