Update the config lang file
Also rename and refactor a few items
This commit is contained in:
@@ -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");
|
||||
|
||||
+1
-1
@@ -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();
|
||||
})
|
||||
|
||||
+1
-1
Submodule coreSubProjects updated: 7ba43286d9...c9e2864c88
Reference in New Issue
Block a user