feat(crash): notify feedback when game crashed.

This commit is contained in:
huanghongxun
2021-09-28 17:23:07 +08:00
parent ee89815628
commit 754ecadbb1
4 changed files with 7 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ public class GameCrashWindow extends Stage {
private final StringProperty arch = new SimpleStringProperty(Architecture.SYSTEM_ARCHITECTURE);
private final StringProperty reason = new SimpleStringProperty(i18n("game.crash.reason.unknown"));
private final BooleanProperty loading = new SimpleBooleanProperty();
private final Label feedbackLabel = new Label(i18n("game.crash.feedback"));
private final ManagedProcess managedProcess;
private final DefaultGameRepository repository;
@@ -163,6 +164,8 @@ public class GameCrashWindow extends Stage {
} else {
reason.set(i18n("game.crash.reason.unknown"));
}
feedbackLabel.setVisible(true);
} else {
reason.set(reasonText.toString());
}
@@ -328,7 +331,7 @@ public class GameCrashWindow extends Stage {
toolBar.setPadding(new Insets(8));
toolBar.setSpacing(8);
toolBar.getStyleClass().add("jfx-tool-bar");
toolBar.getChildren().setAll(exportGameCrashInfoButton, logButton);
toolBar.getChildren().setAll(exportGameCrashInfoButton, logButton, feedbackLabel);
}
getChildren().setAll(titlePane, infoPane, gameDirPane, toolBar);

View File

@@ -321,6 +321,7 @@ folder.saves=Saves
folder.screenshots=Screenshots
game=Game
game.crash.feedback=Is the problem so common, but we didn't figure out the reason? Give us feedback in the feedback page!
game.crash.info=Game Status
game.crash.reason=Crash Analyzer
game.crash.reason.analyzing=Analyzing...

View File

@@ -321,6 +321,7 @@ folder.saves=遊戲存檔資料夾
folder.screenshots=截圖資料夾
game=遊戲
game.crash.feedback=查看了日誌發現問題很常見?在回饋頁面提交回饋豐富崩潰分析系統!
game.crash.info=遊戲訊息
game.crash.reason=崩潰原因
game.crash.reason.analyzing=分析中...

View File

@@ -321,6 +321,7 @@ folder.saves=存档文件夹
folder.screenshots=截图文件夹
game=游戏
game.crash.feedback=查看了日志发现问题很常见?在反馈页面提交反馈丰富崩溃分析系统!
game.crash.info=游戏信息
game.crash.reason=崩溃原因
game.crash.reason.analyzing=分析中...