- Posts: 3333
Scrollable GUI object
- vlad_vy
- Topic Author
- Offline
Less
More
01 Mar 2018 09:19 - 01 Mar 2018 09:22 #67835
by vlad_vy
Scrollable GUI object was created by vlad_vy
It looks like now I can avoid "full screen redraw" at any "Scrollable" object change. Now it will redraw "Scrollable" box only. It's not a very nice implementation, but it works. Most useful it will be for color GUI (devo8 and devo12). With v5.0.0 build it will change 3 pages only (Trims, Datalog and Debuglog), but nightly builds use many pages with "Scrollable" object.
I need last test for text GUI.
I need last test for text GUI.
Last edit: 01 Mar 2018 09:22 by vlad_vy.
Please Log in or Create an account to join the conversation.
- pulpfiction15
- Offline
Less
More
- Posts: 86
01 Mar 2018 11:18 #67839
by pulpfiction15
Replied by pulpfiction15 on topic Scrollable GUI object
@vlad_vy,
That looks cool, eager to try it out, in the nightly builds, thanks.
That looks cool, eager to try it out, in the nightly builds, thanks.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
01 Mar 2018 11:47 #67840
by FDR
Replied by FDR on topic Scrollable GUI object
I don't think that this will help too much, since the scrollable box is usually the whole page, except perhaps the header...
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
Less
More
- Posts: 3333
01 Mar 2018 13:30 - 01 Mar 2018 15:19 #67842
by vlad_vy
Replied by vlad_vy on topic Scrollable GUI object
Moreover, it doesn't work well with text GUI. LCD_Clear(0x00) is much faster than LCD_FillRect(x, y, w, h, 0x0).
Last edit: 01 Mar 2018 15:19 by vlad_vy.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
Less
More
- Posts: 3333
03 Mar 2018 13:07 - 03 Mar 2018 13:10 #67880
by vlad_vy
Replied by vlad_vy on topic Scrollable GUI object
Now I can do it for all color GUI pages, not only with Scrollable object, but with Scrollbar object also. It's only 12% faster, but looks more natural when updated scrollable content only, not full page.
By the way, I found next nightly builds bug -> if I call edit any toggle icon, it position will reset to x=0 y=32. The v5.0.0 release has not such problem.
By the way, I found next nightly builds bug -> if I call edit any toggle icon, it position will reset to x=0 y=32. The v5.0.0 release has not such problem.
Last edit: 03 Mar 2018 13:10 by vlad_vy.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
Less
More
- Posts: 3333
07 Mar 2018 04:57 #67941
by vlad_vy
Fixed completely:
github.com/DeviationTX/deviation/pull/377
Replied by vlad_vy on topic Scrollable GUI object
vlad_vy wrote: By the way, I found next nightly builds bug -> if I call edit any toggle icon, it position will reset to x=0 y=32. The v5.0.0 release has not such problem.
Fixed completely:
github.com/DeviationTX/deviation/pull/377
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
Less
More
- Posts: 3333
12 Mar 2018 09:23 - 12 Mar 2018 09:35 #68024
by vlad_vy
Replied by vlad_vy on topic Scrollable GUI object
Why the color GUI of nightly builds work noticeably slower? The scrolling is at least twice slower vs v5.0.0.
Last edit: 12 Mar 2018 09:35 by vlad_vy.
Please Log in or Create an account to join the conversation.
Time to create page: 0.046 seconds
- Home
- Forum
- Development
- Development
- Scrollable GUI object