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

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "Скрипт обработки нажатия <syntaxhighlight lang="cpp" line> u8 state[2] = {0,0}; V-ID/142:99 { if (opt(0)==0xff){ if (state[0]==0) state[0] =...")
 
(No difference)

Latest revision as of 13:37, 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)
The script  processing of stroke
<syntaxhighlight lang="cpp" line>
u8 state[2] = {0,0};
V-ID/142:99
{
   if (opt(0)==0xff){
       if (state[0]==0) state[0] = 1;
       else state[0] = 0;
   }else (opt(0)==0xfe){
     state[0]=state[0];
   }else {
     state[0]=opt(0);
   }
 
   if(opt(1)==0xfe){
     state[1]=state[1];
   }else {
  state[1]=opt(1);
   }
   setStatus(142:99,state);  
}
</syntaxhighlight>
TranslationСкрипт обработки нажатия
<syntaxhighlight lang="cpp" line>
u8 state[2] = {0,0};
V-ID/142:99
{
   if (opt(0)==0xff){
       if (state[0]==0) state[0] = 1;
       else state[0] = 0;
   }else (opt(0)==0xfe){
     state[0]=state[0];
   }else {
     state[0]=opt(0);
   }
 
   if(opt(1)==0xfe){
     state[1]=state[1];
   }else {
  state[1]=opt(1);
   }
   setStatus(142:99,state);  
}
</syntaxhighlight>

Скрипт обработки нажатия

 1u8 state[2] = {0,0};
 2V-ID/142:99
 3{
 4    if (opt(0)==0xff){
 5        if (state[0]==0) state[0] = 1;
 6        else state[0] = 0;
 7    }else (opt(0)==0xfe){
 8     state[0]=state[0];
 9    }else {
10     state[0]=opt(0);
11    }
12 
13    if(opt(1)==0xfe){
14     state[1]=state[1];
15    }else {
16  state[1]=opt(1);
17    }
18    setStatus(142:99,state);  
19}