From b5de7df1ec8fce8c8155fdc342c0c00b99544d34 Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Sat, 18 May 2024 23:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9HUD=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E5=9D=90=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../target/client/screens/AmmoBarOverlay.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/mcreator/target/client/screens/AmmoBarOverlay.java b/src/main/java/net/mcreator/target/client/screens/AmmoBarOverlay.java index 9471c90cc..73f61781c 100644 --- a/src/main/java/net/mcreator/target/client/screens/AmmoBarOverlay.java +++ b/src/main/java/net/mcreator/target/client/screens/AmmoBarOverlay.java @@ -19,7 +19,7 @@ import net.minecraftforge.fml.common.Mod; @Mod.EventBusSubscriber(value = Dist.CLIENT) public class AmmoBarOverlay { -// private static final ResourceLocation BUTTON = new ResourceLocation(TargetMod.MODID, "textures/gun_icon/fire_mode/button.png"); + // private static final ResourceLocation BUTTON = new ResourceLocation(TargetMod.MODID, "textures/gun_icon/fire_mode/button.png"); private static final ResourceLocation LINE = new ResourceLocation(TargetMod.MODID, "textures/gun_icon/fire_mode/line.png"); private static final ResourceLocation SEMI = new ResourceLocation(TargetMod.MODID, "textures/gun_icon/fire_mode/semi.png"); private static final ResourceLocation BURST = new ResourceLocation(TargetMod.MODID, "textures/gun_icon/fire_mode/burst.png"); @@ -101,8 +101,8 @@ public class AmmoBarOverlay { event.getGuiGraphics().drawString( Minecraft.getInstance().font, getGunAmmoCount(player) + "", - w / 1.5f - 64 / 1.5f + 1, - h / 1.5f - 32, + w / 1.5f - 64 / 1.5f, + h / 1.5f - 48 / 1.5f, 0xFFFFFF, true ); @@ -119,14 +119,14 @@ public class AmmoBarOverlay { ); poseStack.pushPose(); - poseStack.scale(0.9f, 1f, 1f); + poseStack.scale(0.9f, 0.9f, 1f); // 渲染物品名称 event.getGuiGraphics().drawString( Minecraft.getInstance().font, centerString(gunItem.getGunDisplayName(), 20), w / 0.9f - 144 / 0.9f, - h - 60, + h / 0.9f - 60 / 0.9f, 0xFFFFFF, true ); @@ -136,7 +136,7 @@ public class AmmoBarOverlay { Minecraft.getInstance().font, centerString(getGunAmmoType(stack), 20), w / 0.9f - 144 / 0.9f, - h - 51, + h / 0.9f - 51 / 0.9f, 0xC8A679, true );