|
@@ -47,6 +47,9 @@ StatusWidget::StatusWidget(QWidget *parent)
|
|
|
|
|
|
connect(&PatchInstaller::instance(), &PatchInstaller::videosDownloadProgressChanged, this, &StatusWidget::onPatchInstallerVideoProgressChanged);
|
|
connect(&PatchInstaller::instance(), &PatchInstaller::videosDownloadProgressChanged, this, &StatusWidget::onPatchInstallerVideoProgressChanged);
|
|
|
|
|
|
|
|
+ connect(&PatchInstaller::instance(), &PatchInstaller::initializationStarted, this, [this](){
|
|
|
|
+ setToolTipMessage("Инициализация файлов игры...", E_INFO);
|
|
|
|
+ });
|
|
connect(&PatchInstaller::instance(), &PatchInstaller::successfullyInitialized, this, &StatusWidget::showComponentsStatus);
|
|
connect(&PatchInstaller::instance(), &PatchInstaller::successfullyInitialized, this, &StatusWidget::showComponentsStatus);
|
|
connect(&PatchInstaller::instance(), &PatchInstaller::successfullyInitialized, this, [this](){updateButtonStatus();});
|
|
connect(&PatchInstaller::instance(), &PatchInstaller::successfullyInitialized, this, [this](){updateButtonStatus();});
|
|
connect(&PatchInstaller::instance(), &PatchInstaller::updatedByGameStatusChanged, this, [this](bool updated){_need_to_forcely_patch = updated; updateButtonStatus();});
|
|
connect(&PatchInstaller::instance(), &PatchInstaller::updatedByGameStatusChanged, this, [this](bool updated){_need_to_forcely_patch = updated; updateButtonStatus();});
|
|
@@ -66,6 +69,7 @@ StatusWidget::StatusWidget(QWidget *parent)
|
|
_components_status_opacity_animation->setDuration(1000);
|
|
_components_status_opacity_animation->setDuration(1000);
|
|
|
|
|
|
ui->b_components_status->setGraphicsEffect(_components_status_opacity_effect);
|
|
ui->b_components_status->setGraphicsEffect(_components_status_opacity_effect);
|
|
|
|
+ setToolTipMessage("Запускаем Наследие...", E_INFO);
|
|
}
|
|
}
|
|
|
|
|
|
StatusWidget::~StatusWidget()
|
|
StatusWidget::~StatusWidget()
|
|
@@ -153,7 +157,9 @@ void StatusWidget::onErrorStatusChanged(AppErrorStatus status)
|
|
_need_to_repair_game_files = false;
|
|
_need_to_repair_game_files = false;
|
|
updateButtonStatus();
|
|
updateButtonStatus();
|
|
return;
|
|
return;
|
|
- } else if (status == E_PATCHED_BY_OLD_LEGACY) {
|
|
|
|
|
|
+ } else if (status == E_LOTRO_RUNNING) {
|
|
|
|
+ init_error_type_message = "Закройте игру Властелин Колец Онлайн, чтобы продолжить работу русификатора.";
|
|
|
|
+ } if (status == E_PATCHED_BY_OLD_LEGACY) {
|
|
_need_to_repair_game_files = true;
|
|
_need_to_repair_game_files = true;
|
|
updateButtonStatus();
|
|
updateButtonStatus();
|
|
init_error_type_message = "Некоторые файлы игры несовместимы с этой версией Наследия.\nНажмите на кнопку \"Исправить\", чтобы запустить лаунчер игры, который автоматически скачает нужные файлы.";
|
|
init_error_type_message = "Некоторые файлы игры несовместимы с этой версией Наследия.\nНажмите на кнопку \"Исправить\", чтобы запустить лаунчер игры, который автоматически скачает нужные файлы.";
|
|
@@ -177,7 +183,7 @@ void StatusWidget::onErrorStatusChanged(AppErrorStatus status)
|
|
} else if (status == E_DAT_FILE_INCORRECT) {
|
|
} else if (status == E_DAT_FILE_INCORRECT) {
|
|
_need_to_repair_game_files = true;
|
|
_need_to_repair_game_files = true;
|
|
updateButtonStatus();
|
|
updateButtonStatus();
|
|
- init_error_type_message = "Некоторые файлы игры несовместимы с этой версией Наследия.\nНажмите на кнопку \"Исправить\", чтобы запустить лаунчер игры, который автоматически скачает нужные файлы.";
|
|
|
|
|
|
+ init_error_type_message = "Не удалось открыть файлы игры.\nНажмите на кнопку \"Исправить\", чтобы запустить лаунчер игры, который заново скачает нужные файлы.";
|
|
} else if (status == E_NO_SERVER_CONNECTION) {
|
|
} else if (status == E_NO_SERVER_CONNECTION) {
|
|
_need_to_repair_game_files = false;
|
|
_need_to_repair_game_files = false;
|
|
updateButtonStatus();
|
|
updateButtonStatus();
|