28 lines
697 B
C#
28 lines
697 B
C#
using UnityEngine;
|
|
|
|
namespace AibisDream
|
|
{
|
|
[CreateAssetMenu(menuName = "Style/Bubble Style")]
|
|
public class BubbleStyle : ScriptableObject
|
|
{
|
|
public Vector4 bubblePadding;
|
|
public Vector4 linePadding;
|
|
public float lineFontSize;
|
|
public Vector4 actorPadding;
|
|
public float actorFontSize;
|
|
|
|
public string bubbleSpriteAddress;
|
|
|
|
public RectOffset GetBubblePadding()
|
|
{
|
|
return new RectOffset
|
|
{
|
|
left = (int) bubblePadding.x,
|
|
right = (int)bubblePadding.y,
|
|
top = (int)bubblePadding.z,
|
|
bottom = (int)bubblePadding.w
|
|
};
|
|
}
|
|
}
|
|
}
|