Difference between revisions of "Translations:Virtual/8/en"

From Larnitech wiki page
Jump to navigation Jump to search
(Importing a new version from external source)
Tags: Mobile web edit Mobile edit
 
(No difference)

Latest revision as of 12:48, 26 January 2022

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Virtual)
<syntaxhighlight lang="cpp" line>
u8 state = 0;
V-ID/142:99 {
   if (opt(0)==0xff){//pressing the element in the interface
       if (state==0) state = 1;
       else state = 0;
       setStatus(142:99,state);//for correct displaying in the interface
   }
}
</syntaxhighlight>
Translation<syntaxhighlight lang="cpp" line>
u8 state = 0;
V-ID/142:99 {
   if (opt(0)==0xff){//pressing the element in the interface
       if (state==0) state = 1;
       else state = 0;
       setStatus(142:99,state);//for correct displaying in the interface
   }
}
</syntaxhighlight>
1u8 state = 0;
2V-ID/142:99 {
3    if (opt(0)==0xff){//pressing the element in the interface
4        if (state==0) state = 1;
5        else state = 0;
6        setStatus(142:99,state);//for correct displaying in the interface
7    }
8}