Update the config lang file

Also rename and refactor a few items
This commit is contained in:
James Seibel
2023-06-09 22:10:43 -05:00
parent 4a9dc216e7
commit a80843ce77
3 changed files with 19 additions and 14 deletions
@@ -7,22 +7,27 @@ import com.seibel.lod.core.config.gui.JavaScreenHandlerScreen;
import com.seibel.lod.core.config.gui.OpenGLConfigScreen;
import net.minecraft.client.gui.screens.Screen;
public class GetConfigScreen {
public static type useScreen = type.Classic;
public static enum type {
Classic,
@Deprecated
OpenGL, // This was jsut an attempt, it didn't work out, and we are going to change to javafx soon (as soon as that works)
JavaFX;
}
public class GetConfigScreen
{
public static type useScreen = type.Classic;
public enum type
{
Classic,
@Deprecated
OpenGL, // This was just an attempt, it didn't work out, and we are going to change to javafx soon (as soon as that works)
JavaFX;
}
public static Screen getScreen(Screen parent) {
public static Screen getScreen(Screen parent)
{
// Generate the language
// This shouldnt be here, but I need a way to test it after Minecraft inits its assets
// System.out.println(ConfigBase.INSTANCE.generateLang(false, true));
// This shouldn't be here, but I need a way to test it after Minecraft inits its assets
//System.out.println(ConfigBase.INSTANCE.generateLang(false, true));
return switch (useScreen) {
return switch (useScreen)
{
case Classic -> ClassicConfigGUI.getScreen(ConfigBase.INSTANCE, parent, "client");
case OpenGL -> MinecraftScreen.getScreen(parent, new OpenGLConfigScreen(), ModInfo.ID + ".title");
// case JavaFX -> MinecraftScreen.getScreen(parent, new JavaScreenHandlerScreen(new JavaScreenHandlerScreen.ExampleScreen()), ModInfo.ID + ".title");
@@ -94,7 +94,7 @@ public class UpdateModScreen extends Screen {
);
this.addBtn( // Silent update
new Button(this.width / 2 - 75, this.height / 2 + 30, 150, 20, translate(ModInfo.ID + ".updater.silent"), (btn) -> {
Config.Client.Advanced.AutoUpdater.automaticallyUpdate.set(true);
Config.Client.Advanced.AutoUpdater.enableSilentUpdates.set(true);
SelfUpdater.updateMod();
this.onClose();
})