Skip to content

Commit

Permalink
v1.17.0
Browse files Browse the repository at this point in the history
* Add config file to store config, including:
** Blur search, coloring cards configs.
** Last opening file, Window size, selecting operation.
* Add showing rename target on buttom.
* Add showing effect buttom of selecting card.
* Update UI so as to show more card effect.
* Update cdb.
* Update mirror.
* Update code naming.
* Fix crash of removing cards from target list.
* Fix wrong field making after inserting operation.
* Fix warning message of RGB of label and float frame size.
  • Loading branch information
Wind2009-Louse committed Aug 27, 2020
1 parent 17d28d8 commit 7aa1138
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 135 deletions.
9 changes: 4 additions & 5 deletions about.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@


class UI_About(QWidget):
def __init__(self, idx=12, parent=None):
self.last_version_idx = idx
def __init__(self, ver_idx = 12, ver_name="v1.12.0", parent=None):
self.last_version_idx = ver_idx
self.parent = parent

super(UI_About, self).__init__()
Expand All @@ -18,8 +18,7 @@ def __init__(self, idx=12, parent=None):

self.label = QLabel(self)
self.label.setGeometry(QRect(10, 10, 211, 21))
ver_str = str(idx)
self.label.setText('Duel Editor v1.%s.%s'%(ver_str[0:-1], ver_str[-1]))
self.label.setText('Duel Editor %s'%ver_name)
self.label.setTextInteractionFlags(Qt.TextBrowserInteraction)
self.label_2 = QLabel(self)
self.label_2.setGeometry(QRect(10, 30, 211, 21))
Expand All @@ -38,7 +37,7 @@ def check_update(self):
self.label_3.setText("检查更新中……")
QApplication.processEvents()
try:
url = "https://raw.githubusercontent.com/Wind2009-Louse/DuelEditor/master/version.json"
url = "https://github.wuyanzheshui.workers.dev/Wind2009-Louse/DuelEditor/raw/master/version.json"
json_result = json.loads(requests.get(url, timeout=5).content.decode("utf-8", errors="ignore"))
if json_result["version"] > self.last_version_idx:
self.label_3.setText("当前有最新版本:%s"%json_result["name"])
Expand Down
Binary file modified cards.cdb
Binary file not shown.
Loading

0 comments on commit 7aa1138

Please sign in to comment.