flixel-ui always looks for XML in assets/xml folder
Picoseconds opened this issue · comments
I have a project where the assets folder is not the folder I run the project from, causing it to fail with the cryptic error: Uncaught exception - Invalid field access : h
when the tooltip manager attempts to obtain the default tooltip style. The cause is that flixel-ui cannot find my XML file, and has not loaded any styles.
This is because on line 154 of FlxUIState, U.xml is called without an argument for "dir", which has a hard-coded default of "assets/xml". My OpenFL assets folder (defined in Project.xml) is not "assets/". The problem can be worked around by specifying the full relative path (caught down on line 164), but this is inconvenient when there are many states and sub-states in an application. Is it possible to have the default use the OpenFL assets folder specified in Project.xml?