From 8acb72a54d755c4df279244ca986d244e2700a08 Mon Sep 17 00:00:00 2001 From: fred-boy Date: Thu, 26 Apr 2018 14:35:48 +0700 Subject: [PATCH] Better creative inventory scrolling --- core/src/ru/deadsoftware/cavecraft/game/GameInput.java | 6 ++---- core/src/ru/deadsoftware/cavecraft/game/GameProc.java | 2 +- core/src/ru/deadsoftware/cavecraft/game/GameRenderer.java | 6 +++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameInput.java b/core/src/ru/deadsoftware/cavecraft/game/GameInput.java index 08f6e36..9aa90f2 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/GameInput.java +++ b/core/src/ru/deadsoftware/cavecraft/game/GameInput.java @@ -125,7 +125,7 @@ public class GameInput { screenY=8 || ix<0 || iy<0 || iy>=5) item=-1; if (item >= 0 && item < Items.BLOCKS.size) { for (int i = 8; i > 0; i--) { @@ -160,9 +160,7 @@ public class GameInput { screenXgameProc.renderer.camera.viewportHeight/2-Assets.creativeInv.getRegionHeight()/2 && screenY0 && i0) -- 2.29.2