FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Popup improvements by klutvott123 · Pull Request #389 · betaflight/betaflight-tx-lua-scripts · GitHub

Popup improvements - #389

Merged
mikeller merged 1 commit into
betaflight:masterfrom
klutvott123:popup-improvements
May 21, 2021
Merged

mikeller merged 1 commit into
betaflight:masterfrom
klutvott123:popup-improvements

Conversation

Copy link
Copy Markdown
Member

Some improvements to the popup menu and the confirmation page functionality.

The popup menu can now be opened by long pressing enter on the main menu and on the page view. The menu is now created on demand so that we can populate it with different items depending on the uiState we're in.

Now we can do this:

and this:

Made a new state uiStatus.confirm for the confirmation dialogue.
Added a confirmation dialogue for downloading vtx tables too.

Changed the behaviour a little so that after calibrating the accelerometer or downloading vtx tables the script will return to the previous uiState on completion. This just makes the user experience a little nicer. The old behaviour was that it returned to the main menu.

Removed getSensorValue and simplified modelActive a lot. This code was a lot more complicated than it had to be.

Moved all lcd writing to ui.lua. ui_init.lua and all the functions called by it will now return a table containing a function and a string.

Test version here:
betaflight-tx-lua-scripts_1.5.0.zip

klutvott123 added this to the 1.6 milestone May 9, 2021

haslinghuis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

What kind of language 😆 LGTM

klutvott123 mentioned this pull request May 15, 2021
mikeller merged commit 1daa86b into betaflight:master May 21, 2021
klutvott123 deleted the popup-improvements branch November 26, 2021 20:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL