예제 #1
0
 void run()
 {
     if(type == ACTION) { if(val.s) execute(val.s); }
     else if(id) switch(id->type)
     {
         case ID_VAR: setvarchecked(id, getint()); break;
         case ID_FVAR: setfvarchecked(id, getfloat()); break;
         case ID_SVAR: setsvarchecked(id, getstring()); break;
         case ID_ALIAS: alias(id->name, getstring()); break;
     }
 }
예제 #2
0
파일: menus.cpp 프로젝트: ISynapsyI/base
 void run()
 {
     int _oldflags = identflags;
     if(world) identflags |= IDF_WORLD;
     if(type == ACTION) { if(val.s) execute(val.s); }
     else if(id) switch(id->type)
     {
         case ID_VAR: setvarchecked(id, getint()); break;
         case ID_FVAR: setfvarchecked(id, getfloat()); break;
         case ID_SVAR: setsvarchecked(id, getstring()); break;
         case ID_ALIAS: alias(id->name, getstring()); break;
     }
     identflags = _oldflags;
 }