diff --git a/CGAssistant/lang.qm b/CGAssistant/lang.qm
index cea2fbc..1566991 100644
Binary files a/CGAssistant/lang.qm and b/CGAssistant/lang.qm differ
diff --git a/CGAssistant/lang.ts b/CGAssistant/lang.ts
index 69a13d2..3878149 100644
--- a/CGAssistant/lang.ts
+++ b/CGAssistant/lang.ts
@@ -1000,12 +1000,12 @@ Chat database will not work properly.
@@ -1961,5 +1961,9 @@ Check "chrome://inspect" in chrome to debug the node process.
人物一定时间超过一定时间静止不动时自动停止脚本。
+
+
+ 静止超时时间:%1秒
+
diff --git a/CGAssistant/scriptform.cpp b/CGAssistant/scriptform.cpp
index 50295df..ce7255f 100644
--- a/CGAssistant/scriptform.cpp
+++ b/CGAssistant/scriptform.cpp
@@ -43,10 +43,18 @@ ScriptForm::ScriptForm(QWidget *parent) :
connect(m_node, &QProcess::errorOccurred, this, &ScriptForm::OnNodeStartError);
connect(m_node, SIGNAL(readyRead()), this, SLOT(OnNodeReadyRead()));
connect(m_node, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(OnNodeFinish(int, QProcess::ExitStatus)));
+ connect(ui->horizontalSlider_freezeDuration, SIGNAL(valueChanged(int)), this, SLOT(OnSetFreezeDuration(int)));
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(OnAutoRestart()));
timer->start(1000);
+
+ ui->label_freezeDuration->setText(tr("Freeze Duration: %1 s").arg( ui->horizontalSlider_freezeDuration->value() ));
+}
+
+void ScriptForm::OnSetFreezeDuration(int value)
+{
+ ui->label_freezeDuration->setText(tr("Freeze Duration: %1 s").arg(value));
}
void ScriptForm::dragEnterEvent(QDragEnterEvent *event)
diff --git a/CGAssistant/scriptform.h b/CGAssistant/scriptform.h
index e326094..0e35325 100644
--- a/CGAssistant/scriptform.h
+++ b/CGAssistant/scriptform.h
@@ -43,6 +43,7 @@ private slots:
void OnCloseWindow();
void OnAutoRestart();
void on_pushButton_suspend_clicked();
+ void OnSetFreezeDuration(int value);
private:
Ui::ScriptForm *ui;