Widget bar - Convert value % number to text

Help with any software/desktop related issues. e.g. companion9x, eePe, etc
Post Reply
Asterix4you
Posts: 2
Joined: Sat Jul 18, 2020 9:40 am
Country: -

Widget bar - Convert value % number to text

Post by Asterix4you »

InfoBar. OpenTx 2.3.9 TX16S
Hi, in the upper bar I inserted two widgets (Switch SE and SG with three positions). Upon their activation, the values ​​0% - 50% - 100% are shown. I would like them to show for Switch SE> Normal if (0%); Attidude if (50%); GPS if (100%) and for Switch SG> Normal if (0%); HL if (50%); CL if (100%). What can I do?
Attachments
thumb-Post (2).png
thumb-Post (2).png (17.04 KiB) Viewed 3072 times

User avatar
3djc
Posts: 77
Joined: Mon Feb 22, 2016 7:15 am
Country: -

Re: Widget bar - Convert value % number to text

Post by 3djc »

You need to write custom widgets for that. You may start from the counter widget which is very simple but has all the required structure and modify it
Asterix4you
Posts: 2
Joined: Sat Jul 18, 2020 9:40 am
Country: -

Re: Widget bar - Convert value % number to text

Post by Asterix4you »

Hi 3djc, could you post an example (script), so that I can have an idea, considering that I'm at the beginning of the world of modeling. Thank you.
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Widget bar - Convert value % number to text

Post by Kilrah »

As he mentioned you've got an example with the counter script that's on the standard SD card.

Post Reply

Return to “Software”