Files
Assembly-CSharp/Assembly-CSharp/UnlockMusicWindow.cs
2026-06-12 12:58:31 +08:00

75 lines
1.7 KiB
C#

using System;
using DB;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
// Token: 0x020000E9 RID: 233
public class UnlockMusicWindow : EventWindowBase
{
// Token: 0x06000787 RID: 1927 RVA: 0x0001CACB File Offset: 0x0001BCCB
private void Awake()
{
this._infoText.text = CommonMessageID.GetWindowMusicUnlock.GetName();
}
// Token: 0x06000788 RID: 1928 RVA: 0x0001CADF File Offset: 0x0001BCDF
public void Set(Sprite jacket, string musicName)
{
this._jacket.sprite = jacket;
this._musicName.text = musicName;
}
// Token: 0x06000789 RID: 1929 RVA: 0x0001CAF9 File Offset: 0x0001BCF9
public void SetInfoText(string infoText)
{
this._infoText.text = infoText;
}
// Token: 0x0600078A RID: 1930 RVA: 0x0001CB08 File Offset: 0x0001BD08
public override void Play(Action onAction)
{
if (!this._isCallSkip)
{
this.Idle();
}
this._animator.Play("In2", 0, 0f);
this.IsCanSkip = true;
if (this._stateController == null && onAction != null)
{
if (!this._isCallSkip)
{
this._stateController = this._animator.GetBehaviour<StateAnimController>();
this._stateController.SetExitParts(onAction, this.HashCode, false);
return;
}
this._isCallSkip = false;
}
}
// Token: 0x0600078B RID: 1931 RVA: 0x0001CB85 File Offset: 0x0001BD85
public override bool Skip()
{
if (this.IsCanSkip)
{
this._isCallSkip = true;
this._animator.Play("Out", 0, 0f);
this.IsCanSkip = false;
return true;
}
return false;
}
// Token: 0x040005A4 RID: 1444
[SerializeField]
private Image _jacket;
// Token: 0x040005A5 RID: 1445
[SerializeField]
private TextMeshProUGUI _musicName;
// Token: 0x040005A6 RID: 1446
[SerializeField]
private TextMeshProUGUI _infoText;
}