123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- namespace textUtility
- {
- using System;
- using System.Collections;
- using System.Collections.Generic;
-
- using UnityEngine;
-
- [Serializable]
- public class SuperlinkSetting : BaseSetting
- {
- #region Config
-
- public List<int> ExcludeCharASCIIs = new List<int>();
- public bool EnableOverflowClick;
-
- public List<char> SuperlinkExcludeChars
- {
- get
- {
- if (!superlinkExcludeChars.IsAvailable())
- {
- superlinkExcludeChars = new List<char>();
- foreach (var ascii in ExcludeCharASCIIs)
- {
- superlinkExcludeChars.Add((char)ascii);
- }
- }
- return superlinkExcludeChars;
- }
- set { superlinkExcludeChars = value; }
- }
- private List<char> superlinkExcludeChars;
-
- #endregion
-
- public SuperlinkSetting()
- {
- ID = 0;
- Scale = 0.75f;
- Color = Color.green;
- //ExcludeCharASCIIs.Add(9);
- ExcludeCharASCIIs.Add(10);
- //ExcludeCharASCIIs.Add(32);
- }
- }
- }
|