Fix the rest of the merge issues
This commit is contained in:
parent
36521d918a
commit
bc7fb12564
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user