-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image can't be displayed #13
Comments
for Kha image must be called without extension: |
IMO, this should actually be handled by the kha backend, so you have consistent functionality across all backends. |
@sh-dave what did you mean? |
IMO yes. If you can use |
This is handled by the backend, images are either use native to the framework, or are haxe resources and are converted into what is native to the framework. What haxe target are you using? CPP? Either way, ill take a look at your sample when i get some time. Cheers, |
@sh-dave: i see what you are saying though, the whole idea of haxeui is uniformity. That said, there are resource plugins that can handle this, that said, im not sure they are applied globally. Only to resources you explicitly include in module.xml |
actually, they are global ( :) )... so something like this should work (its untested at the moment).
<module>
<plugins>
<plugin type="asset" class="haxe.ui.assets.AssetNamePlugin" if="kha" removeExtension="true"/>
</plugins>
</module> |
@ianharrigan there was tested for html5 target (debugging in KhaStudio) |
Expected Behavior
A simple window with one image (jpg).
Current Behavior
Blank screen.
Test app / minimal test case
Sample available here.
Your Environment
Haxe 3.4.2
Kha from git
haxeui-core from git
haxeui-kha from git
Thanks.
The text was updated successfully, but these errors were encountered: