simple on-screen controls now show buttons at the bottom

This commit is contained in:
Diego Waxemberg
2015-01-09 14:11:42 -05:00
parent 684aaf8cb2
commit afb7e930ee
+11
View File
@@ -164,6 +164,7 @@ static float L2_Y;
[self hideSticks]; [self hideSticks];
break; break;
case OnScreenControlsLevelSimple: case OnScreenControlsLevelSimple:
[self setupSimpleControls];
[self drawTriggers]; [self drawTriggers];
[self drawStartSelect]; [self drawStartSelect];
[self hideButtons]; [self hideButtons];
@@ -180,6 +181,16 @@ static float L2_Y;
} }
} }
// For simple controls we move the triggers and buttons to the bottom
- (void) setupSimpleControls {
START_Y = _view.frame.size.height * .9;
SELECT_Y = _view.frame.size.height * .9;
L1_Y = _view.frame.size.height * .75;
L2_Y = _view.frame.size.height * .9;
R1_Y = _view.frame.size.height * .75;
R2_Y = _view.frame.size.height * .9;
}
- (void) drawButtons { - (void) drawButtons {
// create A button // create A button
_aButton.contents = (id) [UIImage imageNamed:@"AButton"].CGImage; _aButton.contents = (id) [UIImage imageNamed:@"AButton"].CGImage;