project_files/HedgewarsMobile/Classes/AmmoMenuViewController.m
changeset 3941 017b2b31e1c6
parent 3940 cc29628976cc
child 3952 d6412423da45
equal deleted inserted replaced
3940:cc29628976cc 3941:017b2b31e1c6
   186 #pragma mark user interaction
   186 #pragma mark user interaction
   187 -(void) buttonPressed:(id) sender {
   187 -(void) buttonPressed:(id) sender {
   188     UIButton *theButton = (UIButton *)sender;
   188     UIButton *theButton = (UIButton *)sender;
   189     HW_setWeapon(theButton.tag);
   189     HW_setWeapon(theButton.tag);
   190     playSound(@"clickSound");
   190     playSound(@"clickSound");
   191     [self disappear];
   191     if (IS_DUALHEAD() == NO)
       
   192         [self disappear];
   192 }
   193 }
   193 
   194 
   194 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
   195 -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
   195     /*
   196     /*
   196     NSSet *allTouches = [event allTouches];
   197     NSSet *allTouches = [event allTouches];