mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:51:32 +01:00
Development
This commit is contained in:
parent
399901f53c
commit
0d146832ea
@ -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
|
||||
|
@ -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) {
|
||||
|
||||
}
|
||||
}
|
BIN
src/main/resources/assets/minecraft/silentclient/icons/dropdown-icon.png
Executable file
BIN
src/main/resources/assets/minecraft/silentclient/icons/dropdown-icon.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Loading…
Reference in New Issue
Block a user