Development

This commit is contained in:
kirillsaint 2023-07-30 13:16:36 +06:00
parent 399901f53c
commit 0d146832ea
3 changed files with 30 additions and 0 deletions

View File

@ -17,6 +17,7 @@ import net.silentclient.client.gui.lite.GuiNews;
import net.silentclient.client.gui.lite.LiteMainMenu;
import net.silentclient.client.gui.lite.clickgui.utils.MouseUtils;
import net.silentclient.client.gui.lite.clickgui.utils.RenderUtils;
import net.silentclient.client.gui.silentmainmenu.components.AccountPicker;
import net.silentclient.client.gui.silentmainmenu.components.MenuOption;
import net.silentclient.client.gui.theme.button.IButtonTheme;
import net.silentclient.client.gui.util.RenderUtil;
@ -33,6 +34,7 @@ public class MainMenuConcept extends SilentScreen {
public static BufferedImage image = null;
public static boolean loading = false;
public static boolean initSkin = false;
private AccountPicker accountPicker;
@Override
public void initGui() {
@ -70,6 +72,7 @@ public class MainMenuConcept extends SilentScreen {
}
});
}
this.accountPicker = new AccountPicker(width - 120 + (62 / 2), height / 2 - 75 + 155);
}
@Override
@ -93,6 +96,8 @@ public class MainMenuConcept extends SilentScreen {
Client.getInstance().getSilentFontRenderer().drawString(3, height - 14, "Silent Client 1.8.9", 12, SilentFontRenderer.FontType.TITLE);
super.drawScreen(mouseX, mouseY, partialTicks);
this.accountPicker.draw(mc, mouseX, mouseY);
}
@Override
@ -144,6 +149,8 @@ public class MainMenuConcept extends SilentScreen {
}
return;
}
this.accountPicker.onClick(mc, mouseX, mouseY);
}
@Override

View File

@ -0,0 +1,23 @@
package net.silentclient.client.gui.silentmainmenu.components;
import net.minecraft.client.Minecraft;
public class AccountPicker {
private boolean open;
private final int x;
private final int y;
public AccountPicker(int x, int y) {
this.x = x;
this.y = y;
this.open = false;
}
public void draw(Minecraft mc, int mouseX, int mouseY) {
// Client.getInstance().getSilentFontRenderer().drawCenteredString(Client.getInstance().getAccount().original_username, x, y, 14, SilentFontRenderer.FontType.TITLE);
}
public void onClick(Minecraft mc, int mouseX, int mouseY) {
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB