改动与优化

This commit is contained in:
FloatGaming
2026-07-20 22:19:25 +08:00
parent 0a0872c4f4
commit b5d1cdcbc5
83 changed files with 2475 additions and 276 deletions
+14 -2
View File
@@ -77,6 +77,7 @@ public class uRecentGameHistory : MonoBehaviour
GameObject instance = Instantiate(gameHistoryPrefab, gameHistoryParent);
instance.transform.localScale *= prefabScaleRatio;
previewEntries.Add(instance);
UI_OrderedEntryAnimator.PlaySingle(instance, i, 0.18f, 0.015f, -14f, 0.97f, true);
ghPrefab controller = instance.GetComponent<ghPrefab>();
if (controller == null)
{
@@ -92,6 +93,7 @@ public class uRecentGameHistory : MonoBehaviour
if (more_gameHistory != null)
{
more_gameHistory.SetActive(true);
UI_OrderedEntryAnimator.PlayRefresh(more_gameHistory, 0.18f, -10f, 0.985f, true);
}
if (dGameHistoryParent == null || gameHistoryPrefab == null)
@@ -118,6 +120,7 @@ public class uRecentGameHistory : MonoBehaviour
GameObject instance = Instantiate(gameHistoryPrefab, dGameHistoryParent);
detailEntries.Add(instance);
UI_OrderedEntryAnimator.PlaySingle(instance, i, 0.16f, 0.012f, -12f, 0.97f, true);
ghPrefab controller = instance.GetComponent<ghPrefab>();
if (controller == null)
@@ -131,11 +134,20 @@ public class uRecentGameHistory : MonoBehaviour
private void CloseDetailedHistory()
{
ClearEntries(detailEntries, dGameHistoryParent);
if (more_gameHistory != null)
{
more_gameHistory.SetActive(false);
UI_PanelExitUtility.PlayExitThen(more_gameHistory, () =>
{
ClearEntries(detailEntries, dGameHistoryParent);
if (more_gameHistory != null)
{
more_gameHistory.SetActive(false);
}
});
return;
}
ClearEntries(detailEntries, dGameHistoryParent);
}
private SongData FindSongById(int songId)