Skip to content

Commit

Permalink
1.19.4 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fayer3 committed Apr 26, 2024
1 parent bcd5e1d commit f9307ef
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@ public void render(PoseStack poseStack, int pMouseX, int pMouseY, float pPartial
super.render(poseStack, pMouseX, pMouseY, pPartialTicks);

if (this.visibleList == null) {
guiGraphics.drawCenteredString(this.minecraft.font,
drawCenteredString(poseStack, this.minecraft.font,
Component.translatable("vivecraft.messages.radialmenubind.1"), this.width / 2, this.height - 50,
5635925);

if (this.isShift) {
guiGraphics.drawCenteredString(this.minecraft.font,
drawCenteredString(poseStack, this.minecraft.font,
Component.translatable("vivecraft.messages.radialmenubind.2"), this.width / 2, this.height - 36,
13777015);
guiGraphics.drawCenteredString(this.minecraft.font,
drawCenteredString(poseStack, this.minecraft.font,
Component.translatable("vivecraft.messages.radialmenubind.3"), this.width / 2, this.height - 22,
13777015);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public CategoryEntry(String name) {
}

public void render(
GuiGraphics guiGraphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY,
PoseStack poseStack, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY,
boolean pIsMouseOver, float pPartialTicks)
{
guiGraphics.drawString(minecraft.font, this.labelText, (minecraft.screen.width / 2 - this.labelWidth / 2),
minecraft.font.draw(poseStack, this.labelText, (minecraft.screen.width / 2 - this.labelWidth / 2),
(pTop + pHeight - 9 - 1), 6777215);
}
}
Expand All @@ -68,7 +68,7 @@ private MappingEntry(KeyMapping key, GuiRadialConfiguration parent) {
}

public void render(
GuiGraphics guiGraphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY,
PoseStack poseStack, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY,
boolean pIsMouseOver, float pPartialTicks)
{
ChatFormatting chatformatting = ChatFormatting.WHITE;
Expand All @@ -77,7 +77,7 @@ public void render(
chatformatting = ChatFormatting.GREEN;
}

guiGraphics.drawString(minecraft.font, chatformatting + I18n.get(this.myKey.getName()),
minecraft.font.draw(poseStack, chatformatting + I18n.get(this.myKey.getName()),
(minecraft.screen.width / 2 - maxListLabelWidth / 2), (pTop + pHeight / 2 - 9 / 2), 16777215);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public static void drawScreen(float f, Screen screen, PoseStack poseStack) {
PoseStack posestack = RenderSystem.getModelViewStack();
posestack.pushPose();
posestack.setIdentity();
posestack.translate(0.0D, 0.0D, -11000.0D);
posestack.translate(0.0D, 0.0D, -2000.0D);
RenderSystem.applyModelViewMatrix();

RenderSystem.blendFuncSeparate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public abstract class MinecraftVRMixin implements MinecraftExtension {
PoseStack poseStack = RenderSystem.getModelViewStack();
poseStack.pushPose();
poseStack.setIdentity();
poseStack.translate(0.0f, 0.0f, -11000.0f);
poseStack.translate(0.0f, 0.0f, -2000.0f);
RenderSystem.applyModelViewMatrix();

int x = (int) (Minecraft.getInstance().mouseHandler.xpos() * (double) Minecraft.getInstance().getWindow().getGuiScaledWidth() / (double) Minecraft.getInstance().getWindow().getScreenWidth());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package net.irisshaders.iris.uniforms;

import org.joml.Matrix4f;

public class CapturedRenderingState {
public static final CapturedRenderingState INSTANCE = new CapturedRenderingState();
public Matrix4f getGbufferProjection() {
return null;
}
}

0 comments on commit f9307ef

Please sign in to comment.