Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Loading assets and window icon

Author
Message
Chaosed0
13
Years of Service
User Offline
Joined: 9th Mar 2011
Location:
Posted: 18th May 2011 20:09
Hey, two different (related) questions:
1.) When loading assets, it's usually better to compress them and load them from the compressed file. Is there a way to do that in Dark GDK?
2.) How do I change the application icon that appears both in the top left of the window, and in windows explorer? This may not be a Dark GDK question, as I've often heard it can be done in Visual Studio, but I haven't been able to get it to work yet.
Thanks!
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 18th May 2011 23:40
2) You have to include a resource file with the icon in it.
Write this in a file like "Resource.rc":



And put that file into your Visual Studio project, then compile.

Chaosed0
13
Years of Service
User Offline
Joined: 9th Mar 2011
Location:
Posted: 19th May 2011 18:14
Ok, that worked for the icon in windows explorer but strangely the default application icon still appears in the top left of the window.
Anybody else have ideas? Some help on #1 would also be appreciated, though I guess loading from file regularly works just fine.
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 20th May 2011 08:01 Edited at: 20th May 2011 08:13
1) By default it's not possible, unless you make your own file formats. Oneka recently published some code that can help much in that direction, look here.

http://forum.thegamecreators.com/?m=forum_view&t=182697&b=22

Or there is this commercial application.

http://www.thegamecreators.com/?m=view_product&id=2256

Login to post a reply

Server time is: 2024-11-19 10:26:34
Your offset time is: 2024-11-19 10:26:34