Files
Pal3.Unity/Assets/Scripts/Pal3.Core/Command/SceCommands/UIDisplayCaptionCommand.cs
T
Jiaqi Liu b1d9e3b0ac Bug fix + Bump Unity version + Update copyright text
- Fixed a bug caused by inconsistent state check between managed and native object.
- Bump Unity version.
- Update copyright text
2025-03-05 21:13:59 -08:00

41 lines
1.5 KiB
C#

// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2025, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Pal3.Core.Command.SceCommands
{
#if PAL3
[SceCommand(86, "显示全屏字幕(例如显示诗句等)," +
"参数:字幕序号(对应美术图片,每个字幕一个图片),列数")]
public sealed class UIDisplayCaptionCommand : ICommand
{
public UIDisplayCaptionCommand(string textureName, int numberOfLines)
{
TextureName = textureName;
NumberOfLines = numberOfLines;
}
public string TextureName { get; }
public int NumberOfLines { get; }
}
#elif PAL3A
[SceCommand(86, "显示全屏字幕(例如显示诗句等)," +
"参数:字幕序号(对应美术图片,每个字幕一个图片),列数,是否还有下一行")]
public sealed class UIDisplayCaptionCommand : ICommand
{
public UIDisplayCaptionCommand(string textureName,
int numberOfLines,
int hasNextRow)
{
TextureName = textureName;
NumberOfLines = numberOfLines;
HasNextRow = hasNextRow;
}
public string TextureName { get; }
public int NumberOfLines { get; }
public int HasNextRow { get; }
}
#endif
}