mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-19 08:46:09 -04:00
about
This commit is contained in:
parent
2f92b65400
commit
be4ea59984
@ -46,7 +46,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public final class AccountsPage extends StackPane implements DecoratorPage {
|
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
|
@FXML
|
||||||
private ScrollPane scrollPane;
|
private ScrollPane scrollPane;
|
||||||
|
@ -177,7 +177,8 @@ public final class MainPage extends StackPane implements DecoratorPage {
|
|||||||
private void loadVersions(Profile profile) {
|
private void loadVersions(Profile profile) {
|
||||||
this.profile = profile;
|
this.profile = profile;
|
||||||
List<Node> children = new LinkedList<>();
|
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")));
|
children.add(buildNode(profile, version.getId(), Lang.nonNull(GameVersion.minecraftVersion(profile.getRepository().getVersionJar(version.getId())), "Unknown")));
|
||||||
}
|
}
|
||||||
FXUtils.resetChildren(masonryPane, children);
|
FXUtils.resetChildren(masonryPane, children);
|
||||||
|
@ -63,6 +63,8 @@ public class FileItem extends BorderPane {
|
|||||||
|
|
||||||
public void onExplore() {
|
public void onExplore() {
|
||||||
DirectoryChooser chooser = new DirectoryChooser();
|
DirectoryChooser chooser = new DirectoryChooser();
|
||||||
|
if (property.getValue() != null)
|
||||||
|
chooser.setInitialDirectory(new File(property.getValue()));
|
||||||
chooser.titleProperty().bind(titleProperty());
|
chooser.titleProperty().bind(titleProperty());
|
||||||
File selectedDir = chooser.showDialog(Controllers.getStage());
|
File selectedDir = chooser.showDialog(Controllers.getStage());
|
||||||
if (selectedDir != null)
|
if (selectedDir != null)
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
<JFXComboBox fx:id="cboProxyType">
|
<JFXComboBox fx:id="cboProxyType">
|
||||||
<items>
|
<items>
|
||||||
<FXCollections fx:factory="observableArrayList">
|
<FXCollections fx:factory="observableArrayList">
|
||||||
<Label text="Direct" />
|
<Label text="%launcher_settings.proxy.direct" />
|
||||||
<Label text="HTTP" />
|
<Label text="HTTP" />
|
||||||
<Label text="Socks" />
|
<Label text="Socks" />
|
||||||
</FXCollections>
|
</FXCollections>
|
||||||
@ -45,12 +45,14 @@
|
|||||||
<Label text="%launcher_settings.proxy.password" />
|
<Label text="%launcher_settings.proxy.password" />
|
||||||
<JFXTextField fx:id="txtProxyPassword" maxWidth="50" />
|
<JFXTextField fx:id="txtProxyPassword" maxWidth="50" />
|
||||||
</HBox></right></BorderPane>
|
</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">
|
<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>
|
<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." />
|
<Label fx:id="lblDisplay" text="[23:33:33] [Client Thread/INFO] [WaterPower]: Loaded mod WaterPower." />
|
||||||
</VBox>
|
</VBox>
|
||||||
</ComponentList>
|
</ComponentList>
|
||||||
|
|
||||||
|
<Label wrapText="true" text="%launcher.about" />
|
||||||
</VBox>
|
</VBox>
|
||||||
</ScrollPane>
|
</ScrollPane>
|
||||||
</fx:root>
|
</fx:root>
|
||||||
|
@ -408,3 +408,4 @@ message.confirm=Confirm
|
|||||||
version.forbidden_name=Forbidden name, do not use this.
|
version.forbidden_name=Forbidden name, do not use this.
|
||||||
account.missing=Missing account
|
account.missing=Missing account
|
||||||
message.unknown=Unknown
|
message.unknown=Unknown
|
||||||
|
launcher_settings.proxy.direct=Direct
|
||||||
|
@ -266,7 +266,7 @@ version.launch_script=生成启动脚本
|
|||||||
version.launch_script.failed=生成启动脚本失败
|
version.launch_script.failed=生成启动脚本失败
|
||||||
version.launch_script.save=保存启动脚本
|
version.launch_script.save=保存启动脚本
|
||||||
version.launch_script.success=启动脚本已生成完毕: %s.
|
version.launch_script.success=启动脚本已生成完毕: %s.
|
||||||
launcher.about=默认背景图感谢gamerteam提供。\n关于作者:\n百度ID:huanghongxun20\nmcbbs:huanghongxun\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百度ID:huanghongxun20\nmcbbs:huanghongxun\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_settings.download_source=下载源
|
||||||
launcher.background_location=背景地址
|
launcher.background_location=背景地址
|
||||||
launcher.common_location=公共文件夹
|
launcher.common_location=公共文件夹
|
||||||
@ -409,3 +409,4 @@ message.confirm=提示
|
|||||||
version.forbidden_name=此版本名称不受支持,请换一个名字
|
version.forbidden_name=此版本名称不受支持,请换一个名字
|
||||||
account.missing=没有账户
|
account.missing=没有账户
|
||||||
message.unknown=未知
|
message.unknown=未知
|
||||||
|
launcher_settings.proxy.direct=直连
|
||||||
|
Loading…
x
Reference in New Issue
Block a user