how to change the haxeflixel icon

1,120 views
Skip to first unread message

Jonatan Van Hove

unread,
Jan 15, 2014, 7:55:13 PM1/15/14
to haxef...@googlegroups.com
Reading the documentation, it seems that simply 

 <icon path="assets/icon.png" />

will do the trick. But it doesn't. Building for Windows I still get the standard HaxeFlixel icon, as well as on Ouya.

All I can find about the issue are broken links to the old forum, but it would sure be nice to know how to do this.

moonpockets

unread,
Jan 15, 2014, 10:23:05 PM1/15/14
to haxef...@googlegroups.com
Hey Jonatan,
    Have you tried editing the project.xml or the include.xml? I am pretty sure that the include.xml has the higher priority when compiling for Windows, as stated in this GitHub issue. Your include.xml is located in your "flixel" folder. I have mine in C:\app\sdks\haxe\3.0.0\haxe\lib\flixel\git, so I would edit that include.xml in the flixel\git folder. I think you only need to edit the include.xml of the library version you use, and I use flixel git in my projects, so I would edit only that one (not entirely sure if I edit just that one, or if I should edit all of them, so I may be wrong.)

Jonatan Van Hove

unread,
Jan 16, 2014, 7:33:23 AM1/16/14
to haxef...@googlegroups.com
I tried several things:

  • remove the <icon> line from include.xml
  • replace it with the one I had in project.xml
  • place the icon I had in the flixel images folder and reference it in include.xml
Each time I build, I clean the project first. None of this has worked so far, and all I see is the HaxeFlixel logo.

Samuel Batista

unread,
Jan 16, 2014, 11:27:41 AM1/16/14
to haxef...@googlegroups.com
These guys published a HaxeFlixel game on OUYA:

http://www.bossesforever.com/

And they managed to change the icon. I would try to email them directly, and if you find an answer please come back to let us know!


On Wednesday, January 15, 2014 7:55:13 PM UTC-5, Jonatan Van Hove wrote:

Gama11

unread,
Jan 16, 2014, 11:29:24 AM1/16/14
to haxef...@googlegroups.com
Removing the icon from the include xml does the job, you just have to clean the export directory as the icon is not regenerated with each build.

Sorry about this, not sure if we should just remove the icon from the include.xml for the time being, but it wouldn't do much good right away anyway until we release.

How about making some noise in this lime-tools issue? :)

Jonatan Van Hove

unread,
Jan 16, 2014, 11:50:26 AM1/16/14
to haxef...@googlegroups.com
I'm sad to say that this didn't work.
I'm contacting those guys to see their fix.

Gama11

unread,
Jan 16, 2014, 11:52:22 AM1/16/14
to haxef...@googlegroups.com
That's extremely strange, that has done the trick in the past. Try removing the icon from the include.xml and compile a new FlxProject from the template to see if anything funky is going on with your project.

Gama11

unread,
Jan 21, 2014, 2:18:39 PM1/21/14
to
I think I know what's been going on, Windows has an icon cache that will prevent new icons from showing up before clearing it (quite annoying). More info here.
Reply all
Reply to author
Forward
0 new messages