From 7c4b6ea0aff8ef0c955040984c58ea61df1fc029 Mon Sep 17 00:00:00 2001 From: Rosia E Evans Date: Sun, 21 Apr 2024 17:20:01 +0100 Subject: [PATCH] alto --- assets/{shop_banner.png => shope_banner.png} | Bin core/src/com/monjaro/gamejam/main/DieNetUi.java | 7 +++++++ core/src/com/monjaro/gamejam/main/Game.java | 1 + core/src/com/monjaro/gamejam/main/ShopeUi.java | 6 ++++++ 4 files changed, 14 insertions(+) rename assets/{shop_banner.png => shope_banner.png} (100%) diff --git a/assets/shop_banner.png b/assets/shope_banner.png similarity index 100% rename from assets/shop_banner.png rename to assets/shope_banner.png diff --git a/core/src/com/monjaro/gamejam/main/DieNetUi.java b/core/src/com/monjaro/gamejam/main/DieNetUi.java index 4c9543a..68a03ac 100644 --- a/core/src/com/monjaro/gamejam/main/DieNetUi.java +++ b/core/src/com/monjaro/gamejam/main/DieNetUi.java @@ -35,6 +35,13 @@ public class DieNetUi extends Actor{ renderer.end(); batch.begin(); + + + } + + private void getDieFaceLocation(int i) + { + } public void setVisible(boolean b) { diff --git a/core/src/com/monjaro/gamejam/main/Game.java b/core/src/com/monjaro/gamejam/main/Game.java index fc83c0e..594611a 100644 --- a/core/src/com/monjaro/gamejam/main/Game.java +++ b/core/src/com/monjaro/gamejam/main/Game.java @@ -61,6 +61,7 @@ public class Game extends ApplicationAdapter { SegmentUI.setCriteriaSheet(new Texture("criteria.png")); ShopeUi.setBacking(new Texture("shope.png")); ShopeUi.setFaceBacking(new Texture("shope_die_border.png")); + ShopeUi.setBanner(new Texture("shope_banner.png")); // SegmentUI.setCriteriaSheet(""); not made yet // setting up font diff --git a/core/src/com/monjaro/gamejam/main/ShopeUi.java b/core/src/com/monjaro/gamejam/main/ShopeUi.java index a18dea4..ee8ed36 100644 --- a/core/src/com/monjaro/gamejam/main/ShopeUi.java +++ b/core/src/com/monjaro/gamejam/main/ShopeUi.java @@ -10,6 +10,11 @@ public class ShopeUi extends Actor{ private static Texture backing; private static Texture faceBacking; + private static Texture banner; + + public static void setBanner(Texture banner) { + ShopeUi.banner = banner; + } public static void setFaceBacking(Texture faceBacking) { ShopeUi.faceBacking = faceBacking; @@ -32,6 +37,7 @@ public class ShopeUi extends Actor{ @Override public void render(SpriteBatch batch) { + batch.draw(banner, 10, (Gdx.graphics.getHeight()/4)+5, banner.getWidth()/2, banner.getHeight()/2); batch.draw(backing, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()/4); List shope = game.getShope(); for (int i = 0; i < shope.size(); i++) {