Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit 8fe68e3

Browse files
committed
2 parents 791c191 + f65e1c8 commit 8fe68e3

File tree

5 files changed

+22
-11
lines changed

5 files changed

+22
-11
lines changed

Error_Window.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def setupUi(self, Form):
4949
self.retranslateUi(Form)
5050

5151
QMetaObject.connectSlotsByName(Form)
52+
5253
# setupUi
5354

5455
def retranslateUi(self, Form):

YouLose.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import argparse
22
import sys
33

4-
from PySide2 import QtWidgets
4+
from PySide2 import QtWidgets, QtGui, QtCore
55
from PySide2.QtCore import Qt
66
from PySide2.QtGui import QFontDatabase, QPixmap
77
from PySide2.QtWidgets import QSplashScreen
@@ -35,8 +35,17 @@ def __init__(self):
3535
app = QtWidgets.QApplication()
3636
pixmap = QPixmap("Launcher Asset/Logo_Splash.png")
3737
splash = QSplashScreen(pixmap)
38+
splashlabel = QtWidgets.QLabel(splash)
39+
splashgif = QtGui.QMovie("Launcher Asset/Logo_Splash.gif")
40+
splashlabel.setMovie(splashgif)
41+
splashgif.start()
3842
splash.show()
3943
splash.showMessage("Thanks for playing", Qt.AlignBottom, Qt.black)
44+
delayTime = 1.3
45+
timer = QtCore.QElapsedTimer()
46+
timer.start()
47+
while timer.elapsed() < delayTime * 1000:
48+
app.processEvents()
4049
window = MainWindow()
4150
window.show()
4251
splash.finish(window)

cc_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ def play(self):
224224
splash.show()
225225
splash.showMessage("Magician makes our game suck...", Qt.AlignBottom, Qt.black)
226226
delayTime = 1.3
227-
timer=QtCore.QElapsedTimer()
227+
timer = QtCore.QElapsedTimer()
228228
timer.start()
229-
while timer.elapsed()<delayTime * 1000:
229+
while timer.elapsed() < delayTime * 1000:
230230
app.processEvents()
231231
window = MainWindow_cc()
232232
window.show()

cc_main_localization.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
def set_hant(self):
2-
self.ui.cc1.setText("選弓箭手")
3-
self.ui.cc2.setText("選騎士")
2+
self.ui.cc1.setText("弓箭手")
3+
self.ui.cc2.setText("騎士")
44
self.ui.play.setText("開始遊戲")
55
self.ui.cc3.setText("法師")
66
self.ui.cc4.setText("刺客")
@@ -15,11 +15,11 @@ def set_hant(self):
1515

1616

1717
def set_hans(self):
18-
self.ui.cc1.setText("选弓箭手")
19-
self.ui.cc2.setText("选骑士")
18+
self.ui.cc1.setText("弓箭手")
19+
self.ui.cc2.setText("骑士")
2020
self.ui.play.setText("开始游戏")
21-
self.ui.cc3.setText("选法师")
22-
self.ui.cc4.setText("选刺客")
21+
self.ui.cc3.setText("法师")
22+
self.ui.cc4.setText("刺客")
2323
self.ui.Archer.setText("弓箭手")
2424
self.ui.Knight.setText("骑士")
2525
self.ui.Magician.setText("法师")

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def CheckPyInstaller():
7171
else:
7272
print("pass")
7373

74-
except Exception:
74+
except:
7575
print("[ERROR] Unknown game error, please report to developer.")
7676
import pygame
7777

@@ -81,7 +81,8 @@ def CheckPyInstaller():
8181
date = datetime.utcnow().strftime("%Y-%m-%d_%H.%M.%S")
8282
if not os.path.exists("ErrorLog"):
8383
os.mkdir("ErrorLog")
84-
with open("ErrorLog/traceback_{}_lv.{}.txt".format(date, lvl), "w") as f:
84+
with open("ErrorLog/traceback_{}_lv.{}.txt".format(date, lvl), "a") as f:
85+
f.write("Error Occurred on lv." + str(lvl) + "\n\n")
8586
f.write(error_data)
8687
if CheckPyInstaller():
8788
subprocess.call("ErrorWindow.exe")

0 commit comments

Comments
 (0)