Refactor: Moved settings panels to their own classes (#89)

This should not affect any functionalities
This commit is contained in:
katboi01
2025-07-12 13:36:19 +02:00
committed by GitHub
parent 204752d7d6
commit e32a38c6c7
28 changed files with 1234 additions and 1318 deletions
+3 -3
View File
@@ -27,10 +27,10 @@ namespace uGIF
{
bytes = null;
stop = false;
UmaViewerUI.Instance.GifButton.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Recording...";
UmaViewerUI.Instance.ScreenshotSettings.GifButton.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Recording...";
yield return new WaitForSeconds(0.1f);
yield return _Encode(fps, quality);
UmaViewerUI.Instance.GifButton.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Saving gif...";
UmaViewerUI.Instance.ScreenshotSettings.GifButton.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Saving gif...";
yield return new WaitForSeconds(0.1f);
yield return WaitForBytes();
}
@@ -52,7 +52,7 @@ namespace uGIF
UmaViewerUI.Instance.ShowMessage($"GIF saved: {fullpath}", UIMessageType.Success);
Frames.Clear();
stop = false;
UmaViewerUI.Instance.GifButton.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Record GIF";
UmaViewerUI.Instance.ScreenshotSettings.GifButton.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Record GIF";
}
public IEnumerator _Encode (float fps, int quality)