This commit is contained in:
ThisIsALegitUsername 2023-04-05 02:31:39 +00:00
parent e8497380a1
commit 0554982adf
5 changed files with 20613 additions and 20592 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -51,7 +51,6 @@ public class ClickGuiRewrite extends GuiScreen {
@Override
public void drawScreen(int mouseX, int mouseY, float var3) {
int offset = 0;
GlUtils.startScale((this.x + this.width) / 2, (this.y + this.height) / 2, introAnimation != null ? (float) introAnimation.getValue() : 1);
@ -99,7 +98,7 @@ public class ClickGuiRewrite extends GuiScreen {
}
if (isSearchFocused) {
drawRect(x + width - 290 - fr.getStringWidth(searchString), y + 38, x + width - 289 - fr.getStringWidth(searchString), y + 50, secondaryFontColor);
drawRect(x + width - 290 + fr.getStringWidth(searchString), y + 38, x + width - 289 + fr.getStringWidth(searchString), y + 50, secondaryFontColor);
}
GlStateManager.popMatrix();
@ -115,7 +114,7 @@ public class ClickGuiRewrite extends GuiScreen {
//Gear
if (m.doesHaveSetting()) {
GlStateManager.color(1, 1, 1);
mc.getTextureManager().bindTexture(new ResourceLocation("/resent/gear.png"));
mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/gear2.png"));
Gui.drawModalRectWithCustomSizedTexture(x + width - 60, (int) y + 140 + offset + scrollOffset, 0, 0, 20, 20, 20, 20);
}
//RenderUtils.drawRoundedRect(x+width-60, y+140+offset, x+width-40, y+160+offset, 4, -1);

View File

@ -53,6 +53,26 @@ public class ScaledResolution {
this.scaledHeight = MathHelper.ceiling_double_int(this.scaledHeightD);
}
public ScaledResolution(Minecraft parMinecraft, int uwu) {
this.scaledWidth = parMinecraft.displayWidth;
this.scaledHeight = parMinecraft.displayHeight;
this.scaleFactor = 1;
boolean flag = parMinecraft.isUnicode();
while (this.scaleFactor < uwu && this.scaledWidth / (this.scaleFactor + 1) >= 320 && this.scaledHeight / (this.scaleFactor + 1) >= 240) {
++this.scaleFactor;
}
if (flag && this.scaleFactor % 2 != 0 && this.scaleFactor != 1) {
--this.scaleFactor;
}
this.scaledWidthD = (double) this.scaledWidth / (double) this.scaleFactor;
this.scaledHeightD = (double) this.scaledHeight / (double) this.scaleFactor;
this.scaledWidth = MathHelper.ceiling_double_int(this.scaledWidthD);
this.scaledHeight = MathHelper.ceiling_double_int(this.scaledHeightD);
}
public int getScaledWidth() {
return this.scaledWidth;
}