From b1f563baf133970072352ffac24af2f5cac2f9c0 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Fri, 23 May 2025 11:29:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BE=AE=E8=B0=83=E5=AD=98=E8=AF=BB?= =?UTF-8?q?=E6=A1=A3=E8=83=8C=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ui.js b/libs/ui.js index c0e13b2c..1bea0d5c 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -3075,9 +3075,12 @@ ui.prototype._drawSLPanel_draw = function (page, max_page) { } ui.prototype._drawSLPanel_drawBackground = function () { + let backGroundStyle = 'black'; + if (core.status.event.id === 'save') backGroundStyle = 'rgb(75, 0, 130)'; + else if (core.status.event.id === 'load') backGroundStyle = 'rgb(173, 216, 230)'; core.clearMap('ui'); core.setAlpha('ui', 0.85); - core.fillRect('ui', 0, 0, this.PIXEL, this.PIXEL, '#000000');//可改成背景图图 + core.fillRect('ui', 0, 0, this.PIXEL, this.PIXEL, backGroundStyle); //可改成背景图 core.setAlpha('ui', 1); }