Skip to content

Commit

Permalink
Added the background to the pause menu buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasdairS4698737 committed Sep 29, 2023
1 parent c1b69da commit 036037c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.csse3200.game.GdxGame;
import com.csse3200.game.components.pausemenu.*;
import com.csse3200.game.entities.Entity;
import com.csse3200.game.rendering.TextureRenderComponent;
import com.csse3200.game.services.ServiceLocator;

/**
Expand All @@ -17,11 +18,13 @@ public class PauseMenuFactory {
public static Entity createPauseMenu(GdxGame game) {
Entity pauseMenu = new Entity()
.addComponent(new PauseMenuTimeStopComponent())
.addComponent(new PauseMenuRenderComponent())
.addComponent(new PauseMenuContinueButton())
.addComponent(new PauseMenuSettingsButton(game))
.addComponent(new PauseMenuPlanetSelectButton(game))
.addComponent(new PauseMenuMainMenuButton(game));
.addComponent(new PauseMenuMainMenuButton(game))
.addComponent(new TextureRenderComponent("images/ui/Sprites/UI_Glass_Toggle_Bar_01a.png"));
pauseMenu.setScale(8, 8);
pauseMenu.setPosition(6.3f, 2f);
ServiceLocator.getEntityService().register(pauseMenu);
return pauseMenu;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public class AssetLoader {
"images/projectiles/stun_effect.png",
"images/projectiles/firework_anim.png",
"images/projectiles/pierce_anim.png",
"images/projectiles/snow_ball.png"
"images/projectiles/snow_ball.png",
"images/ui/Sprites/UI_Glass_Toggle_Bar_01a.png"
};

public static final String[] textureAtlases = {
Expand Down

0 comments on commit 036037c

Please sign in to comment.