labels) {
- auto layout = ui.scrollAreaMissionDataContents->layout();
- for (auto label : labels) {
- layout->removeWidget(label);
- label->setParent(nullptr);
- }
- if (ui.scrollAreaMissionDataContents->children().isEmpty()) {
- ui.loMissionData->resume();
- ui.loMissionDataContainer->setVisible(true);
- ui.scrollAreaMissionData->setVisible(false);
- }
- });
- ui.scrollAreaMissionData->setVisible(false);
- ui.loMissionDataContainer->layout()->setAlignment(Qt::AlignCenter);
- auto randomLottie = lottieUtil->randomLottie();
- if (!randomLottie.isEmpty()) {
- ui.loMissionData->setSource(QUrl(randomLottie));
- }
-}
-
-void MainWindow::initBadSport()
-{
- connect(ui.btnRefreshBadSport, &QAbstractButton::clicked, this, [this]() {
- auto badSport = memoryUtil->getBadSport();
- ui.labBadSport->setText(QString::number(badSport));
- if (badSport < 30) {
- ui.labBadSport->setStyleSheet("color: green");
- } else if (badSport < 50) {
- ui.labBadSport->setStyleSheet("color: yellow");
- } else if (badSport >= 50) {
- ui.labBadSport->setStyleSheet("color: red");
- }
- });
-}
-
-void MainWindow::initDisplayInfoDialogData()
-{
- if (displayInfoDialog) {
- for (auto label : dataObserver->getDisplayLabels()) {
- if (!displayInfoDialog->containWidget(label)) {
- displayInfoDialog->addWidget(label);
- // label->setVisible(dataObserver->getMissionStrategy()->labelIsVisible(label));
- }
- }
- }
-}
-
void MainWindow::showDisplayInfo()
{
if (!topMostTimer) {
@@ -752,16 +602,6 @@ void MainWindow::updateTimerString(qint64 currentDateTime)
}
}
-void MainWindow::updateAutoTimerString(unsigned long long deltaTime)
-{
- unsigned int m, s, ms;
- QString t = getFormattedTime(deltaTime, &m, &s, &ms);
- ui.labAutoTimer->setText(t);
- if (displayInfoDialogIsShowing && displayInfoDialog) {
- displayInfoDialog->setAutoTime(m, s, ms);
- }
-}
-
void MainWindow::initTimerStateMachine()
{
// 设置 parent 后相当于已经 addState 了
diff --git a/EliteSpeedrunTool/MainWindow.h b/EliteSpeedrunTool/MainWindow.h
index e47a083..943f424 100644
--- a/EliteSpeedrunTool/MainWindow.h
+++ b/EliteSpeedrunTool/MainWindow.h
@@ -24,8 +24,6 @@ class MainWindow : public QMainWindow {
protected:
void closeEvent(QCloseEvent* event) override;
- void initTabEnabled();
-
void initGlobalDataConnects();
void checkUpdate();
@@ -42,14 +40,6 @@ class MainWindow : public QMainWindow {
void initCloseGameImmediately();
- void initAutoTimer();
-
- void initMissionData();
-
- void initBadSport();
-
- void initDisplayInfoDialogData();
-
void showDisplayInfo();
void hideDisplayInfo();
@@ -70,8 +60,6 @@ class MainWindow : public QMainWindow {
void updateTimerString(qint64 currentDateTime = QDateTime::currentDateTime().toMSecsSinceEpoch());
- void updateAutoTimerString(unsigned long long deltaTime);
-
void initTimerStateMachine();
void closeGameImmediately();
@@ -123,7 +111,7 @@ class MainWindow : public QMainWindow {
QString license = "" + QApplication::applicationDisplayName()
+ " v" + QApplication::applicationVersion() + "
"
- + tr("一个 GTAOL 精英、速通工具,支持快速启动防火墙、自动统计任务数据、计时等。本工具仅读取内存,不会修改任何内存。
")
+ + tr("一个 GTAOL 精英、速通工具,支持快速启动防火墙、计时、结束游戏等。
")
+ ""
+ tr("程序开发:SkyD666") + "
"
+ tr("游戏逆向:Zerkalo2147")
diff --git a/EliteSpeedrunTool/MainWindow.ui b/EliteSpeedrunTool/MainWindow.ui
index 7b3328e..7d8f05f 100644
--- a/EliteSpeedrunTool/MainWindow.ui
+++ b/EliteSpeedrunTool/MainWindow.ui
@@ -366,316 +366,6 @@