From 2c44b7b2fb4b68d425ca67922c122f62292c2923 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 27 一月 2026 11:20:36 +0800
Subject: [PATCH] 437 子 【方案】方案预设 / 【方案】方案预设-客户端
---
Main/System/FuncPreset/FuncPresetWin.cs | 2 ++
Main/System/Mingge/MinggeItemCell.cs | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Main/System/FuncPreset/FuncPresetWin.cs b/Main/System/FuncPreset/FuncPresetWin.cs
index f297401..97b218a 100644
--- a/Main/System/FuncPreset/FuncPresetWin.cs
+++ b/Main/System/FuncPreset/FuncPresetWin.cs
@@ -1,4 +1,5 @@
using System.Linq;
+using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;
@@ -52,6 +53,7 @@
void OnFuncPresetUseDataEvent(int type)
{
Display();
+ UIUtility.ForceRefreshLayout(layout).Forget();
}
void Display()
diff --git a/Main/System/Mingge/MinggeItemCell.cs b/Main/System/Mingge/MinggeItemCell.cs
index f794e23..e464253 100644
--- a/Main/System/Mingge/MinggeItemCell.cs
+++ b/Main/System/Mingge/MinggeItemCell.cs
@@ -56,7 +56,8 @@
loopEffect.Stop();
}
//鐗规晥鍙傝�冨昂瀵�106*150 鍚屾瘮渚嬬缉鏀�
- loopEffect.transform.localScale = new Vector3(1, 0.76f, 1);
+ var rect = bgIcon.GetComponent<RectTransform>();
+ loopEffect.transform.localScale = new Vector3(rect.sizeDelta.x / 106f, rect.sizeDelta.y / 150f, 1);
}
}
--
Gitblit v1.8.0