diff --git a/src/main/java/org/cubewhy/celestial/gui/pages/GuiSettings.java b/src/main/java/org/cubewhy/celestial/gui/pages/GuiSettings.java index b76b550c..3b7d7935 100644 --- a/src/main/java/org/cubewhy/celestial/gui/pages/GuiSettings.java +++ b/src/main/java/org/cubewhy/celestial/gui/pages/GuiSettings.java @@ -94,6 +94,12 @@ private void initGui() { p2.add(labelRam); panelVM.add(p2); + JPanel p3 = new JPanel(); + p3.add(new JLabel(f.getString("gui.settings.jvm.wrapper"))); + JTextField wrapperInput = getAutoSaveTextField("wrapper", config.getValue("wrapper").getAsJsonPrimitive(), config.getConfig()); + p3.add(wrapperInput); + panelVM.add(p3); + claim("jre", panelVM); claim("ram"); claim("vm-args"); @@ -124,6 +130,9 @@ private void addUnclaimed(JPanel basePanel, JsonObject json) { basePanel.add(subPanel); addUnclaimed(subPanel, s.getValue().getAsJsonObject()); } + if (s.getValue().isJsonArray()) { + // TODO valueList + } } } } diff --git a/src/main/resources/languages/launcher.properties b/src/main/resources/languages/launcher.properties index b8b478c5..dd85185f 100644 --- a/src/main/resources/languages/launcher.properties +++ b/src/main/resources/languages/launcher.properties @@ -134,4 +134,5 @@ gui.settings.jvm.jre.unset=Default gui.settings.jvm.jre.success=Java executable has been set to %s gui.settings.jvm.jre.unset.success=[Java executable] Restoring default values successfully! gui.settings.jvm.jre.unset.confirm=Are you sure you want to use the default JRE? -gui.settings.unclaimed=Others \ No newline at end of file +gui.settings.unclaimed=Others +gui.settings.jvm.wrapper=Wrapper: \ No newline at end of file diff --git a/src/main/resources/languages/launcher_en.properties b/src/main/resources/languages/launcher_en.properties index b8b478c5..dd85185f 100644 --- a/src/main/resources/languages/launcher_en.properties +++ b/src/main/resources/languages/launcher_en.properties @@ -134,4 +134,5 @@ gui.settings.jvm.jre.unset=Default gui.settings.jvm.jre.success=Java executable has been set to %s gui.settings.jvm.jre.unset.success=[Java executable] Restoring default values successfully! gui.settings.jvm.jre.unset.confirm=Are you sure you want to use the default JRE? -gui.settings.unclaimed=Others \ No newline at end of file +gui.settings.unclaimed=Others +gui.settings.jvm.wrapper=Wrapper: \ No newline at end of file diff --git a/src/main/resources/languages/launcher_zh.properties b/src/main/resources/languages/launcher_zh.properties index 1fb592f5..4055bc3b 100644 --- a/src/main/resources/languages/launcher_zh.properties +++ b/src/main/resources/languages/launcher_zh.properties @@ -132,4 +132,5 @@ gui.settings.jvm.jre.unset=使用默认Java gui.settings.jvm.jre.success=Java可执行文件已设置为%s gui.settings.jvm.jre.unset.success=[Java可执行文件] 恢复默认值成功! gui.settings.jvm.jre.unset.confirm=确认使用默认的JRE? -gui.settings.unclaimed=其他配置 \ No newline at end of file +gui.settings.unclaimed=其他配置 +gui.settings.jvm.wrapper=包装器: \ No newline at end of file