From ad985552ccfd6b9f7c67b9ae773a904953891df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Wed, 11 May 2022 20:34:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=A9=E7=9F=AD=E5=8D=A1=E7=89=87=E9=97=B4?= =?UTF-8?q?=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/menubar.py | 2 +- source/constants.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/menubar.py b/source/component/menubar.py index 9ab3741..bcc8e3f 100755 --- a/source/component/menubar.py +++ b/source/component/menubar.py @@ -361,7 +361,7 @@ class Panel(): def setupCards(self, card_list): self.card_list = [] x = c.PANEL_X_START - c.PANEL_X_INTERNAL - y = c.PANEL_Y_START + 43 - c.PANEL_Y_INTERNAL + y = c.PANEL_Y_START + 38 - c.PANEL_Y_INTERNAL for i, index in enumerate(card_list): if i % 8 == 0: x = c.PANEL_X_START - c.PANEL_X_INTERNAL diff --git a/source/constants.py b/source/constants.py index f12c384..e491261 100755 --- a/source/constants.py +++ b/source/constants.py @@ -162,7 +162,7 @@ CARD_POOL = 'card_pool' # 关于植物栏的像素设置 PANEL_Y_START = 87 PANEL_X_START = 22 -PANEL_Y_INTERNAL = 73 +PANEL_Y_INTERNAL = 69 PANEL_X_INTERNAL = 53 BAR_CARD_X_INTERNAL = 51 CARD_MAX_NUM = 10 # 这里以后可以增加解锁功能,从最初的6格逐渐解锁到10格