SuperlinkSetting.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. namespace textUtility
  2. {
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. [Serializable]
  8. public class SuperlinkSetting : BaseSetting
  9. {
  10. #region Config
  11. public List<int> ExcludeCharASCIIs = new List<int>();
  12. public bool EnableOverflowClick;
  13. public List<char> SuperlinkExcludeChars
  14. {
  15. get
  16. {
  17. if (!superlinkExcludeChars.IsAvailable())
  18. {
  19. superlinkExcludeChars = new List<char>();
  20. foreach (var ascii in ExcludeCharASCIIs)
  21. {
  22. superlinkExcludeChars.Add((char)ascii);
  23. }
  24. }
  25. return superlinkExcludeChars;
  26. }
  27. set { superlinkExcludeChars = value; }
  28. }
  29. private List<char> superlinkExcludeChars;
  30. #endregion
  31. public SuperlinkSetting()
  32. {
  33. ID = 0;
  34. Scale = 0.75f;
  35. Color = Color.green;
  36. //ExcludeCharASCIIs.Add(9);
  37. ExcludeCharASCIIs.Add(10);
  38. //ExcludeCharASCIIs.Add(32);
  39. }
  40. }
  41. }