From 51f80eb081caf9281c6040ce7b5ffeb334af309f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Fri, 29 Jul 2022 15:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=8E=B7=E5=BE=97=E9=87=91?= =?UTF-8?q?=E5=90=91=E6=97=A5=E8=91=B5=E7=9A=84=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/state/screen.py | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/source/state/screen.py b/source/state/screen.py index e511110..6ae7290 100644 --- a/source/state/screen.py +++ b/source/state/screen.py @@ -84,7 +84,7 @@ class AwardScreen(tool.State): # 文字 # 标题处文字 font = pg.font.Font(c.FONT_PATH, 37) - title_text = font.render("您得到了新的战利品!", True, c.PARCHMENT_YELLOW) + title_text = font.render("您获得了新的战利品!", True, c.PARCHMENT_YELLOW) title_text_rect = title_text.get_rect() title_text_rect.x = 220 title_text_rect.y = 23 @@ -131,16 +131,38 @@ class AwardScreen(tool.State): # 显示向日葵奖杯的情况 if self.show_only_one_option: + # 绘制向日葵奖杯 if self.game_info[c.LITTLEGAME_COMPLETIONS]: frame_rect = (157, 0, 157, 269) + intro_title = "金向日葵奖杯" + intro_content = "您已通关所有关卡,获得此奖励!" else: frame_rect = (0, 0, 157, 269) + intro_title = "银向日葵奖杯" + intro_content = "您已完成冒险模式,获得此奖励!" sunflower_trophy_image = tool.get_image_menu(tool.GFX[c.TROPHY_SUNFLOWER], *frame_rect, scale=0.7) sunflower_trophy_rect = sunflower_trophy_image.get_rect() sunflower_trophy_rect.x = 348 - sunflower_trophy_rect.y = 110 + sunflower_trophy_rect.y = 108 self.image.blit(sunflower_trophy_image, sunflower_trophy_rect) + # 绘制介绍标题 + font = pg.font.Font(c.FONT_PATH, 22) + intro_title_img = font.render(intro_title, True, c.PARCHMENT_YELLOW) + intro_title_rect = intro_title_img.get_rect() + intro_title_rect.x = 333 + intro_title_rect.y = 305 + self.image.blit(intro_title_img, intro_title_rect) + + # 绘制介绍内容 + font = pg.font.Font(c.FONT_PATH, 15) + intro_content_img = font.render(intro_content, True, c.NAVYBLUE) + intro_content_rect = intro_content_img.get_rect() + intro_content_rect.x = 290 + intro_content_rect.y = 370 + self.image.blit(intro_content_img, intro_content_rect) + + def startup(self, current_time, persist): self.start_time = current_time self.persist = persist