Skip to content

Commit

Permalink
修正一处渲染问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Dec 19, 2023
1 parent 8ddf3eb commit 75bddc3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void renderLatestChessTips(TileEntityGomoku gomoku, PoseStack poseStack,
poseStack.mulPose(Vector3f.YN.rotationDegrees(180 + camera.getYRot()));
poseStack.scale(0.015625F, -0.015625F, 0.015625F);
float width = (float) (-this.font.width("▼") / 2) + 0.5f;
this.font.drawInBatch("▼", width, -1.5f, 0xFF0000, false, poseStack.last().pose(), bufferIn, true, 0, combinedLightIn);
this.font.drawInBatch("▼", width, -1.5f, 0xFF0000, false, poseStack.last().pose(), bufferIn, false, 0, combinedLightIn);
poseStack.popPose();
}
}
Expand Down Expand Up @@ -126,10 +126,10 @@ private void renderTipsText(TileEntityGomoku gomoku, PoseStack poseStack, MultiB
poseStack.mulPose(Vector3f.YN.rotationDegrees(180 + camera.getYRot()));
poseStack.mulPose(Vector3f.XN.rotationDegrees(camera.getXRot()));
poseStack.scale(0.03F, -0.03F, 0.03F);
this.font.drawInBatch(loseTips, loseTipsWidth, -10, 0xFFFFFF, true, poseStack.last().pose(), bufferIn, true, 0, combinedLightIn);
this.font.drawInBatch(loseTips, loseTipsWidth, -10, 0xFFFFFF, true, poseStack.last().pose(), bufferIn, false, 0, combinedLightIn);
poseStack.scale(0.5F, 0.5F, 0.5F);
this.font.drawInBatch(roundTips, roundTipsWidth, -30, 0xFFFFFF, true, poseStack.last().pose(), bufferIn, true, 0, combinedLightIn);
this.font.drawInBatch(resetTips, resetTipsWidth, 0, 0xFFFFFF, true, poseStack.last().pose(), bufferIn, true, 0, combinedLightIn);
this.font.drawInBatch(roundTips, roundTipsWidth, -30, 0xFFFFFF, true, poseStack.last().pose(), bufferIn, false, 0, combinedLightIn);
this.font.drawInBatch(resetTips, resetTipsWidth, 0, 0xFFFFFF, true, poseStack.last().pose(), bufferIn, false, 0, combinedLightIn);
poseStack.popPose();
}
}
Expand Down

0 comments on commit 75bddc3

Please sign in to comment.