change the node-webkit icon?

Get help using Construct 2

Post » Fri Jan 11, 2013 12:58 pm

Hello!

How do I change the .exe icon of my desktop application? It always shows the "compass" icon and I'd like to use a icon of my own. Is it possible to change the html5 icon that show on title bar?

Thanks!
B
3
Posts: 7
Reputation: 464

Post » Fri Jan 11, 2013 1:53 pm

Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Fri Jan 11, 2013 4:30 pm

@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!
B
3
Posts: 7
Reputation: 464

Post » Fri Jan 11, 2013 4:37 pm

That has to be specified in the json when compiling. More info here: https://github.com/rogerwang/node-webkit/wiki/Manifest-format

@Ashley - not sure of a good pipeline to get that working from the editor?

@jaojao - in the meantime if you're desperate you can do it this way: http://www.scirra.com/tutorials/417/exporting-to-exe-using-node-webkit/page-1
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Fri Jan 11, 2013 6:27 pm

I'd love to see it implemented on the next C2 build...

Thanks a lot, thehen!
B
3
Posts: 7
Reputation: 464

Post » Tue Jul 09, 2013 3:35 pm

Any new news on how about to easily change the C2 icon on the actual game window? Top Left corner?

Thanks!Taurian2013-07-09 15:51:52
Epic Space Online - Google it!
B
34
S
10
G
5
Posts: 165
Reputation: 6,637

Post » Sat Aug 31, 2013 8:34 am

@Ashley
Any news on easily change the game icon via construct 2 ?

Thanks
B
51
S
18
G
13
Posts: 385
Reputation: 10,918

Post » Sat Aug 31, 2013 12:00 pm

When you export to Node-Webkit, Node-Webkit take the logo.png in the win32 directory, because the line into the json file "icon": "logo.png"

To change the game icon

Simply put a png image 32*32px with name "logo.png"
into the "\Construct 2\exporters\html5\node-webkit\win32\" directory


i hope it can help you :)







B
37
S
13
G
3
Posts: 152
Reputation: 4,613

Post » Wed Sep 18, 2013 1:58 pm

Doesn't work for me on C2 r139. But I have two useful methods for making custom node-webkit icon:

1.based on thehen's post: use a resource editor, I recommend Resource Hacker or ResEdit

2.if you on Windows 7, make a shortcut for the app and set the icon in properties. the taskbar will show the custom icon
Banned User
B
15
S
3
G
3
Posts: 74
Reputation: 3,070

Post » Wed Feb 11, 2015 8:55 pm

Am I correct to think that this is still not implemented within the actual editor?
Nothing goes unanswered!
B
22
S
5
G
1
Posts: 430
Reputation: 3,383

Next

Return to How do I....?

Who is online

Users browsing this forum: Aserak2012, ManuelPerez and 22 guests