change the node-webkit icon?

Get help using Construct 2

Post » Mon Mar 06, 2017 3:43 am

Artpunk wrote:I know this is an old thread, just wanted to check if Resource Hacker is still the best way to swap the default nwjs icon for a custom icon?
Ive only just started playing with NWjs for the first time, to get my game on Steam... so I need to learn all the little quirks etc.

As far as I know it is but you can surely find other programs which can replace the application icon as well.
Resource Hacker is just the most stable and reliable one, I've included it in my roundup if you want to take a look.

I honestly wouldn't be surprised if C3 adds an option to do this directly but we'll see how desktop exporting in C3 is going to look like in the near future.
ImageImageImage
B
69
S
24
G
78
Posts: 695
Reputation: 45,332

Post » Mon Mar 06, 2017 7:10 am

Hi @TheRealDannyyy Thanks for the the link to your roundup. Great info!
B
74
S
52
G
62
Posts: 406
Reputation: 39,080

Post » Tue Sep 26, 2017 1:28 am

jaojao wrote:@thehen

Thanks for the info! Works like a charm for the .exe. I just couldn't change the titlebar icon... :(

Anyway, thanks for your help!



Just for reference, I found a way to change the NWJS window icon. Searching for the package.json in the C2 installation directory (which I assumed was the template which configs in NWJS are compiled from), eg C:\Program Files\Construct 2\exporters\html5\nwjs, opening up package.json revealed a property -> "icon": "icon-128.png". This "icon-128.png" is a reference to the current C2 project's /Icons folder. Editing this icon will change the window icon during export.

Alternately, you might be able to change the package.json template, but I think editing the C2 icon is better.
B
42
S
12
G
1
Posts: 75
Reputation: 2,994

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests