Ver Fonte

!2 fix gui bug

pcacc há 5 meses atrás
pai
commit
f56b8eefa7
2 ficheiros alterados com 10 adições e 3 exclusões
  1. 1 0
      scriptBase/comon.py
  2. 9 3
      templates/index_dongri.html

+ 1 - 0
scriptBase/comon.py

@@ -173,6 +173,7 @@ def waitClickImg_withBool(imgPath, waitTime, preWaitTime):
 def myTimeSleep(curTime , FunStatus=None):
     tmpTime = curTime * 1000
     randomTime = random.randint(int(tmpTime - tmpTime / 9), int(tmpTime + tmpTime / 9)) / 1000
+    randomTime = round(randomTime, 2)
     while randomTime > 10:
         time.sleep(10)
         randomTime -= 10

+ 9 - 3
templates/index_dongri.html

@@ -9,6 +9,10 @@
             display: flex;
             flex-direction: row;
         }
+        .checkbox-container {
+            display: flex;
+            flex-direction: column;
+        }
         .status-container {
             display: flex;
             flex-direction: row;
@@ -37,9 +41,11 @@
         <div id="status_message" style="border: 1px solid #ccc; padding: 10px; margin-top: 10px;"></div>
         <h3>任务列表:</h3>
         <div id="hint_message"></div>
-        <label><input type="checkbox" id="maxCollectCheckbox"> 是否最大收集</label>
-        <label><input type="checkbox" id="JiNaCheckbox"> 是否吉娜</label>
-        <label><input type="checkbox" id="SimpleCheckbox"> 是否小号</label>
+        <div class="checkbox-container">
+            <label><input type="checkbox" id="maxCollectCheckbox"> 是否最大收集</label>
+            <label><input type="checkbox" id="JiNaCheckbox"> 是否吉娜</label>
+            <label><input type="checkbox" id="SimpleCheckbox"> 是否小号</label>
+        </div>
         <button class="custom-button" id="atuo_btn" onclick="begin_paticipate()">自动集结</button>
         <button class="custom-button" id="resetScript_btn" onclick="reset_script()">重置脚本</button>
         <button class="custom-button" id="restartgame_btn" onclick="restart_game()">重新关闭并自动游戏</button>