equal
deleted
inserted
replaced
65 SDL_AddMouse(&mice[i], "Mouse", 0, 0, 1); |
65 SDL_AddMouse(&mice[i], "Mouse", 0, 0, 1); |
66 } |
66 } |
67 |
67 |
68 attackButton = [[UIButton alloc] initWithFrame:CGRectMake(30, 480, 260,50)]; |
68 attackButton = [[UIButton alloc] initWithFrame:CGRectMake(30, 480, 260,50)]; |
69 [attackButton setBackgroundImage:[UIImage imageNamed:@"Default.png"] forState:UIControlStateNormal]; |
69 [attackButton setBackgroundImage:[UIImage imageNamed:@"Default.png"] forState:UIControlStateNormal]; |
|
70 [attackButton setBackgroundImage:[UIImage imageNamed:@"Default.png"] forState:UIControlStateHighlighted]; |
70 [attackButton addTarget:[self superclass] action:@selector(attackButtonPressed) forControlEvents:UIControlEventTouchDown]; |
71 [attackButton addTarget:[self superclass] action:@selector(attackButtonPressed) forControlEvents:UIControlEventTouchDown]; |
71 [attackButton addTarget:[self superclass] action:@selector(attackButtonReleased) forControlEvents:UIControlEventTouchUpInside|UIControlEventTouchUpOutside]; |
72 [attackButton addTarget:[self superclass] action:@selector(attackButtonReleased) forControlEvents:UIControlEventTouchUpInside|UIControlEventTouchUpOutside]; |
72 [self addSubview:attackButton]; |
73 [self addSubview:attackButton]; |
73 |
74 |
74 menuButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 480, 30,50)]; |
75 menuButton = [[UIButton alloc] initWithFrame:CGRectMake(0, 480, 30,50)]; |