mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 08:31:32 +01:00
Better
This commit is contained in:
parent
67c4277cb6
commit
dcc76c9dd7
@ -35,6 +35,7 @@ import net.silentclient.client.utils.types.*;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.json.JSONObject;
|
||||
import org.lwjgl.opengl.Display;
|
||||
import org.lwjgl.opengl.GLContext;
|
||||
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
@ -214,6 +215,7 @@ public class Client {
|
||||
}
|
||||
|
||||
globalSettings.save();
|
||||
Client.getInstance().updateWindowTitle();
|
||||
logger.info("STARTING > config-manager");
|
||||
configManager = new ConfigManager();
|
||||
logger.info("STARTING > texture-manager");
|
||||
@ -325,6 +327,10 @@ public class Client {
|
||||
|
||||
// utils
|
||||
|
||||
public void updateWindowTitle() {
|
||||
Display.setTitle(String.format("Silent Client%s %s (1.8.9)", Client.getInstance().getGlobalSettings() != null && Client.getInstance().getGlobalSettings().isLite() ? " Lite" : "", Client.getInstance().getFullVersion()));
|
||||
}
|
||||
|
||||
public void updateUserInformation() {
|
||||
silentSocket.getSocket().emit("refresh", Minecraft.getMinecraft().getSession().getUsername().toLowerCase());
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ public abstract class MinecraftMixin {
|
||||
|
||||
@Redirect(method = "createDisplay", at = @At(value = "INVOKE", target = "Lorg/lwjgl/opengl/Display;setTitle(Ljava/lang/String;)V"))
|
||||
public void setWindowTitle(String newTitle) {
|
||||
Display.setTitle("Silent Client " + Client.getInstance().getFullVersion() + " (1.8.9)");
|
||||
Client.getInstance().updateWindowTitle();
|
||||
}
|
||||
|
||||
@Redirect(method = "<init>", at = @At(value = "INVOKE", target = "Lorg/apache/logging/log4j/Logger;info(Ljava/lang/String;)V", ordinal = 1))
|
||||
|
@ -22,7 +22,7 @@ public class MenuBlurUtils {
|
||||
}
|
||||
|
||||
public static void renderBackground(GuiScreen instance) {
|
||||
if(Client.getInstance().getSettingsManager().getSettingByClass(GeneralMod.class, "Menu Background Blur").getValBoolean()) {
|
||||
if(Client.getInstance().getSettingsManager().getSettingByClass(GeneralMod.class, "Menu Background Blur").getValBoolean() && !Client.getInstance().getGlobalSettings().isLite()) {
|
||||
((GuiAccessor) instance).silent$drawGradientRect(0, 0, instance.width, instance.height, new Color(0, 0, 0, 0).getRGB(), new Color(0, 0, 0, 0).getRGB());
|
||||
} else {
|
||||
instance.drawDefaultBackground();
|
||||
|
@ -27,6 +27,7 @@ public class GlobalSettings {
|
||||
|
||||
public void setLite(boolean lite) {
|
||||
this.lite = lite;
|
||||
Client.getInstance().updateWindowTitle();
|
||||
}
|
||||
|
||||
public void save() {
|
||||
|
Loading…
Reference in New Issue
Block a user