notebook实装功能,galgame继续,一些bug修复
This commit is contained in:
@@ -4,24 +4,6 @@ using System.Collections.Generic;
|
||||
[CreateAssetMenu(fileName = "NewGalSO", menuName = "Galgame/galSO")]
|
||||
public class ingame_galgame_so : ScriptableObject
|
||||
{
|
||||
[System.Serializable]
|
||||
public class CharacterInfo
|
||||
{
|
||||
public string characterName;
|
||||
public Sprite characterImage;
|
||||
public Color themeColor;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class DialogueElement
|
||||
{
|
||||
[Header("位置配置")]
|
||||
public List<Vector2> customPositions; // 自定义位置列表
|
||||
|
||||
[Header("文本内容配置")]
|
||||
public List<DialogueText> textList; // 文字列表
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class DialogueText
|
||||
{
|
||||
@@ -31,9 +13,10 @@ public class ingame_galgame_so : ScriptableObject
|
||||
|
||||
[Tooltip("队列中第几个文本")]
|
||||
public int textNumber; // 队列中第几个文本
|
||||
[Tooltip("请填写characterList中的Character Name(不区分大小写)")]
|
||||
public string sender; // 文本发出者角色名
|
||||
|
||||
|
||||
[Tooltip("从 speakersDataSO 中选择发言者")]
|
||||
public int senderIndex = -1; // 改为索引,通过下拉选择
|
||||
|
||||
public enum ImagePosition { Left, Right }
|
||||
[Tooltip("对象图片左右位置")]
|
||||
public ImagePosition imagePos; // 对象图片左右位置
|
||||
@@ -48,9 +31,9 @@ public class ingame_galgame_so : ScriptableObject
|
||||
public StepMethod stepMethod; // 文本步进方法
|
||||
|
||||
public enum TimeAction { None, SlowMotion, Pause }
|
||||
[Tooltip("文本出现时动作")]
|
||||
[Tooltip("文本出现时动作:无/慢动作/暂停")]
|
||||
public TimeAction timeAction; // 文本出现时动作
|
||||
|
||||
|
||||
[Tooltip("文本播放期间时间流速,0为暂停")]
|
||||
[Range(0f, 1f)]
|
||||
public float slowMotionScale = 0.5f; // 慢动作允许TimeScale设置值
|
||||
@@ -60,15 +43,35 @@ public class ingame_galgame_so : ScriptableObject
|
||||
public EndAction endAction; // 文本结束动作
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class DialogueElement
|
||||
{
|
||||
public enum PositionTag { Default, Left, Right, Upper, Down, Center }
|
||||
|
||||
[Header("位置配置")]
|
||||
public PositionTag positionTag;
|
||||
[HideInInspector]
|
||||
public List<Vector2> customPositions;
|
||||
|
||||
[Header("文本内容配置")]
|
||||
public List<DialogueText> textList; // 文字列表
|
||||
}
|
||||
|
||||
public enum TimelineBase { MusicTime, SceneStartTime, CustomTimer }
|
||||
public enum TriggerMethod { CodeTrigger, TimerTrigger, MixedTrigger }
|
||||
public enum DialogueType { Galgame, Lyrics }
|
||||
|
||||
[Header("全局配置")]
|
||||
[Tooltip("对话类型")]
|
||||
public DialogueType dialogueType;
|
||||
[Tooltip("触发方式")]
|
||||
public TriggerMethod triggerMethod;
|
||||
[Tooltip("时间线基准")]
|
||||
public TimelineBase timelineStandard;
|
||||
|
||||
public List<CharacterInfo> characterList = new List<CharacterInfo>();
|
||||
[Header("角色数据")]
|
||||
[Tooltip("引用 Speaker 配置 ScriptableObject")]
|
||||
public galgame_speakers_so speakersDataSO;
|
||||
|
||||
public List<DialogueElement> dialogueList = new List<DialogueElement>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user