Authored Unity primitive/object-model shim, VFX layer (control-flow-preserving, InstantVfx never invokes its action -- headless suppression), god-object stubs (GameMgr/EffectMgr/UIManager with faithfully-extracted nested enums), View/UI/Touch tree, LitJson+BetterList+Tuple copied, third-party stubs. Discovered Roslyn header-error masking: fixing class-header type errors unmasks body references, so the true copy closure is ~2570 files (was 782 under masking). Errors: masked-25720 -> 268; our shim files compile clean. Remaining: ~50 residual shim/external types, 24 NGUI UI-base overrides, static-type fixes, plus likely 1-2 more unmask waves.
54 lines
1.3 KiB
C#
54 lines
1.3 KiB
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
namespace Wizard;
|
|
|
|
public class SpotCardExchangeDialog : MonoBehaviour
|
|
{
|
|
private const int EXCHANGE_DIALOG_DEPTH = 900;
|
|
|
|
[SerializeField]
|
|
private SpotCardExchange _spotCardExchangeOriginal;
|
|
|
|
public void CreateSpotCardExchangeDialog()
|
|
{
|
|
if (FirstTips.IsFirstTipsOpen(FirstTips.TipsType.SpotCardExchange))
|
|
{
|
|
CreateDialogWithFirstTips();
|
|
}
|
|
else
|
|
{
|
|
CreateDialog();
|
|
}
|
|
}
|
|
|
|
private void CreateDialog()
|
|
{
|
|
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
|
|
dialogBase.SetSize(DialogBase.Size.XL);
|
|
dialogBase.SetTitleLabel(Data.SystemText.Get("Shop_0149"));
|
|
dialogBase.SetLayer("MyPage");
|
|
dialogBase.SetPanelDepth(900);
|
|
SpotCardExchange spotCardExchange = Object.Instantiate(_spotCardExchangeOriginal);
|
|
dialogBase.SetObj(spotCardExchange.gameObject);
|
|
spotCardExchange.Init();
|
|
}
|
|
|
|
private void CreateDialogWithFirstTips()
|
|
{
|
|
UIManager.GetInstance().StartFirstTips(FirstTips.TipsType.SpotCardExchange);
|
|
StartCoroutine(CreateDialogAfterOpenFirstTips());
|
|
}
|
|
|
|
private IEnumerator CreateDialogAfterOpenFirstTips()
|
|
{
|
|
UIManager uiMgr = UIManager.GetInstance();
|
|
while (!uiMgr.IsActiveFirstTips())
|
|
{
|
|
yield return null;
|
|
}
|
|
yield return new WaitForSeconds(0.5f);
|
|
CreateDialog();
|
|
}
|
|
}
|