Add a button which navigates to the modpack download page in the modpack installl page
This commit is contained in:
1 parent
ae49422a17
commit
47795972c8
3 files changed
+14
-1
No files matched your search
@@ -232,6 +232,10 @@ public class DownloadPage extends DecoratorAnimatedPage implements DecoratorPage
|
||||
tab.select(newGameTab);
|
||||
}
|
||||
|
||||
public void showModpackDownloads() {
|
||||
tab.select(modpackTab);
|
||||
}
|
||||
|
||||
public void showModDownloads() {
|
||||
tab.select(modTab);
|
||||
}
|
||||
|
||||
@@ -69,7 +69,8 @@ public final class ModpackSelectionPage extends VBox implements WizardPage {
|
||||
this.getChildren().setAll(
|
||||
title,
|
||||
createButton("local", this::onChooseLocalFile),
|
||||
createButton("remote", this::onChooseRemoteFile)
|
||||
createButton("remote", this::onChooseRemoteFile),
|
||||
createButton("repository", this::onChooseRepository)
|
||||
);
|
||||
|
||||
Optional<File> filePath = tryCast(controller.getSettings().get(MODPACK_FILE), File.class);
|
||||
@@ -168,6 +169,12 @@ public final class ModpackSelectionPage extends VBox implements WizardPage {
|
||||
});
|
||||
}
|
||||
|
||||
public void onChooseRepository() {
|
||||
DownloadPage downloadPage = new DownloadPage();
|
||||
downloadPage.showModpackDownloads();
|
||||
Controllers.navigate(downloadPage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cleanup(Map<String, Object> settings) {
|
||||
}
|
||||
|
||||
@@ -616,6 +616,8 @@ modpack.choose.local=导入本地整合包文件
|
||||
modpack.choose.local.detail=你可以直接将整合包文件拖入本页面以安装
|
||||
modpack.choose.remote=从互联网下载整合包
|
||||
modpack.choose.remote.detail=需要提供整合包的下载链接
|
||||
modpack.choose.repository=从 Curseforge / Modrinth 下载整合包
|
||||
modpack.choose.repository.detail=下载后记得回到这个界面,把整合包拖进来哦
|
||||
modpack.choose.remote.tooltip=要下载的整合包的链接
|
||||
modpack.completion=下载整合包相关文件
|
||||
modpack.desc=描述你要制作的整合包,比如整合包注意事项和更新记录,支持 HTML(图片请用网络图)
|
||||
|
||||
Reference in new issue
Block a user