2025-06-14 14:42:49 -04:00
|
|
|
using System;
|
2025-06-03 02:42:28 -04:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2025-07-21 05:42:20 -04:00
|
|
|
using DG.Tweening;
|
2025-06-14 14:42:49 -04:00
|
|
|
using Ichni.Menu;
|
|
|
|
|
using Ichni.Menu.UI;
|
|
|
|
|
using Ichni.UI;
|
2025-07-10 08:42:30 -04:00
|
|
|
using Sirenix.OdinInspector;
|
2025-06-03 02:42:28 -04:00
|
|
|
using UnityEngine;
|
2025-07-21 05:42:20 -04:00
|
|
|
using UnityEngine.Serialization;
|
2025-07-08 14:28:40 -04:00
|
|
|
using UnityEngine.UI;
|
2025-07-21 05:42:20 -04:00
|
|
|
using UnityEngine.UI.Extensions;
|
2025-06-03 02:42:28 -04:00
|
|
|
|
2025-07-08 14:28:40 -04:00
|
|
|
namespace Ichni.Menu.UI
|
2025-06-03 02:42:28 -04:00
|
|
|
{
|
2025-07-21 05:42:20 -04:00
|
|
|
public partial class SongSelectionUIPage : UIPageBase
|
2025-06-03 02:42:28 -04:00
|
|
|
{
|
2025-07-21 05:42:20 -04:00
|
|
|
public Gradient2 backgroundFrames;
|
|
|
|
|
public float framePositionOffset = -1;
|
|
|
|
|
|
2025-07-10 08:42:30 -04:00
|
|
|
public SongListControllerUI songListController;
|
2025-07-21 05:42:20 -04:00
|
|
|
public PlaySongUI playSongUI;
|
|
|
|
|
public SongInfoUI songInfoUI;
|
|
|
|
|
public DifficultySelectionContainer difficultySelectionContainer;
|
|
|
|
|
public int currentSelectedDifficultyIndex;
|
2025-06-14 14:42:49 -04:00
|
|
|
|
2025-07-21 05:42:20 -04:00
|
|
|
public AK.Wwise.Switch defaultSwitch;
|
2025-07-08 14:28:40 -04:00
|
|
|
|
2025-07-21 05:42:20 -04:00
|
|
|
private void Awake()
|
2025-06-14 14:42:49 -04:00
|
|
|
{
|
2025-07-10 08:42:30 -04:00
|
|
|
MenuAudioManager.instance.audioContainer.SetSwitch(defaultSwitch);
|
2025-07-21 05:42:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
|
{
|
|
|
|
|
currentSelectedDifficultyIndex = 0;
|
2025-07-08 14:28:40 -04:00
|
|
|
|
2025-07-21 05:42:20 -04:00
|
|
|
Sequence framesSeq = DOTween.Sequence();
|
|
|
|
|
framesSeq.Append(DOTween.To(() => framePositionOffset, x => framePositionOffset = x, 1f, 1f)
|
|
|
|
|
.SetEase(Ease.Linear)
|
|
|
|
|
.OnUpdate(() => backgroundFrames.Offset = framePositionOffset));
|
|
|
|
|
framesSeq.AppendInterval(4f);
|
|
|
|
|
framesSeq.SetLoops(-1, LoopType.Restart);
|
|
|
|
|
framesSeq.Play();
|
2025-06-14 14:42:49 -04:00
|
|
|
}
|
2025-06-03 02:42:28 -04:00
|
|
|
}
|
2025-07-21 05:42:20 -04:00
|
|
|
|
|
|
|
|
public partial class SongSelectionUIPage
|
|
|
|
|
{
|
|
|
|
|
public SongItemData selectedSong;
|
|
|
|
|
public DifficultyData selectedDifficulty;
|
|
|
|
|
}
|
2025-06-03 02:42:28 -04:00
|
|
|
}
|