feat: 增加本地化图片播放

This commit is contained in:
2026-08-02 21:20:05 +08:00
parent e6c3148764
commit 93501dddaf
15 changed files with 557 additions and 28 deletions
@@ -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)
{