diff --git a/source/core/src/main/com/csse3200/game/components/pausemenu/PauseMenuRenderComponent.java b/source/core/src/main/com/csse3200/game/components/pausemenu/PauseMenuRenderComponent.java deleted file mode 100644 index 078d13755..000000000 --- a/source/core/src/main/com/csse3200/game/components/pausemenu/PauseMenuRenderComponent.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.csse3200.game.components.pausemenu; - -import com.badlogic.gdx.graphics.g2d.SpriteBatch; -import com.csse3200.game.rendering.RenderComponent; - -/** - * Handles the rendering and de-rendering of the pause menu. - */ -public class PauseMenuRenderComponent extends RenderComponent { - @Override - public void draw(SpriteBatch batch) { - // TO DO: Actually make this function - } -} diff --git a/source/core/src/main/com/csse3200/game/entities/factories/PauseMenuFactory.java b/source/core/src/main/com/csse3200/game/entities/factories/PauseMenuFactory.java index fdb3a4204..71248198c 100644 --- a/source/core/src/main/com/csse3200/game/entities/factories/PauseMenuFactory.java +++ b/source/core/src/main/com/csse3200/game/entities/factories/PauseMenuFactory.java @@ -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; /** @@ -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; } diff --git a/source/core/src/main/com/csse3200/game/screens/AssetLoader.java b/source/core/src/main/com/csse3200/game/screens/AssetLoader.java index 6bb3c18a9..c0809ea82 100644 --- a/source/core/src/main/com/csse3200/game/screens/AssetLoader.java +++ b/source/core/src/main/com/csse3200/game/screens/AssetLoader.java @@ -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 = {