public static void UF_OnClick(UILabel label, UnityEngine.EventSystems.PointerEventData eventData) { int handlebit = label.handleTokenBit; if ((handlebit & TextTokenType.HEAD_H) > 0) { RTHyperlink.UF_OnClick(label, eventData); } }
public static void UF_OnReset(UILabel label) { int handlebit = label.handleTokenBit; if ((handlebit & TextTokenType.HEAD_H) > 0) { RTHyperlink.UF_OnReset(label); } if ((handlebit & TextTokenType.QUAD) > 0) { RTSprite.UF_OnReset(label); } }
public static void UF_OnPopulateMesh(UILabel label, List <TextToken> tokens, List <UIVertex> uivertexs) { if (tokens.Count == 0) { return; } int handlebit = label.handleTokenBit; if ((handlebit & TextTokenType.HEAD_C) > 0) { RTColor.UF_OnPopulateMesh(label, tokens, uivertexs); } if ((handlebit & TextTokenType.HEAD_H) > 0) { RTHyperlink.UF_OnPopulateMesh(label, tokens, uivertexs); } if ((handlebit & TextTokenType.HEAD_U) > 0) { RTUnderLine.UF_OnPopulateMesh(label, tokens, uivertexs); } if ((handlebit & TextTokenType.QUAD) > 0) { RTSprite.UF_OnPopulateMesh(label, tokens, uivertexs); } if ((handlebit & TextTokenType.HEAD_G) > 0) { RTGradual.UF_OnPopulateMesh(label, tokens, uivertexs, 0); } //底部显示效果必须在最后,并获取前置索引 int sourceLen = uivertexs.Count; int startIndex = 0; if ((handlebit & TextTokenType.HEAD_O) > 0) { RTOutline.UF_OnPopulateMesh(label, tokens, uivertexs, startIndex); startIndex = uivertexs.Count - sourceLen; } if ((handlebit & TextTokenType.HEAD_S) > 0) { RTShadow.UF_OnPopulateMesh(label, tokens, uivertexs, startIndex); startIndex = uivertexs.Count - sourceLen; } }