修复部分blit传参问题
This commit is contained in:
parent
b4bd5ba120
commit
46b0b19233
4 changed files with 6 additions and 6 deletions
|
@ -126,7 +126,7 @@ public class DroneUIOverlay {
|
||||||
if (lookAtEntity) {
|
if (lookAtEntity) {
|
||||||
// 实体距离
|
// 实体距离
|
||||||
guiGraphics.drawString(mc.font, Component.translatable("tips.superbwarfare.drone.range")
|
guiGraphics.drawString(mc.font, Component.translatable("tips.superbwarfare.drone.range")
|
||||||
.append(Component.literal(FormatTool.format1D(entityRange, "m ") + lookingEntity.getDisplayName().getString())),
|
.append(Component.literal(FormatTool.format1D(entityRange, "m ") + lookingEntity.getDisplayName())),
|
||||||
w / 2 + 12, h / 2 - 28, color, false);
|
w / 2 + 12, h / 2 - 28, color, false);
|
||||||
} else {
|
} else {
|
||||||
// 方块距离
|
// 方块距离
|
||||||
|
@ -158,7 +158,7 @@ public class DroneUIOverlay {
|
||||||
float x = (float) point.x;
|
float x = (float) point.x;
|
||||||
float y = (float) point.y;
|
float y = (float) point.y;
|
||||||
|
|
||||||
RenderHelper.preciseBlit(guiGraphics, FRAME, x - 12, y - 12, 0, 0, 24, 24, 24, 24, 1f);
|
RenderHelper.preciseBlit(event.getGuiGraphics(), FRAME, x - 12, y - 12, 24, 24, 0, 0, 24, 24, 24, 24);
|
||||||
poseStack.popPose();
|
poseStack.popPose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class HandsomeFrameOverlay {
|
||||||
icon = FRAME_WEAK;
|
icon = FRAME_WEAK;
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderHelper.preciseBlit(event.getGuiGraphics(), icon, x - 12, y - 12, 0, 0, 24, 24, 24, 24, 1f);
|
RenderHelper.preciseBlit(event.getGuiGraphics(), icon, x - 12, y - 12, 24, 24, 0, 0, 24, 24, 24, 24);
|
||||||
poseStack.popPose();
|
poseStack.popPose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -119,7 +119,7 @@ public class JavelinHudOverlay {
|
||||||
float x = (float) point.x;
|
float x = (float) point.x;
|
||||||
float y = (float) point.y;
|
float y = (float) point.y;
|
||||||
|
|
||||||
RenderHelper.preciseBlit(event.getGuiGraphics(), lockOn ? FRAME_LOCK : nearest ? FRAME_TARGET : FRAME, x - 12, y - 12, 0, 0, 24, 24, 24, 24, 1f);
|
RenderHelper.preciseBlit(event.getGuiGraphics(), lockOn ? FRAME_LOCK : nearest ? FRAME_TARGET : FRAME, x - 12, y - 12, 24, 24, 0, 0, 24, 24, 24, 24);
|
||||||
poseStack.popPose();
|
poseStack.popPose();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -136,7 +136,7 @@ public class JavelinHudOverlay {
|
||||||
float x = (float) point.x;
|
float x = (float) point.x;
|
||||||
float y = (float) point.y;
|
float y = (float) point.y;
|
||||||
|
|
||||||
RenderHelper.preciseBlit(event.getGuiGraphics(), lockOn ? FRAME_LOCK : FRAME_TARGET, x - 12, y - 12, 0, 0, 24, 24, 24, 24, 1f);
|
RenderHelper.preciseBlit(event.getGuiGraphics(), lockOn ? FRAME_LOCK : FRAME_TARGET, x - 12, y - 12, 24, 24, 0, 0, 24, 24, 24, 24);
|
||||||
poseStack.popPose();
|
poseStack.popPose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class RedTriangleOverlay {
|
||||||
float x = (float) point.x;
|
float x = (float) point.x;
|
||||||
float y = (float) point.y;
|
float y = (float) point.y;
|
||||||
|
|
||||||
RenderHelper.preciseBlit(event.getGuiGraphics(), TRIANGLE, x - 4, y - 4, 0, 0, 8, 8, 8, 8, -65536);
|
RenderHelper.preciseBlit(event.getGuiGraphics(), TRIANGLE, x - 4, y - 4, 8, 8, 0, 0, 8, 8, 8, 8);
|
||||||
|
|
||||||
RenderSystem.depthMask(true);
|
RenderSystem.depthMask(true);
|
||||||
RenderSystem.defaultBlendFunc();
|
RenderSystem.defaultBlendFunc();
|
||||||
|
|
Loading…
Add table
Reference in a new issue