1

feat: меню "о программе"

This commit is contained in:
2025-02-27 16:13:20 +03:00
parent fbda5eebcd
commit 9d36ba6d6d
2 changed files with 20 additions and 5 deletions

View File

@@ -6,10 +6,7 @@ import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.MenuItem;
import javafx.scene.control.TreeItem;
import javafx.scene.control.TreeView;
import javafx.scene.control.*;
import javafx.stage.*;
import lombok.Setter;
import ru.di9.ss14.extractor.ContentDbManager;
@@ -101,6 +98,21 @@ public class MainController implements Initializable {
});
}
public void onClickAboutMenu() {
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setTitle("О программе");
alert.setHeaderText(null);
alert.setContentText("""
-- SS14: Content Extractor --
Автор: Voomra, 2025
Версия: 1.0
Программа предназначена для выгрузки загруженного через "Space Station 14 Launcher" контента.
""");
alert.showAndWait();
}
private void createTreeItems(TreeItem<String> parentItem, SortedSet<ContentRec> sortedSet) {
sortedSet.forEach(contentRec -> {
var fileItem = new TreeItemExt<>(