Closed MoritzBrueckner closed 2 years ago
but if you want I can open an issue for this.
That would be great, thanks!
Color wheel can be fixed by adding black_white_gradient: kha.Assets.images.black_white_gradient
at https://github.com/armory3d/armory2d/blob/master/Sources/arm2d/Editor.hx#L88, but still need to investigate slider behaviour before updating zui.
This PR fixes https://github.com/armory3d/armory/issues/2579 by including https://github.com/armory3d/zui/commit/c24daaf245919429bae588cda7ab853248eef385. While I was on it, I also updated the Armory submodule to bring in the latest canvas fixes.
Unfortunately, it is not possible to update to the very latest Zui, since every commit after https://github.com/armory3d/zui/commit/f49b18d9a56da4401f184c60b358685e2f6577ba will completely freeze Armory2D with the following exception when clicking on a color field (using html5 because Krom doesn't print anything in VSCode):
Also, sliders don't work that well in any newer version of Zui since
handle.value
doesn't seem to be changed in real time but only if editing text in the slider is finished. Also, it doesn't seem possible to react to the event that the user has stopped dragging a slider.handle.changed
seems to be already false in the frame in which the mouse is released, and in the case of slider's the UI'sinputReleased
value is never set (seems to be by design?). However, Armory2D needs this functionality since updating the UI size while dragging the slider that controls it will cause utter chaos. I'm a bit low on time at the moment, but if you want I can open an issue for this.