架构大更
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DamageNumbersPro {
|
||||
[System.Serializable]
|
||||
namespace DamageNumbersPro
|
||||
{
|
||||
[Serializable]
|
||||
public struct TextSettings
|
||||
{
|
||||
public TextSettings(float customDefault)
|
||||
@@ -28,13 +28,14 @@ namespace DamageNumbersPro {
|
||||
strike = false;
|
||||
}
|
||||
|
||||
[Header("Basics:")]
|
||||
[Tooltip("Makes the text bold.")]
|
||||
[Header("Basics:")] [Tooltip("Makes the text bold.")]
|
||||
public bool bold;
|
||||
[Tooltip("Makes the text italic.")]
|
||||
public bool italic;
|
||||
|
||||
[Tooltip("Makes the text italic.")] public bool italic;
|
||||
|
||||
[Tooltip("Adds an underline to the text.")]
|
||||
public bool underline;
|
||||
|
||||
[Tooltip("Strikes through the text with a line.")]
|
||||
public bool strike;
|
||||
|
||||
@@ -43,26 +44,25 @@ namespace DamageNumbersPro {
|
||||
[Tooltip("Changes the alpha of the text.\nWon't work if Custom Color is used.")]
|
||||
public float alpha;
|
||||
|
||||
[Header("Color:")]
|
||||
[Tooltip("Changes the color of the text.\nOverrides the alpha option above.")]
|
||||
[Header("Color:")] [Tooltip("Changes the color of the text.\nOverrides the alpha option above.")]
|
||||
public bool customColor;
|
||||
|
||||
public Color color;
|
||||
|
||||
[Header("Mark:")]
|
||||
[Tooltip("Highlights the text with a custom color.")]
|
||||
[Header("Mark:")] [Tooltip("Highlights the text with a custom color.")]
|
||||
public bool mark;
|
||||
|
||||
public Color markColor;
|
||||
|
||||
[Header("Offset:")]
|
||||
[Tooltip("Horizontally moves the text.\nCan be used to offset the prefix or suffix.")]
|
||||
[Header("Offset:")] [Tooltip("Horizontally moves the text.\nCan be used to offset the prefix or suffix.")]
|
||||
public float horizontal;
|
||||
|
||||
[Tooltip("Vertically moves the text.\nCan be used to offset the prefix or suffix.")]
|
||||
public float vertical;
|
||||
|
||||
[Header("Extra:")]
|
||||
[Tooltip("Changes the character spacing.")]
|
||||
[Header("Extra:")] [Tooltip("Changes the character spacing.")]
|
||||
public float characterSpacing;
|
||||
[Tooltip("Changes the font size.")]
|
||||
public float size;
|
||||
|
||||
[Tooltip("Changes the font size.")] public float size;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user