Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hey.

Is there an easy way of doing a Gui which isn't resized by Gui Scale? I want to have a full Screen Gui with every rect in fixed Position.

Edited by ArmamentHaki

  • Author

 

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.

  • Author
16 minutes ago, diesieben07 said:

Scaling by a scale factor of 1 does precisely nothing.

yeah I know and I also tried different factors which all resized the gui properly, but when I then changed the gui scale, the gui still got bigger and smaller

  • Author

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

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.