SHA256
Refactor FFmpegDownloadUI
This commit is contained in:
1 parent
a47cb39f17
commit
d8712c971e
2 files changed
+12
-6
No files matched your search
@@ -88,7 +88,7 @@ namespace ADOFAIRenderer.UI
|
||||
private static TMP_FontAsset GetNanumSquareNeoBdFontAsset()
|
||||
{
|
||||
TMP_FontAsset? font = null;
|
||||
if (RenderMod.FontBundle != null)
|
||||
if (RenderMod.FontBundle)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -118,7 +118,7 @@ namespace ADOFAIRenderer.UI
|
||||
font = Resources.Load<TMP_FontAsset>("Fonts & Materials/LiberationSans SDF");
|
||||
}
|
||||
|
||||
if (font != null) return font;
|
||||
if (font) return font;
|
||||
var fonts = Resources.FindObjectsOfTypeAll<TMP_FontAsset>();
|
||||
if (fonts.Length > 0) font = fonts[0];
|
||||
|
||||
@@ -508,7 +508,7 @@ namespace ADOFAIRenderer.UI
|
||||
_isDownloading = false;
|
||||
_buttonContainerObj.SetActive(true);
|
||||
var downloadBtnText = _buttonContainerObj.transform.Find("DownloadButton/DownloadText")?.GetComponent<TextMeshProUGUI>();
|
||||
if (downloadBtnText != null)
|
||||
if (downloadBtnText)
|
||||
{
|
||||
downloadBtnText.text = "재시도 (Retry)";
|
||||
}
|
||||
@@ -530,7 +530,7 @@ namespace ADOFAIRenderer.UI
|
||||
{
|
||||
ExecuteOnMainThread(() =>
|
||||
{
|
||||
if (_statusText != null)
|
||||
if (_statusText)
|
||||
{
|
||||
_statusText.text = message;
|
||||
_statusText.color = color;
|
||||
@@ -542,11 +542,11 @@ namespace ADOFAIRenderer.UI
|
||||
{
|
||||
ExecuteOnMainThread(() =>
|
||||
{
|
||||
if (_fillRect != null)
|
||||
if (_fillRect)
|
||||
{
|
||||
_fillRect.anchorMax = new Vector2(percent, 1f);
|
||||
}
|
||||
if (_progressText != null)
|
||||
if (_progressText)
|
||||
{
|
||||
_progressText.text = text;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user