feat: 增加本地化图片播放
This commit is contained in:
@@ -402,6 +402,13 @@ namespace AibisDream
|
||||
return panel.ShowObj(picName, duration);
|
||||
}
|
||||
|
||||
[YarnCommand("show_l10n_obj")]
|
||||
public static IEnumerator ShowL10nObj(string picName, float duration = 1)
|
||||
{
|
||||
var panel = UIManager.Instance.GetPanel<PlayToolPanel>();
|
||||
return panel.ShowL10nObj(picName, duration);
|
||||
}
|
||||
|
||||
[YarnCommand("hide_obj")]
|
||||
public static IEnumerator HideObj(float duration = 1)
|
||||
{
|
||||
@@ -470,6 +477,13 @@ namespace AibisDream
|
||||
return panel.ShowFullScreen(picName, duration);
|
||||
}
|
||||
|
||||
[YarnCommand("show_l10n_full_screen")]
|
||||
public static IEnumerator ShowL10nFullScreen(string picName, float duration = 1)
|
||||
{
|
||||
var panel = UIManager.Instance.GetPanel<PlayToolPanel>();
|
||||
return panel.ShowL10nFullScreen(picName, duration);
|
||||
}
|
||||
|
||||
[YarnCommand("hide_full_screen")]
|
||||
public static IEnumerator HideFullScreen(float duration = 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user