Fix the rest of the merge issues

This commit is contained in:
Evan Pratten 2022-04-02 11:32:50 -04:00
parent 36521d918a
commit bc7fb12564

View File

@ -89,7 +89,7 @@ impl MainMenu {
draw.draw_text("Start Game", 103, 191, 34, Color::GRAY);
draw.draw_text("Start Game", 100, 190, 34, Color::BLACK);
if draw.is_mouse_button_down(MouseButton::MOUSE_LEFT_BUTTON) {
return true;
return MenuStateSignal::StartGame;
}
}
@ -98,7 +98,6 @@ impl MainMenu {
draw.draw_text("Options", 100, 250, 34, Color::BLACK);
}
if mouse_x >= 100 && mouse_y >= 410 && mouse_x <= 222 && mouse_y <= 437 {
draw.draw_text("Credits", 103, 411, 34, Color::GRAY);
draw.draw_text("Credits", 100, 410, 34, Color::BLACK);
@ -112,7 +111,6 @@ impl MainMenu {
draw.draw_text("Exit", 103, 551, 34, Color::GRAY);
draw.draw_text("Exit", 100, 550, 34, Color::BLACK);
}
}
// Return MenuStateSignal::StartGame if you want the game to start.
// Otherwise, keep returning MenuStateSignal::DoMainMenu until the player clicks the start button
@ -127,7 +125,6 @@ impl MainMenu {
global_resources: &GlobalResources,
constants: &ProjectConstants,
) -> MenuStateSignal {
return MenuStateSignal::DoOptions;
}
@ -139,7 +136,6 @@ impl MainMenu {
global_resources: &GlobalResources,
constants: &ProjectConstants,
) -> MenuStateSignal {
return MenuStateSignal::DoCredits;
}
@ -151,8 +147,6 @@ impl MainMenu {
global_resources: &GlobalResources,
constants: &ProjectConstants,
) -> MenuStateSignal {
return MenuStateSignal::DoLeaderboard;
}
}