mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:41:31 +01:00
Fixes
This commit is contained in:
parent
27e6a840f2
commit
aa8484c91f
@ -75,7 +75,7 @@ public class AbstractShieldRenderer extends ModelBase implements LayerRenderer<A
|
||||
BlcGlStateManager.b(180.0f, 0.0f, 1.0f, 1.0f);
|
||||
BlcGlStateManager.b(-90.0f, 1.0f, 0.0f, 0.0f);
|
||||
BlcGlStateManager.b(-90.0f, 0.0f, 1.0f, 0.0f);
|
||||
BlcGlStateManager.b(paramBoolean1 ? -0.5799999833106995 : -0.4000000059604645, paramBoolean1 ? -0.42 : -0.5, paramBoolean2 ? 0.13700000524520874 : 0.2);
|
||||
BlcGlStateManager.b(paramBoolean1 ? -0.5799999833106995 : -0.4000000059604645, paramBoolean1 ? -0.72 : -0.5, paramBoolean2 ? 0.13700000524520874 : 0.2);
|
||||
if(chestplate) {
|
||||
GlStateManager.translate(0, 0, 0.055 + (paramBoolean2 ? 0.055 : 0));
|
||||
}
|
||||
@ -83,7 +83,7 @@ public class AbstractShieldRenderer extends ModelBase implements LayerRenderer<A
|
||||
case "roundshield":
|
||||
GlStateManager.translate(0.33, 0.35, 0);
|
||||
BlcGlStateManager.b(-90.0F, 0.0F, 1.0F, 0.0F);
|
||||
BlcGlStateManager.b(paramBoolean1 ? -0.5799999833106995 : -0.4000000059604645, paramBoolean1 ? -0.72 : -0.5, paramBoolean2 ? 0.13700000524520874 : 0.2);
|
||||
BlcGlStateManager.b(paramBoolean1 ? -0.10000000149011612D : 0.0D, paramBoolean1 ? 0.45D : 0.25D, paramBoolean2 ? -0.1399999964237213D : -0.2D);
|
||||
BlcGlStateManager.b(180.0F, 0.0F, 0.0F, 1.0F);
|
||||
if(chestplate) {
|
||||
GlStateManager.translate(0, 0, -0.06 + (paramBoolean2 ? -0.055 : 0));
|
||||
|
@ -5,6 +5,9 @@ import net.silentclient.client.Client;
|
||||
import net.silentclient.client.gui.font.SilentFontRenderer;
|
||||
import net.silentclient.client.gui.lite.clickgui.utils.MouseUtils;
|
||||
import net.silentclient.client.utils.AccountManager;
|
||||
import net.silentclient.client.utils.ColorUtils;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public class AccountPicker {
|
||||
private boolean open;
|
||||
@ -18,6 +21,8 @@ public class AccountPicker {
|
||||
}
|
||||
|
||||
public void draw(Minecraft mc, int mouseX, int mouseY) {
|
||||
boolean hovered = MouseUtils.isInside(mouseX, mouseY, x - (Client.getInstance().getSilentFontRenderer().getStringWidth(Client.getInstance().getAccount().original_username, 14, SilentFontRenderer.FontType.TITLE) / 2), y, Client.getInstance().getSilentFontRenderer().getStringWidth(Client.getInstance().getAccount().original_username, 14, SilentFontRenderer.FontType.TITLE), 14);
|
||||
ColorUtils.setColor(hovered ? new Color(255, 255, 255, 127).getRGB() : -1);
|
||||
Client.getInstance().getSilentFontRenderer().drawCenteredString(Client.getInstance().getAccount().original_username, x, y, 14, SilentFontRenderer.FontType.TITLE);
|
||||
if(this.open) {
|
||||
int accountY = y + 15;
|
||||
@ -25,6 +30,8 @@ public class AccountPicker {
|
||||
if(Client.getInstance().getAccount().getUsername().equalsIgnoreCase(account.username)) {
|
||||
continue;
|
||||
}
|
||||
boolean accountHovered = MouseUtils.isInside(mouseX, mouseY, x - (Client.getInstance().getSilentFontRenderer().getStringWidth(Client.getInstance().getAccount().original_username, 14, SilentFontRenderer.FontType.TITLE) / 2), accountY, Client.getInstance().getSilentFontRenderer().getStringWidth(Client.getInstance().getAccount().original_username, 14, SilentFontRenderer.FontType.TITLE), 14);
|
||||
ColorUtils.setColor(accountHovered ? new Color(255, 255, 255, 127).getRGB() : -1);
|
||||
Client.getInstance().getSilentFontRenderer().drawCenteredString(account.username, x, accountY, 14, SilentFontRenderer.FontType.TITLE);
|
||||
accountY += 15;
|
||||
}
|
||||
@ -50,12 +57,12 @@ public class AccountPicker {
|
||||
}
|
||||
if(MouseUtils.isInside(mouseX, mouseY, x - (Client.getInstance().getSilentFontRenderer().getStringWidth(account.username, 14, SilentFontRenderer.FontType.TITLE) / 2), accountY, Client.getInstance().getSilentFontRenderer().getStringWidth(account.username, 14, SilentFontRenderer.FontType.TITLE), 14)) {
|
||||
Client.getInstance().getAccountManager().setSelected(account, accountIndex, false);
|
||||
this.open = false;
|
||||
break;
|
||||
}
|
||||
accountY += 15;
|
||||
accountIndex += 1;
|
||||
}
|
||||
this.open = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user