Jump to content

[1.12][Solved]Full Screen Gui


ArmamentHaki
 Share

Recommended Posts

 

but how do I completely undo it?

GlStateManager.pushMatrix();
GlStateManager.scale(1.0, 1.0, 1.0);
mc.renderEngine.bindTexture(mainGui);
mc.ingameGUI.drawModalRectWithCustomSizedTexture(x-x/3 - 250, 0, 0, 0, 500, 125, 500, 125);
GlStateManager.popMatrix();

thats what I tried  but GuiScale still affects it, I also tried it with GL11 and it works the same.

Link to comment
Share on other sites

Ok, so heres what I did:

GL11.glPushMatrix();
int i = 250;
if(event.getResolution().getScaleFactor() == 2)GL11.glScaled(1.0, 1.0, 1.0);
if(event.getResolution().getScaleFactor() == 1)
{
	GL11.glScaled(2.0, 2.0, 2.0);
	i= i*3;
}
if(event.getResolution().getScaleFactor() == 3)
{
	GL11.glScaled(0.666, 0.666, 0.666);
	i = i/3;
}
if(event.getResolution().getScaleFactor() == 4)
{
	GL11.glScaled(0.5, 0.5, 0.5);
	i = 0;
}
mc.renderEngine.bindTexture(mainGui);
mc.ingameGUI.drawModalRectWithCustomSizedTexture(x/2 - i, 0, 0, 0, 500, 125, 500, 125);
GL11.glPopMatrix();

This works now, thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.