30 lines
737 B
C#
30 lines
737 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
using Vocaluxe.Base;
|
|
using Vocaluxe.Lib.Song;
|
|
|
|
namespace Vocaluxe.GameModes
|
|
{
|
|
class CGameModeShortSong : CGameMode
|
|
{
|
|
public override void Init()
|
|
{
|
|
base.Init();
|
|
|
|
_Initialized = true;
|
|
}
|
|
|
|
protected override void SongManipulation(int SongIndex)
|
|
{
|
|
CSong song = CSongs.AllSongs[_SongQueque[SongIndex].SongID];
|
|
|
|
song.Finish = CGame.GetTimeFromBeats(song.ShortEnd, song.BPM) + CSettings.DefaultMedleyFadeOutTime + song.Gap;
|
|
|
|
// set lines to medley mode
|
|
song.Notes.SetMedley(song.Notes.GetLines(0).Line[0].FirstNoteBeat, song.ShortEnd);
|
|
}
|
|
}
|
|
}
|