Closed sh-dave closed 3 years ago
Any insights?
Sorry, totally forgot about this, ill have a play now.
Im actually getting an error on a kha js project:
MouseHelper.hx:24 Uncaught TypeError: Cannot read properties of undefined (reading 'notify')
at Function.haxe_ui_backend_kha_MouseHelper.init (MouseHelper.hx:24)
at haxe_ui_core_Screen.haxe_ui_backend_ScreenImpl [as __class__] (ScreenImpl.hx:26)
at new haxe_ui_core_Screen (Screen.hx:25)
at Function.haxe_ui_core_Screen.get_instance (Screen.hx:14)
at Function.haxe_ui_Toolkit.get_screen (Toolkit.hx:103)
at Function.haxe_ui_Toolkit.init (Toolkit.hx:79)
at haxe_ui_HaxeUIApp.init (HaxeUIApp.hx:32)
at haxe_ui_HaxeUIApp.ready (HaxeUIApp.hx:23)
at Function.Main.main (Main.hx:8)
at SyncBuilder.hx:9
:/
EDIT Mouse.get()
is returning null
OK, that should be fixed now. Can you close if this is working now?
Cheers! Ian
Works now, thanks!
Expected Behavior
When using Toolkit.scale greater than 1.0 (trying to get a decent sized ui for an android test build), the image component gets smaller for some reason. I expected the image to stay the same size, only the button should get bigger?
(What i originally wanted to use is actually the styles
background-image: xxx.png
property. But this one doesn't allow to specify thescaleMode
(fit, fill, fitinside, ...) for when the component size doesn't match the image dimensions, so i tried with an image component as a quick "fix". Should i add another issue/feature request for this?)Current Behavior
Toolkit.scale = 1.0
Toolkit.scale = 2.0
Toolkit.scale = 3.0
Steps to Reproduce (for bugs)
Your Environment
latest git everything