autoenable cleangui chat

This commit is contained in:
Bella 2020-02-07 11:26:57 -05:00
parent 7c43f03aaf
commit 33a26dcb04
3 changed files with 7 additions and 4 deletions

View File

@ -18,6 +18,7 @@ import me.zeroeightsix.kami.gui.rgui.util.Docking;
import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.capes.Capes;
import me.zeroeightsix.kami.module.modules.gui.CleanGUI;
import me.zeroeightsix.kami.module.modules.gui.InventoryViewer;
import me.zeroeightsix.kami.module.modules.misc.DiscordSettings;
import me.zeroeightsix.kami.module.modules.misc.CustomChat;
@ -189,7 +190,7 @@ public class KamiMod {
ModuleManager.getModules().stream().filter(Module::isEnabled).forEach(Module::enable);
try { // load modules that are on by default // autoenable
try { // load modules that are on by default // auto enable
ModuleManager.getModuleByName("InfoOverlay").setEnabled(true);
if (((DiscordSettings) ModuleManager.getModuleByName("DiscordRPC")).startupGlobal.getValue()) {
@ -207,6 +208,9 @@ public class KamiMod {
if (((InventoryViewer) ModuleManager.getModuleByName("InventoryViewer")).startupGlobal.getValue()) {
ModuleManager.getModuleByName("InventoryViewer").setEnabled(true);
}
if (((CleanGUI) ModuleManager.getModuleByName("CleanGUI")).startupGlobal.getValue()) {
ModuleManager.getModuleByName("CleanGUI").setEnabled(true);
}
}
catch (NullPointerException e) {

View File

@ -10,7 +10,8 @@ import me.zeroeightsix.kami.setting.Settings;
*/
@Module.Info(name = "CleanGUI", category = Module.Category.GUI, showOnArray = Module.ShowOnArray.OFF, description = "Modifies parts of the GUI to be transparent")
public class CleanGUI extends Module {
public Setting<Boolean> inventoryGlobal = register(Settings.b("Inventory", true));
public Setting<Boolean> startupGlobal = register(Settings.b("Enable Automatically", true));
public Setting<Boolean> inventoryGlobal = register(Settings.b("Inventory", falses));
public static Setting<Boolean> chatGlobal = Settings.b("Chat", true);
private static CleanGUI INSTANCE = new CleanGUI();

View File

@ -54,8 +54,6 @@ public class InfoOverlay extends Module {
}
}
private String formatTimerSpeed() {
String formatted = textColour(secondColour.getValue()) + "." + textColour(firstColour.getValue());
return TimerSpeed.returnGui().replace(".", formatted);