Added audio files to list of loaded assets

This commit is contained in:
katboi01
2025-08-01 22:35:33 +02:00
parent d9b4686275
commit 37cd7d2ee3
5 changed files with 94 additions and 49 deletions
+20 -9
View File
@@ -1,15 +1,7 @@
using Gallop;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using Debug = UnityEngine.Debug;
public class PageManager : MonoBehaviour
{
@@ -61,6 +53,25 @@ public class PageManager : MonoBehaviour
}
}
public void RemoveEntry(Entry entry)
{
if (!ScrollRect) return;
if (SearchText)
SearchText.text = "";
Entries.Remove(entry);
totalPage = Mathf.CeilToInt(Entries.Count / (float)ShowCount);
if (currentPage > totalPage - 1)
{
currentPage = Mathf.Max(totalPage - 1, 0);
LoadPage(currentPage);
}
else
{
((Text)PageText.placeholder).text = $"{currentPage + 1} / {totalPage}";
}
}
public void ResetCtrl()
{
totalPage = 0;