From c02085cfc8897771d9bbbddf059af99cd6a9a223 Mon Sep 17 00:00:00 2001 From: Ringo Sham Date: Mon, 18 Mar 2019 23:55:35 +0000 Subject: [PATCH] Auto import beatmaps --- src/com/ringosham/Global.java | 5 +++ src/com/ringosham/fxml/about.fxml | 2 +- src/com/ringosham/fxml/settings.fxml | 2 +- src/com/ringosham/lang/lang_en_US.properties | 12 +++++-- src/com/ringosham/lang/lang_zh_TW.properties | 12 +++++-- .../threads/imports/download/Downloader.java | 33 +++++++++++++++++++ 6 files changed, 60 insertions(+), 6 deletions(-) diff --git a/src/com/ringosham/Global.java b/src/com/ringosham/Global.java index 671cd4a..5998570 100644 --- a/src/com/ringosham/Global.java +++ b/src/com/ringosham/Global.java @@ -6,9 +6,12 @@ package com.ringosham; +import com.ringosham.locale.Localizer; import com.ringosham.objects.Beatmap; import javafx.application.Platform; import javafx.scene.control.Alert; +import javafx.scene.control.Button; +import javafx.scene.control.ButtonType; import javafx.scene.image.Image; import java.awt.*; @@ -76,6 +79,7 @@ private void initConfig() throws IOException { config.setProperty("lazerDirectory", Defaults.getDefaultDirectory()); config.setProperty("locale", Defaults.locale.toString()); config.setProperty("settings.videoDownload", String.valueOf(Defaults.videoDownload)); + config.setProperty("settings.gameExecutable", Defaults.getDefaultGameExecutable()); config.store(out, "Lazer exporter config"); out.close(); } @@ -210,6 +214,7 @@ private void invokeAlertBox(Alert.AlertType alertType, String title, String head alert.setTitle(title); alert.setHeaderText(headerText); alert.setContentText(content); + ((Button) (alert.getDialogPane().lookupButton(ButtonType.OK))).setText(Localizer.getLocalizedText("dialog.common.ok")); alert.showAndWait(); } diff --git a/src/com/ringosham/fxml/about.fxml b/src/com/ringosham/fxml/about.fxml index a1004e8..a27087c 100644 --- a/src/com/ringosham/fxml/about.fxml +++ b/src/com/ringosham/fxml/about.fxml @@ -34,7 +34,7 @@ -