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.
55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
using System;
|
|
using Cute;
|
|
|
|
namespace Wizard;
|
|
|
|
public class RefundWarningDialog
|
|
{
|
|
private const int PANEL_DEPTH = 25;
|
|
|
|
public static void Start(PaymentBase.RefundWarningType warningType, Action onFinish)
|
|
{
|
|
if (warningType == PaymentBase.RefundWarningType.NONE)
|
|
{
|
|
onFinish.Call();
|
|
return;
|
|
}
|
|
SystemText systemText = Data.SystemText;
|
|
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
|
|
dialogBase.SetPanelDepth(25);
|
|
if (warningType == PaymentBase.RefundWarningType.WARNING)
|
|
{
|
|
dialogBase.SetButtonLayout(DialogBase.ButtonLayout.BlueBtn_CancelBtn);
|
|
dialogBase.SetTitleLabel(systemText.Get("Shop_0215"));
|
|
dialogBase.SetText(systemText.Get("Shop_0216"));
|
|
dialogBase.SetButtonText(systemText.Get("Dia_BuyCrystal_004_Button"));
|
|
dialogBase.onPushButton1 = delegate
|
|
{
|
|
onFinish.Call();
|
|
};
|
|
dialogBase.onPushButton2 = delegate
|
|
{
|
|
OnPaymentCancel();
|
|
};
|
|
dialogBase.onCloseWithoutSelect = delegate
|
|
{
|
|
OnPaymentCancel();
|
|
};
|
|
}
|
|
else
|
|
{
|
|
dialogBase.SetButtonLayout(DialogBase.ButtonLayout.OkBtn);
|
|
dialogBase.SetTitleLabel(systemText.Get("Shop_0218"));
|
|
dialogBase.SetText(systemText.Get("Shop_0217"));
|
|
dialogBase.OnClose = delegate
|
|
{
|
|
OnPaymentCancel();
|
|
};
|
|
}
|
|
}
|
|
|
|
private static void OnPaymentCancel()
|
|
{
|
|
}
|
|
}
|