mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 11:59:50 +03:00
3djc/x7 outputs (#4273)
[128x64] Rework Outputs screen [X7] Fix for min/max limits bug [X7/X9] UI fixes
This commit is contained in:
parent
824317c477
commit
bf15410bf1
16 changed files with 451 additions and 145 deletions
|
@ -209,6 +209,22 @@ char * getCurveString(char * dest, int idx)
|
|||
return dest;
|
||||
}
|
||||
|
||||
char * getGVarString(char * dest, int idx)
|
||||
{
|
||||
char * s = dest;
|
||||
if (idx < 0) {
|
||||
*s++ = '-';
|
||||
idx = -idx-1;
|
||||
}
|
||||
|
||||
if (ZEXIST(g_model.gvars[idx].name))
|
||||
zchar2str(s, g_model.gvars[idx].name, LEN_GVAR_NAME);
|
||||
else
|
||||
strAppendStringWithIndex(s, STR_GV, idx+1);
|
||||
|
||||
return dest;
|
||||
}
|
||||
|
||||
char * getSwitchString(char * dest, swsrc_t idx)
|
||||
{
|
||||
if (idx == SWSRC_NONE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue