51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DG.Tweening;
|
|
using Ichni.Menu;
|
|
using Ichni.Menu.UI;
|
|
using Ichni.RhythmGame;
|
|
using Ichni.UI;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.UI.Extensions;
|
|
|
|
namespace Ichni.Menu.UI
|
|
{
|
|
public partial class SongSelectionUIPage : UIPageBase
|
|
{
|
|
public Gradient2 backgroundFrames;
|
|
public float framePositionOffset = -1;
|
|
|
|
public SongListControllerUI songListController;
|
|
public PlaySongUI playSongUI;
|
|
public SongInfoUI songInfoUI;
|
|
public DifficultySelectionContainer difficultySelectionContainer;
|
|
public int currentSelectedDifficultyIndex;
|
|
|
|
|
|
|
|
private void Start()
|
|
{
|
|
|
|
currentSelectedDifficultyIndex = 0;
|
|
|
|
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();
|
|
}
|
|
}
|
|
|
|
public partial class SongSelectionUIPage
|
|
{
|
|
public SongItemData selectedSong;
|
|
public DifficultyData selectedDifficulty;
|
|
public SongStatusSave selectedSave;
|
|
}
|
|
} |