31 lines
861 B
C#
31 lines
861 B
C#
using UnityEngine;
|
|
|
|
namespace AibisDream
|
|
{
|
|
[CreateAssetMenu(menuName = "Style/Bubble Style")]
|
|
public class BubbleStyle : ScriptableObject
|
|
{
|
|
public Color imageColor = Color.white;
|
|
public Vector4 bubblePadding;
|
|
public Vector4 linePadding;
|
|
public float lineFontSize;
|
|
public Vector4 actorPadding;
|
|
public float actorFontSize;
|
|
|
|
public bool hasActorName;
|
|
|
|
public string bubbleSpriteAddress;
|
|
|
|
public RectOffset BubblePadding
|
|
{
|
|
get => new()
|
|
{
|
|
left = (int)bubblePadding.x,
|
|
right = (int)bubblePadding.y,
|
|
top = (int)bubblePadding.z,
|
|
bottom = (int)bubblePadding.w
|
|
};
|
|
set => bubblePadding = new Vector4(value.left, value.right, value.top, value.bottom);
|
|
}
|
|
}
|
|
} |