This commit is contained in:
huangyuhui 2018-01-27 17:03:06 +08:00
parent 2f92b65400
commit be4ea59984
6 changed files with 12 additions and 5 deletions

View File

@ -46,7 +46,7 @@ import java.util.List;
import java.util.Map;
public final class AccountsPage extends StackPane implements DecoratorPage {
private final StringProperty title = new SimpleStringProperty(this, "title", "Accounts");
private final StringProperty title = new SimpleStringProperty(this, "title", Main.i18n("account"));
@FXML
private ScrollPane scrollPane;

View File

@ -177,7 +177,8 @@ public final class MainPage extends StackPane implements DecoratorPage {
private void loadVersions(Profile profile) {
this.profile = profile;
List<Node> children = new LinkedList<>();
for (Version version : profile.getRepository().getVersions()) {
List<Version> versions = new LinkedList<>(profile.getRepository().getVersions());
for (Version version : versions) {
children.add(buildNode(profile, version.getId(), Lang.nonNull(GameVersion.minecraftVersion(profile.getRepository().getVersionJar(version.getId())), "Unknown")));
}
FXUtils.resetChildren(masonryPane, children);

View File

@ -63,6 +63,8 @@ public class FileItem extends BorderPane {
public void onExplore() {
DirectoryChooser chooser = new DirectoryChooser();
if (property.getValue() != null)
chooser.setInitialDirectory(new File(property.getValue()));
chooser.titleProperty().bind(titleProperty());
File selectedDir = chooser.showDialog(Controllers.getStage());
if (selectedDir != null)

View File

@ -30,7 +30,7 @@
<JFXComboBox fx:id="cboProxyType">
<items>
<FXCollections fx:factory="observableArrayList">
<Label text="Direct" />
<Label text="%launcher_settings.proxy.direct" />
<Label text="HTTP" />
<Label text="Socks" />
</FXCollections>
@ -45,12 +45,14 @@
<Label text="%launcher_settings.proxy.password" />
<JFXTextField fx:id="txtProxyPassword" maxWidth="50" />
</HBox></right></BorderPane>
<BorderPane><left><Label text="%launcher_settings.theme" /></left><right></right></BorderPane>
<!--BorderPane><left><Label text="%launcher_settings.theme" /></left><right></right></BorderPane-->
<VBox spacing="5">
<BorderPane><left><Label text="%launcher_settings.log_font" BorderPane.alignment="CENTER_LEFT" /></left><right><HBox spacing="3"><FontComboBox fontSize="12" enableStyle="false" fx:id="cboFont" /><JFXTextField fx:id="txtFontSize" maxWidth="50" minWidth="50" /></HBox></right></BorderPane>
<Label fx:id="lblDisplay" text="[23:33:33] [Client Thread/INFO] [WaterPower]: Loaded mod WaterPower." />
</VBox>
</ComponentList>
<Label wrapText="true" text="%launcher.about" />
</VBox>
</ScrollPane>
</fx:root>

View File

@ -408,3 +408,4 @@ message.confirm=Confirm
version.forbidden_name=Forbidden name, do not use this.
account.missing=Missing account
message.unknown=Unknown
launcher_settings.proxy.direct=Direct

View File

@ -266,7 +266,7 @@ version.launch_script=生成启动脚本
version.launch_script.failed=生成启动脚本失败
version.launch_script.save=保存启动脚本
version.launch_script.success=启动脚本已生成完毕: %s.
launcher.about=默认背景图感谢gamerteam提供。\n关于作者\n百度IDhuanghongxun20\nmcbbshuanghongxun\nMinecraft Forum ID: klkl6523\n欢迎提交Bug哦\nCopyright (c) 2013-2017 huangyuhui.\n免责声明Minecraft软件版权归Mojang AB所有使用本软件产生的版权问题本软件制作方概不负责。\n本启动器在GPLv3协议下开源:https://github.com/huanghongxun/HMCL/ ,感谢issues和pull requests贡献者\n本软件使用了基于Apache License 2.0的Gson项目感谢贡献者。
launcher.about=默认背景图感谢gamerteam提供。\n关于作者\n百度IDhuanghongxun20\nmcbbshuanghongxun\nMinecraft Forum ID: klkl6523\n欢迎提交Bug哦\nCopyright (c) 2013-2017 huangyuhui.\n免责声明Minecraft软件版权归Mojang AB所有\n使用本软件产生的版权问题本软件制作方概不负责。\n本启动器在GPLv3协议下开源:https://github.com/huanghongxun/HMCL/ ,\n感谢issues和pull requests贡献者\n本软件使用了基于Apache License 2.0的Gson项目感谢贡献者。
launcher_settings.download_source=下载源
launcher.background_location=背景地址
launcher.common_location=公共文件夹
@ -409,3 +409,4 @@ message.confirm=提示
version.forbidden_name=此版本名称不受支持,请换一个名字
account.missing=没有账户
message.unknown=未知
launcher_settings.proxy.direct=直连