fixesss
This commit is contained in:
parent
e8497380a1
commit
0554982adf
File diff suppressed because it is too large
Load Diff
20589
javascript/classes.js
20589
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -51,7 +51,6 @@ public class ClickGuiRewrite extends GuiScreen {
|
||||||
@Override
|
@Override
|
||||||
public void drawScreen(int mouseX, int mouseY, float var3) {
|
public void drawScreen(int mouseX, int mouseY, float var3) {
|
||||||
|
|
||||||
|
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
|
|
||||||
GlUtils.startScale((this.x + this.width) / 2, (this.y + this.height) / 2, introAnimation != null ? (float) introAnimation.getValue() : 1);
|
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) {
|
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();
|
GlStateManager.popMatrix();
|
||||||
|
@ -115,7 +114,7 @@ public class ClickGuiRewrite extends GuiScreen {
|
||||||
//Gear
|
//Gear
|
||||||
if (m.doesHaveSetting()) {
|
if (m.doesHaveSetting()) {
|
||||||
GlStateManager.color(1, 1, 1);
|
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);
|
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);
|
//RenderUtils.drawRoundedRect(x+width-60, y+140+offset, x+width-40, y+160+offset, 4, -1);
|
||||||
|
|
|
@ -53,6 +53,26 @@ public class ScaledResolution {
|
||||||
this.scaledHeight = MathHelper.ceiling_double_int(this.scaledHeightD);
|
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() {
|
public int getScaledWidth() {
|
||||||
return this.scaledWidth;
|
return this.scaledWidth;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user