From 111065c4a7dfa874cfaaeca8edc5b8693d1c3b66 Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Wed, 27 Jul 2022 23:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=8F=91=E8=AE=A1?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ source/component/menubar.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 28ea746..dfa8310 100644 --- a/README.md +++ b/README.md @@ -281,6 +281,8 @@ pyinstaller -F pypvz.py ` * 增加部分音效 * 如爆炸、打击等 * 自0.6.9已部分实现 +* 增加关卡前的本关僵尸预览 +* 鼠标移动到植物上时显示部分信息,类似图鉴功能 ## 截屏 diff --git a/source/component/menubar.py b/source/component/menubar.py index 61fffd4..b5919ad 100755 --- a/source/component/menubar.py +++ b/source/component/menubar.py @@ -34,6 +34,8 @@ class Card(): self.rect = self.orig_image.get_rect() self.rect.x = x self.rect.y = y + # 计划以后以此坐标进行相对变化,用字体绘制阳光消耗大小,不再采用现在的图片包含阳光方法 + # 以便减小程序体积并增加可维护性 self.index = index self.sun_cost = c.PLANT_CARD_INFO[index][c.SUN_INDEX]