Merged changed from Croakfang's branch. (#72)

* merge (#71)

* Bug fix, improved UI layout and live vocals

* Bug Fixes, New Live Compatibility

---------

Co-authored-by: CroakFang <1605296300@qq.com>

* recovered shader functions

* Fixed texture loading for costume 0015

---------

Co-authored-by: CroakFang <1605296300@qq.com>
This commit is contained in:
katboi01
2024-09-09 10:27:37 +02:00
committed by GitHub
parent 4292484f25
commit 3b2bae40cd
23 changed files with 916 additions and 617 deletions
@@ -254,7 +254,7 @@ namespace Gallop.Live.Cutt
{
for (int i = thisList.Count - 1; i >= 0; i--)
{
if (currentTime >= (double)thisList[i].frame / 60)
if (currentTime >= thisList[i].FrameSecond)
{
thisTimeKeyIndex.index = i;
thisTimeKeyIndex.key = thisList[i];
@@ -285,7 +285,7 @@ namespace Gallop.Live.Cutt
{
if (thisTimeKeyIndex.nextKey != null)
{
if (currentTime >= (double)thisTimeKeyIndex.nextKey.frame / 60)
if (currentTime >= thisTimeKeyIndex.nextKey.FrameSecond)
{
thisTimeKeyIndex.index++;
thisTimeKeyIndex.key = thisList[thisTimeKeyIndex.index];
@@ -602,6 +602,19 @@ namespace Gallop.Live.Cutt
{
public int frame;
public LiveTimelineKeyAttribute attribute;
private double _framesecond = -999;
public double FrameSecond {
get{
if (_framesecond == -999)
{
_framesecond = (double)frame / 60;
}
return _framesecond;
}
set => _framesecond = value;
}
}
[System.Serializable]