From 04b9780e14ca169f0d7515b3f5725ed855736d73 Mon Sep 17 00:00:00 2001 From: P3pp3rF1y Date: Sat, 16 Nov 2024 00:33:05 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Added=20storage=20search=20?= =?UTF-8?q?functionality=20-=20magnifying=20glass=20next=20to=20sort=20but?= =?UTF-8?q?tons=20opens=20search=20box=20-=20can=20search=20by=20item=20na?= =?UTF-8?q?me=20or=20using=20@=20prefix=20by=20mod=20names=20as=20well=20-?= =?UTF-8?q?=20by=20default=20automatically=20prefills=20search=20phrase=20?= =?UTF-8?q?that=20was=20in=20the=20search=20box=20last=20time=20a=20storag?= =?UTF-8?q?e=20gui=20was=20closed=20-=20in=20settings=20this=20can=20be=20?= =?UTF-8?q?turned=20on=20/=20off=20for=20all=20player=20storages=20or=20on?= =?UTF-8?q?=20/=20off=20per=20individual=20storage=20(remembers=20last=20p?= =?UTF-8?q?hrase=20used=20for=20that=20given=20storage=20and=20only=20pref?= =?UTF-8?q?ills=20there)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 4 ++-- .../client/gui/LimitedBarrelScreen.java | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index d0aea78e..d1e8216f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -13,7 +13,7 @@ loader_version_range=[4,) mod_id=sophisticatedstorage mod_name=Sophisticated Storage mod_license=GNU General Public License v3.0 -mod_version=0.10.53 +mod_version=0.10.54 mod_group_id=sophisticatedstorage mod_authors=P3pp3rF1y, Ridanisaurus mod_description=Fancy and functional storage containers. @@ -35,7 +35,7 @@ jade_cf_file_id=5109393 chipped_cf_file_id=5506938 resourcefullib_cf_file_id=5483169 athena_cf_file_id=5431579 -sc_version=[1.21-0.6.50,1.22) +sc_version=[1.21-0.7.4,1.22) sb_version=[1.21,1.22) #publish diff --git a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelScreen.java b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelScreen.java index e0e5e8b8..9900a746 100644 --- a/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelScreen.java +++ b/src/main/java/net/p3pp3rf1y/sophisticatedstorage/client/gui/LimitedBarrelScreen.java @@ -133,7 +133,7 @@ private void renderBar(GuiGraphics guiGraphics, int x, int y, float percentage, guiGraphics.blit(barTexture.getTextureName(), x, y + yOffset, barTexture.getU(), barTexture.getV() + yOffset, barTexture.getWidth(), barHeight, barTexture.getTextureWidth(), barTexture.getTextureHeight()); - String text = String.valueOf((int) (percentage * 100)) + "%"; + String text = (int) (percentage * 100) + "%"; int percentageX = x; if (left) { percentageX -= 2 + minecraft.font.width(text); @@ -147,4 +147,9 @@ private void renderBar(GuiGraphics guiGraphics, int x, int y, float percentage, protected boolean shouldShowSortButtons() { return false; } + + @Override + protected void addSearchBox() { + // No search box for limited barrels + } }