Files
Continentis/Assets/OtherPlugins/DamageNumbersPro/Scripts/Settings/TextSettings.cs

68 lines
1.8 KiB
C#
Raw Normal View History

2026-03-20 11:56:50 -04:00
using System;
2025-10-03 00:02:43 -04:00
using UnityEngine;
2026-03-20 11:56:50 -04:00
namespace DamageNumbersPro
{
[Serializable]
2025-10-03 00:02:43 -04:00
public struct TextSettings
{
public TextSettings(float customDefault)
{
horizontal = customDefault;
customColor = false;
color = new Color(1, 1, 0f, 1);
size = 0;
vertical = 0;
characterSpacing = 0f;
alpha = 1;
mark = false;
markColor = new Color(0, 0, 0, 0.5f);
bold = false;
italic = false;
underline = false;
strike = false;
}
2026-03-20 11:56:50 -04:00
[Header("Basics:")] [Tooltip("Makes the text bold.")]
2025-10-03 00:02:43 -04:00
public bool bold;
2026-03-20 11:56:50 -04:00
[Tooltip("Makes the text italic.")] public bool italic;
2025-10-03 00:02:43 -04:00
[Tooltip("Adds an underline to the text.")]
public bool underline;
2026-03-20 11:56:50 -04:00
2025-10-03 00:02:43 -04:00
[Tooltip("Strikes through the text with a line.")]
public bool strike;
[Header("Alpha:")]
[Range(0, 1)]
[Tooltip("Changes the alpha of the text.\nWon't work if Custom Color is used.")]
public float alpha;
2026-03-20 11:56:50 -04:00
[Header("Color:")] [Tooltip("Changes the color of the text.\nOverrides the alpha option above.")]
2025-10-03 00:02:43 -04:00
public bool customColor;
2026-03-20 11:56:50 -04:00
2025-10-03 00:02:43 -04:00
public Color color;
2026-03-20 11:56:50 -04:00
[Header("Mark:")] [Tooltip("Highlights the text with a custom color.")]
2025-10-03 00:02:43 -04:00
public bool mark;
2026-03-20 11:56:50 -04:00
2025-10-03 00:02:43 -04:00
public Color markColor;
2026-03-20 11:56:50 -04:00
[Header("Offset:")] [Tooltip("Horizontally moves the text.\nCan be used to offset the prefix or suffix.")]
2025-10-03 00:02:43 -04:00
public float horizontal;
2026-03-20 11:56:50 -04:00
2025-10-03 00:02:43 -04:00
[Tooltip("Vertically moves the text.\nCan be used to offset the prefix or suffix.")]
public float vertical;
2026-03-20 11:56:50 -04:00
[Header("Extra:")] [Tooltip("Changes the character spacing.")]
2025-10-03 00:02:43 -04:00
public float characterSpacing;
2026-03-20 11:56:50 -04:00
[Tooltip("Changes the font size.")] public float size;
2025-10-03 00:02:43 -04:00
}
2026-03-20 11:56:50 -04:00
}