feat(battle-engine): EffectType full enum + collection/card/vfx extension copies
Replaces partial EffectMgr.EffectType with all 226 decomp values; copies the IsNotNullOrEmpty/EquelsID/FindFromCardId/GetAllFuncVfxResults extension files + UI extensions; adds Renderer/MeshFilter shared-material/mesh/sortingOrder. Compile loop then closed the revealed deps (3242 files). 9.1k -> 18 errors.
This commit is contained in:
43
SVSim.BattleEngine/Engine/Wizard/UserListViewPlate.cs
Normal file
43
SVSim.BattleEngine/Engine/Wizard/UserListViewPlate.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using Cute;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class UserListViewPlate : UserPlateBase
|
||||
{
|
||||
[SerializeField]
|
||||
private UIButton _actionButton;
|
||||
|
||||
[SerializeField]
|
||||
private UILabel _actionButtonLabel;
|
||||
|
||||
[SerializeField]
|
||||
private GameObject _underLine;
|
||||
|
||||
public Action<UserInfoBase> OnAction { get; set; }
|
||||
|
||||
public void Initialize(UserInfoBase userInfo, string actionButtonLabel)
|
||||
{
|
||||
InitializeBase(userInfo);
|
||||
_actionButtonLabel.text = actionButtonLabel;
|
||||
_actionButton.onClick.Clear();
|
||||
_actionButton.onClick.Add(new EventDelegate(delegate
|
||||
{
|
||||
OnAction.Call(userInfo);
|
||||
}));
|
||||
}
|
||||
|
||||
public void SetUnderLine(bool visible)
|
||||
{
|
||||
if (_underLine != null)
|
||||
{
|
||||
_underLine.SetActive(visible);
|
||||
}
|
||||
}
|
||||
|
||||
public void SetButtonVisible(bool visible)
|
||||
{
|
||||
_actionButton.gameObject.SetActive(visible);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user