mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:41:31 +01:00
Cursor Reset Fix
This commit is contained in:
parent
198bf6789a
commit
f3a00cb1cc
@ -236,11 +236,13 @@ public class ClickGUI extends SilentScreen {
|
||||
mc.displayGuiScreen(null);
|
||||
}
|
||||
loaded = false;
|
||||
Client.getInstance().getMouseCursorHandler().disableCursor();
|
||||
} else {
|
||||
Client.getInstance().getMouseCursorHandler().enableCursor(cursorType);
|
||||
}
|
||||
if(introAnimation.isDone() && !close) {
|
||||
loaded = true;
|
||||
}
|
||||
Client.getInstance().getMouseCursorHandler().enableCursor(cursorType);
|
||||
GlUtils.stopScale();
|
||||
|
||||
GlStateManager.popMatrix();
|
||||
|
@ -146,8 +146,6 @@ public class GuiColorPicker extends SilentScreen {
|
||||
cursorType = MouseCursorHandler.CursorType.POINTER;
|
||||
}
|
||||
|
||||
Client.getInstance().getMouseCursorHandler().enableCursor(cursorType);
|
||||
|
||||
GL11.glPopMatrix();
|
||||
|
||||
RenderUtil.drawImage(new ResourceLocation("silentclient/logos/logo.png"), x + 5, y + 5, 77, 15);
|
||||
@ -161,7 +159,10 @@ public class GuiColorPicker extends SilentScreen {
|
||||
if(ClickGUI.introAnimation.isDone(Direction.BACKWARDS)) {
|
||||
mc.displayGuiScreen(null);
|
||||
}
|
||||
}
|
||||
Client.getInstance().getMouseCursorHandler().disableCursor();
|
||||
} else {
|
||||
Client.getInstance().getMouseCursorHandler().enableCursor(cursorType);
|
||||
}
|
||||
|
||||
GlUtils.stopScale();
|
||||
GlStateManager.popMatrix();
|
||||
|
@ -224,7 +224,6 @@ public class ModSettings extends SilentScreen {
|
||||
|
||||
settingY += settingHeight;
|
||||
}
|
||||
Client.getInstance().getMouseCursorHandler().enableCursor(cursorType);
|
||||
GL11.glDisable(GL11.GL_SCISSOR_TEST);
|
||||
GL11.glPopMatrix();
|
||||
|
||||
@ -275,7 +274,10 @@ public class ModSettings extends SilentScreen {
|
||||
if(ClickGUI.introAnimation.isDone(Direction.BACKWARDS)) {
|
||||
mc.displayGuiScreen(null);
|
||||
}
|
||||
}
|
||||
Client.getInstance().getMouseCursorHandler().disableCursor();
|
||||
} else {
|
||||
Client.getInstance().getMouseCursorHandler().enableCursor(cursorType);
|
||||
}
|
||||
|
||||
GlUtils.stopScale();
|
||||
GlStateManager.popMatrix();
|
||||
|
Loading…
Reference in New Issue
Block a user