From d2586faf13d7675c721a843764a42ae9a369cce7 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 2 Sep 2020 20:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E6=95=B0=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/img.lua | 1 + image/mess/life.png | Bin 0 -> 330 bytes parts/player.lua | 5 +++++ 3 files changed, 6 insertions(+) create mode 100644 image/mess/life.png diff --git a/Zframework/img.lua b/Zframework/img.lua index 5046079d..a8f5fc41 100644 --- a/Zframework/img.lua +++ b/Zframework/img.lua @@ -4,6 +4,7 @@ local IMG={ title_color="mess/title_colored.png", dialCircle="mess/dialCircle.png", dialNeedle="mess/dialNeedle.png", + lifeIcon="mess/life.png", badgeIcon="mess/badge.png", spinCenter="mess/spinCenter.png", ctrlSpeedLimit="mess/ctrlSpeedLimit.png", diff --git a/image/mess/life.png b/image/mess/life.png new file mode 100644 index 0000000000000000000000000000000000000000..f04c2dfb9e0231a236baa491cfaf57661f3dee16 GIT binary patch literal 330 zcmV-Q0k!^#P)s+k_^RW++29gJF%MMQ91C_M&%sL`6vbWTMj|n zG9;W4n%S{fbN=jTBJ1)pKr{oGnY$)l*o~q0Ml+1L7{gmY??w^GkcGbHVbrMecKf2t cfBv++0s3T%+4;DC$^ZZW07*qoM6N<$f<~*01^@s6 literal 0 HcmV?d00001 diff --git a/parts/player.lua b/parts/player.lua index 02f0ca94..e9e8b0b6 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -836,6 +836,11 @@ local function Pdraw_norm(P) gc.setColor(1,1,1) gc.draw(drawableText.bpm,390,480) gc.draw(drawableText.kpm,344,573) + if P.life>0 then + for i=1,P.life do + gc.draw(IMG.lifeIcon,300+25*i,595,nil,.7) + end + end mStr(format("%.2f",P.stat.time),-81,518)--Time mStr(P.score1,-81,560)--Score