Skip to content

Commit

Permalink
Settings Screen 2/m
Browse files Browse the repository at this point in the history
  • Loading branch information
aadityayadav17 committed Oct 2, 2023
1 parent 0737e49 commit 91043de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void addActors() {
cursorPixmap.dispose();

Image background = new Image(ServiceLocator.getResourceService()
.getAsset("images/background/main_menu/main_menu_bg.png", Texture.class));
.getAsset("images/background/settings/settings_bg.png", Texture.class));
background.setWidth(Gdx.graphics.getWidth());
background.setHeight(Gdx.graphics.getHeight());
background.setPosition(0, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public class SettingsScreen extends ScreenAdapter {
private final Renderer renderer;
private Texture backgroundTexture;
private final SpriteBatch batch;
private static final String[] SettingsTextures = {"images/background/main_menu/main_menu_bg.png"};
private static final String[] SettingsTextures = {"images/background/settings/settings_bg.png"};

public SettingsScreen(GdxGame game) {
this.game = game;
this.batch = new SpriteBatch();
backgroundTexture = new Texture("images/background/main_menu/main_menu_bg.png");
backgroundTexture = new Texture("images/background/settings/settings_bg.png");

logger.debug("Initialising settings screen services");
ServiceLocator.registerInputService(new InputService());
Expand Down Expand Up @@ -88,7 +88,7 @@ private void loadAssets() {
logger.debug("Loading assets");
ResourceService resourceService = ServiceLocator.getResourceService();
resourceService.loadTextures(SettingsTextures);
backgroundTexture = new Texture("images/background/main_menu/main_menu_bg.png");
backgroundTexture = new Texture("images/background/settings/settings_bg.png");
ServiceLocator.getResourceService().loadAll();
}

Expand Down

0 comments on commit 91043de

Please sign in to comment.