diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java | 4 | ||||
| -rw-r--r-- | core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java b/core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java index 58edbdf..c7c7246 100644 --- a/core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java +++ b/core/src/kz/ilotterytea/maxon/screens/game/GameScreen.java @@ -193,7 +193,9 @@ public class GameScreen implements Screen, InputProcessor { this.giftbox.update(delta, this.camera); - this.decalPlayer.render(this.camera); + if (!shopUI.isShopListOpened()) { + this.decalPlayer.render(this.camera); + } for (Decal decal : this.decals) { decal.lookAt(this.camera.position, this.camera.up); diff --git a/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java b/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java index 6f0ed5e..9cec62d 100644 --- a/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java +++ b/core/src/kz/ilotterytea/maxon/screens/game/shop/ShopUI.java @@ -371,4 +371,8 @@ public class ShopUI { this.mainTable.clear(); this.mainTable.add(this.table).growY().width(Math.percentFromValue(30f, Gdx.graphics.getWidth())); } + + public boolean isShopListOpened() { + return isShopListOpened; + } } |
