12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- namespace textUtility
- {
- using System;
- using System.Collections;
- using System.Collections.Generic;
-
- using UnityEngine;
-
- [Serializable]
- public class UnderlineSetting : BaseSetting
- {
- #region Config
-
- public Vector2 Offset;
- public UnderlineStyle Style;
- public List<int> ExcludeCharASCIIs = new List<int>();
-
- public List<char> UnderlineExcludeChars
- {
- get
- {
- if (!underlineExcludeChars.IsAvailable())
- {
- underlineExcludeChars = new List<char>();
- foreach (var ascii in ExcludeCharASCIIs)
- {
- underlineExcludeChars.Add((char)ascii);
- }
- }
- return underlineExcludeChars;
- }
- }
- private List<char> underlineExcludeChars;
-
- #endregion
-
- public UnderlineSetting()
- {
- ID = 0;
- Scale = 0.1f;
- Color = Color.blue;
- Offset = Vector2.zero;
- //ExcludeCharASCIIs.Add(9);
- ExcludeCharASCIIs.Add(10);
- //ExcludeCharASCIIs.Add(32);
- }
- }
- }
|