- Posts: 649
Devo 10/7E small UI (updated 1st post)
- sbstnp
- Topic Author
- Offline
Now I'm at mixer and while I have a picture in my head, I'm also trying to migrate the thing to GUI_Scrollable (which is smart btw) and my head is spinning already hehe. Need to read some more code to fully understand all those callbacks.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
The scrollable is a really powerful widget, but you need to take special care that the getobj_cb understands what is going on., otherwsie scrolling will not be intuitive.
If you have any questions on how it works, let me know.
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Here is what the font looks like (note the placement of the widgets is now user editable)
or
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
Please Log in or Create an account to join the conversation.
- Daryoon
- Offline
- Posts: 260
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
SeByDocKy wrote: I just installed the 28/12 Night Build for my 7E and TX voltage and emmission power disspeared from main screen. Is-it normal ?
Probably you need to add them back.
Oh, and please don't turn this topic into a bug report.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- RandMental
- Offline
- Posts: 521
Please Log in or Create an account to join the conversation.
- kreidler
- Offline
- Posts: 157
https://bitbucket.org/PhracturedBlue/deviation/issue/455/new-battery-and-tx-power-not-saved-to
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Please and thanks!
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Normally you would do:sbstnp wrote: Ok so I got the mixer mostly working and on GUI_Scrollable. What I still don't get, yet, is how to save the current selected position between main mixer page, limit page and mixer edit page.
GUI_SetSelected(GUI_ShowScrollableRowOffset(&gui->scrollable, current_selected));
current_selected = GUI_ScrollableGetObjRowOffset(&gui->scrollable, GUI_GetSelected());
We only currently save the position on the main mixer page. The limit and editor pages always reset.
However, I never converted the mixer page to use Scrollabele. If I recall it is because the Scrollable was too buggy when I tried it the 1st time, and I had difficulty getting the scrolling to work in a predictable way. These days I'd expect it to be pretty easy to convert.
If you look at the trim_page code, you'll see how we do this.
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
But, to save position when entering limit and template callbacks I had to call the same code. Is this the right way? MIXER_PageExit doesn't seem to get called when the callback fires.
Or above when saying the limit and editor page always reset did you meant I should save main mixer page position when entering those pages?
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
Now I need to:
1. Decide how to enable this
- simple config.ini switch
- from font definition (this is tricky cause we have all sorts of fonts)
2. Get rid of all the #defines
3. Define some bounds, like all fonts must be larger than 6 pixels and smaller than some value.
Anyway, I haven't given this much thought but I will play with it tomorrow and see what the options are.
Some more pix:
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
I definitely do not want a bunch of 'if' conditions all over the code. Ideally we can set it up so that a few variables are changed that affect the layout positioning, but I really need to see how your code works to have any idea about that.
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
To be honest I'm certain your scrollable widget will make this job fairly easy. We just need to have 2 regions:
1. Header
2. Content handled by scrollable.
3. Row and Size callbacks.
Obviously not that easy but you get the idea.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
Please Log in or Create an account to join the conversation.
- sbstnp
- Topic Author
- Offline
- Posts: 649
What place would be appropriate for defining global object containing fonts metrics and other UI info? gui.c & h? I'm thinking along the lines of determining on startup fonts characteristics and optimal spacing then saving those in struct and using it all over the place.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Development
- Devo 10/7E small UI (updated 1st post)