project_files/HedgewarsMobile/Classes/SquareButtonView.m
changeset 3703 12d17c6e8855
parent 3697 d5b30d6373fc
child 3829 81db3c85784b
equal deleted inserted replaced
3701:8c449776ebe6 3703:12d17c6e8855
    35 
    35 
    36         // this makes the button round and nice with a border
    36         // this makes the button round and nice with a border
    37         [self.layer setCornerRadius:7.0f];
    37         [self.layer setCornerRadius:7.0f];
    38         [self.layer setMasksToBounds:YES];
    38         [self.layer setMasksToBounds:YES];
    39         [self.layer setBorderWidth:2];
    39         [self.layer setBorderWidth:2];
       
    40         [self.layer setBorderColor:[UICOLOR_HW_YELLOW_BODER CGColor]];
    40 
    41 
    41         // this changes the color at button press
    42         // this changes the color at button press
    42         [self addTarget:self action:@selector(nextColor) forControlEvents:UIControlEventTouchUpInside];
    43         [self addTarget:self action:@selector(nextColor) forControlEvents:UIControlEventTouchUpInside];
    43     }
    44     }
    44     return self;
    45     return self;