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

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "<syntaxhighlight lang="cpp" line> u8 state = 0; V-ID/142:99 { if (opt(0)==0xff){//нажатие элемента в интерфейсе if (state==0) state = 1;...")
 
(No difference)

Latest revision as of 13:35, 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){//нажатие элемента в интерфейсе
       if (state==0) state = 1;
       else state = 0;
       setStatus(142:99,state);//для корректного отображения в интерфейсе
   }
}
</syntaxhighlight>
1u8 state = 0;
2V-ID/142:99 {
3    if (opt(0)==0xff){//нажатие элемента в интерфейсе
4        if (state==0) state = 1;
5        else state = 0;
6        setStatus(142:99,state);//для корректного отображения в интерфейсе
7    }
8}