Closed offer-shmuely closed 11 months ago
On EdgeTX 2.9, and when compared to the behaviour of the 2.9 sdcard pack version of the libgui library...
1) The widget seems no longer able to know whether it is running in widget or fullscreen mode - i.e. it used to simply show a frame with the LibGUI name when in widget mode, and then when full screen it would show the full UI... now it tries to show part of the full UI in the widget mode.
2) I got a refresh error when changing the value of the "Number" field - attempt to compare number with nil.
I will check it tomorrow
on 2.9.2 simulator, I see the following:
widget mode
full screen mode:
are you on 2.9 or nightly main?
On EdgeTX 2.9, and when compared to the behaviour of the 2.9 sdcard pack version of the libgui library...
I was referring to the change in behaviour from to
which IMO is a major step backwards, as it would seem there is no longer widget and fullscreen modes?
And regarding the second point above... it is this the field pointed to with the arrow
which when you try to change the value from 0 to something else (I was using key navigation, so the roller) now causes
the error, was a bug in the addition of the min/max, when they was not supplied, thanks for finding.
regarding the notification when not in app-mode, is the following ok?
layout 1/1
layout 2x2
It'll do for now. I'll merge this once you push that change.
I did push the change, feel free to suggest other way to describe that the widget is not operative in the past, it took me a while to understand that to show this widget capability, you need to move to full screen. now it looks trivial, but on the first time it is not clear at all
Indeed. That's why I'm not pushing for it to go back to how it was before ;)
libgui: support min/max on numbers libgui: update text offsets for 2.9 libgui: support scripts, and not just widgets