public void Init() { if (FrameIndex == null) { FrameIndex = new EmojiList <int>(); } else { FrameIndex.Clear(); } if (RenderGroup == null) { RenderGroup = new EmojiList <SpriteInfoGroup>(); } else { RenderGroup.Clear(); } if (EmojiVerts == null) { EmojiVerts = new EmojiList <EmojiUIVertex>(); } else { EmojiVerts.Clear(); } }
public EmojiList <Color> GetHrefCols() { if (HrefCols == null) { HrefCols = new EmojiList <Color>(); } return(HrefCols); }
public EmojiList <int> GetPoints() { if (Points == null) { Points = new EmojiList <int>(8); } return(Points); }
public EmojiList <float> GetPartSize() { if (PartSize == null) { PartSize = new EmojiList <float>(8); } return(PartSize); }
public EmojiList <EmojiIndex> GetEmojiPoints() { if (EmojiPoints == null) { EmojiPoints = new EmojiList <EmojiIndex>(); } return(EmojiPoints); }
public EmojiList <string> GetElements() { if (FormatElements == null) { FormatElements = new EmojiList <string>(8); } return(FormatElements); }
public EmojiList <SpriteInfoGroup> GetGroups() { if (Groups == null) { Groups = new EmojiList <SpriteInfoGroup>(); } return(Groups); }
public EmojiList <float> GetEmojiSize() { if (EmojiSize == null) { EmojiSize = new EmojiList <float>(); } return(EmojiSize); }
public EmojiList <int> GetFixedIndex() { if (FixedIndex == null) { FixedIndex = new EmojiList <int>(); } return(FixedIndex); }
public EmojiList <EmojiIndex> GetHrefPoints() { if (HrefPoints == null) { HrefPoints = new EmojiList <EmojiIndex>(); } return(HrefPoints); }
public void Destroy() { Owner = null; RebuildTexts = null; AllTexts = null; Results = null; Refercens = null; GroupMapper = null; FailedText = null; Pool._pool = null; }
public void Init() { if (HrefVerts == null) { HrefVerts = new EmojiList <EmojiUIVertex>(); } else { HrefVerts.Clear(); } }
bool TryFind(EmojiList <EmojiIndex> list, int idx, out int arrayindex) { arrayindex = -1; for (int i = 0; i < list.Count; i++) { var value = list[i]; if (value.Emojiindex == idx) { arrayindex = i; return(true); } } return(false); }
void FixPoints(EmojiList <EmojiIndex> list, int type, ref TextElementResult result) { for (int k = 0; k < list.Count; k++) { var pointval = list[k]; int cacheval = 0; if (_cache.TryGetValue(pointval.Emojiindex - 1, out cacheval)) { pointval.TextIndex += cacheval; } //result.ParseGroup.emojitypeMap[emojiidx] = type + k *100; list[k] = pointval; } }
public TextCotext(InlineManager manager, int size) { Owner = manager; Settings = manager.Settings; //cl 64-16 48/4=12 RebuildTexts = new EmojiList <InlineText>(size); //cl AllTexts = new EmojiList <InlineText>(size); Results = new EmojiList <TextElementResult>(size); Refercens = new EmojiList <SpriteAsset>(); GroupMapper = new Dictionary <string, SpriteInfoGroup>(); FailedText = new EmojiList <InlineText>(); }
public void Init() { if (TextVerts == null) { TextVerts = new EmojiList <UIVertex>(64); } else { TextVerts.Clear(); } if (EmojiVerts == null) { EmojiVerts = new EmojiList <Vector3>(64); } else { EmojiVerts.Clear(); } }
bool TryFind(EmojiList <EmojiIndex> list, int idx) { int p; return(TryFind(list, idx, out p)); }