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:
47
SVSim.BattleEngine/Engine/Wizard/AdjustSendSettingDialog.cs
Normal file
47
SVSim.BattleEngine/Engine/Wizard/AdjustSendSettingDialog.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Cute;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class AdjustSendSettingDialog : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private UIToggle _toggle;
|
||||
|
||||
private bool _firstToggleCall = true;
|
||||
|
||||
public Action<bool> OnChange;
|
||||
|
||||
public static AdjustSendSettingDialog Create(GameObject prefab)
|
||||
{
|
||||
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
|
||||
SystemText systemText = Data.SystemText;
|
||||
dialogBase.SetButtonLayout(DialogBase.ButtonLayout.OkBtn);
|
||||
dialogBase.SetTitleLabel(systemText.Get("MyPage_0072"));
|
||||
dialogBase.SetText(systemText.Get("MyPage_0073"));
|
||||
dialogBase.SetSize(DialogBase.Size.M);
|
||||
AdjustSendSettingDialog component = UnityEngine.Object.Instantiate(prefab).GetComponent<AdjustSendSettingDialog>();
|
||||
dialogBase.SetObj(component.gameObject);
|
||||
return component;
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_toggle.value = Data.Load.data._userConfig.ArrowAdjustSend;
|
||||
_toggle.onChange.Add(new EventDelegate(delegate
|
||||
{
|
||||
OnChangeToggle();
|
||||
}));
|
||||
}
|
||||
|
||||
private void OnChangeToggle()
|
||||
{
|
||||
if (!_firstToggleCall)
|
||||
{
|
||||
GameMgr.GetIns().GetSoundMgr().PlaySe(_toggle.value ? Se.TYPE.SYS_TOGGLE_ON : Se.TYPE.SYS_TOGGLE_OFF);
|
||||
OnChange.Call(_toggle.value);
|
||||
}
|
||||
_firstToggleCall = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user