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

View File

@@ -164,6 +164,7 @@ static float L2_Y;
[self hideSticks];
break;
case OnScreenControlsLevelSimple:
[self setupSimpleControls];
[self drawTriggers];
[self drawStartSelect];
[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 {
// create A button
_aButton.contents = (id) [UIImage imageNamed:@"AButton"].CGImage;