armory3d/zui

Float field initializes with handle text instead of handle value

Closed this issue · 1 comments

Trying to use float field inputs:

var x:Float = ui.floatInput(Id.handle({ value: 10.0 }), "x");

You get an empty input box, and the value of 10.0 isn't applied.

But if you use:

var x:Float = ui.floatInput(Id.handle({ text: "10.0" }), "x");

Then it works as expected, though it is counter-intuitive to give a floating point value as text instead of its actual value.

Fixed in e5118ec (and moved to Ext.floatInput()).