From d29421bf1c1a5a4a3db664111efe76ef446004b1 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期五, 20 三月 2026 16:24:28 +0800
Subject: [PATCH] 492 武将登场 实现招募历史滚动
---
Main/System/HeroDebut/HeroDebutCallHistoryOutCell.cs | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/Main/System/HeroDebut/HeroDebutCallHistoryOutCell.cs b/Main/System/HeroDebut/HeroDebutCallHistoryOutCell.cs
index 560240f..1fad1cb 100644
--- a/Main/System/HeroDebut/HeroDebutCallHistoryOutCell.cs
+++ b/Main/System/HeroDebut/HeroDebutCallHistoryOutCell.cs
@@ -3,15 +3,19 @@
public class HeroDebutCallHistoryOutCell : HeroDebutCallHistoryCell
{
- [SerializeField] ButtonEx clickButton;
[SerializeField] CanvasGroup canvasGroup;
- float[] alphas = new float[4] { 0.45f, 0.60f, 0.80f, 1f };
+
public override void Display(int index, List<HeroDebutGameRec> list)
{
base.Display(index, list);
- clickButton.SetListener(() => UIManager.Instance.OpenWindow<HeroDebutCallHistoryWin>());
+ }
- float alpha = alphas[index];
- canvasGroup.alpha = alpha;
+ // 鎻愪緵缁欏閮ㄨ缃�忔槑搴︾殑鏂规硶
+ public void SetAlpha(float alpha)
+ {
+ if (canvasGroup != null)
+ {
+ canvasGroup.alpha = alpha;
+ }
}
}
--
Gitblit v1.8.0