HaxeFlixel / flixel-ui

GUI library for HaxeFlixel
173 stars 63 forks source link

Add info about "gfx" folder to Readme #88

Open as3boyan opened 9 years ago

as3boyan commented 9 years ago

Not a big deal actually

I was digging RPG Interface demo code and seen that specified paths in XML files are relative to assets/gfx So I was looking for info about this folder in Readme https://github.com/HaxeFlixel/flixel-ui#quick-project-setup and then found it https://github.com/HaxeFlixel/flixel-ui#xml-layout-basics

And I thought maybe you guys can add a note on gfx to https://github.com/HaxeFlixel/flixel-ui#quick-project-setup

In your openfl assets folder, create an "xml" directory Maybe add something like "create a gfx folder"

I got that "xml" directory is hard-coded pretty fast, but not "gfx" folder... Or maybe it's just to me

larsiusprime commented 9 years ago

Yeah, it could be made more clear. And in any case it should be easy for me to make these user-configurable, so you could just do:

FlxUI.xmlFolder = "path/to/xml"; FlxUI.assetFolder = "path/to/gfx";

And then it recognizes that from then on.

vantreeseba commented 9 years ago

@larsiusprime This is already kind of customizable in your project.xml.

<assets path="assets/ui" rename="assets/xml" include="*.xml"/>
J5lx commented 9 years ago

@vantreeseba That's actually quite a neat trick. I'd still prefer @larsiusprime's solution though since it's less hacky.

Tiago-Ling commented 9 years ago

Why not use HaxeFlixel's default asset folders, that is data (in place of xml) and images (in place of gfx)?

This would make more sense since HaxeFlixel creates new projects with this asset folder structure.

larsiusprime commented 9 years ago

Yeah not a bad idea. Next time I get a chance to clear out some flixel-ui issues I'll address this.

On Wed, Apr 1, 2015 at 5:28 AM, Tiago Ling Alexandre < notifications@github.com> wrote:

Why not use HaxeFlixel's default asset folders, that is data (in place of xml) and images (in place of gfx)?

This would make more sense since HaxeFlixel creates new projects in with this asset structure.

— Reply to this email directly or view it on GitHub https://github.com/HaxeFlixel/flixel-ui/issues/88#issuecomment-88431443.

www.fortressofdoors.com -- Games, Art, Design