Exemplo n.º 1
0
 public void Click() {
   switch (type) {
     case BC_Mod1:
       mapper.abind.mods ^= BMOD_Mod1;
       break;
     case BC_Mod2:
       mapper.abind.mods ^= BMOD_Mod2;
       break;
     case BC_Mod3:
       mapper.abind.mods ^= BMOD_Mod3;
       break;
     case BC_Hold:
       mapper.abind.flags ^= BFLG_Hold;
       break;
   }
   mapper.redraw = true;
 }
Exemplo n.º 2
0
 static void SetActiveEvent(CEvent event) {
   mapper.aevent = event;
   mapper.redraw = true;
   mapper.addbind = false;
   bind_but.event_title.Change("EVENT:" + ((event != null) ? event.GetName() : "none"), null);
   if (event == null) {
     change_action_text("Select an event to change.", CLR_WHITE);
     bind_but.add.Enable(false);
     SetActiveBind(null);
   } else {
     change_action_text("Select a different event or hit the Add/Del/Next buttons.", CLR_WHITE);
     mapper.abindit = 0;
     if (mapper.abindit != event.bindlist.size()) {
       SetActiveBind(event.bindlist.elementAt(mapper.abindit));
     } else SetActiveBind(null);
     bind_but.add.Enable(true);
   }
 }
Exemplo n.º 3
0
 public void Change(String format, Object[] args) {
   caption = StringHelper.sprintf(format, args);
   mapper.redraw = true;
 }