-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from o-tr/master
v0.2.22をリリース
- Loading branch information
Showing
11 changed files
with
365 additions
and
21 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Runtime/jp.ootr.ImageSlide/Scripts/Viewer/16_UIErrorModal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using jp.ootr.common; | ||
using TMPro; | ||
using UnityEngine; | ||
using UnityEngine.UI; | ||
|
||
namespace jp.ootr.ImageSlide.Viewer | ||
{ | ||
public class UIErrorModal : UISplashScreen { | ||
[SerializeField] private GameObject errorModal; | ||
[SerializeField] private RectTransform errorModalTransform; | ||
[SerializeField] private TextMeshProUGUI errorTitle; | ||
[SerializeField] private TextMeshProUGUI errorDescription; | ||
[SerializeField] private ContentSizeFitter errorDescriptionSizeFitter; | ||
|
||
public void ShowErrorModal(string title, string message) | ||
{ | ||
errorModal.SetActive(true); | ||
errorTitle.text = title; | ||
errorDescription.text = message; | ||
errorDescriptionSizeFitter.SetLayoutVertical(); | ||
|
||
errorModalTransform.ToListChildrenVertical(24, 24, true); | ||
} | ||
|
||
public void CloseErrorModal() | ||
{ | ||
errorModal.SetActive(false); | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Runtime/jp.ootr.ImageSlide/Scripts/Viewer/16_UIErrorModal.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.