Skip to content
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

Actuator error #4

Open
hoseyjoe opened this issue Apr 23, 2020 · 1 comment
Open

Actuator error #4

hoseyjoe opened this issue Apr 23, 2020 · 1 comment

Comments

@hoseyjoe
Copy link

HaxeUITest.zip

Click the top left "Click Me!" And get error

42.5> src/HLAdapter.hx:587: Failed to read @0x0:4
42.5> src/HLAdapter.hx:607: Failed to read @0x0:4

Can't cast i32 to enum<haxe.ui.styles.Value>
Called from haxe.ui.styles.animation.util.Actuator._initialize (haxe/ui/styles/animation/util/Actuator.hx line 158)
haxe/ui/styles/animation/util/Actuator.hx:158
Called from haxe.ui.styles.animation.util.Actuator.run (haxe/ui/styles/animation/util/Actuator.hx line 81)
haxe/ui/styles/animation/util/Actuator.hx:81
Called from haxe.ui.styles.animation.util.$Actuator.tween (haxe/ui/styles/animation/util/Actuator.hx line 24)
haxe/ui/styles/animation/util/Actuator.hx:24
Called from Main.reducExpandWidth (Main.hx line 120)
...
@hoseyjoe
Copy link
Author

hoseyjoe commented May 14, 2020

A workaround for this was to us .style.Value instead of numbers.
use:
Actuator.tween(main.bottomArea, {height: Value.VDimension(PERCENT(50)) }, .5, ao);
instead of
Actuator.tween(main.bottomArea, { height:50 }, .5, ao);

This was only needed for heaps target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant