Ejemplo n.º 1
0
 /** 析构 */
 public override void clear()
 {
     removed = false;
     objs.clear();
     depends.clear();
     beDepends.clear();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 清空格子数据
        /// </summary>
        public void clearDataList()
        {
            _dataList.clear();

            clearDataCache();

            doSetDataList();
        }
Ejemplo n.º 3
0
        private string GetLinkedText(string text)
        {
            sb.Length = 0;
            m_HrefInfos.clear();
            var     indexText   = 0;
            Color32 defautcolor = m_LinkDefautColor;

            defautcolor.a = 0xff;
            string colorprefix   = string.Format("<color=#{0:x2}{1:x2}{2:x2}>", defautcolor.r, defautcolor.g, defautcolor.b);
            string colorappendix = "</color>";

            foreach (Match match in s_HrefRegex.Matches(text))
            {
                sb.Append(text.Substring(indexText, match.Index - indexText));
                bool bUnderLine = true;
                if (match.Groups[1].Value.Equals("noline"))
                {
                    bUnderLine = false;
                }
                string content = match.Groups[2].Value;
                if (content.Length > 0)
                {
                    sb.Append(colorprefix);                     // 超链接颜色
                    var hrefInfo = new HrefInfo
                    {
                        startpos_linkedtext = sb.Length,                  //一次处理后的文本起始索引
                        startIndex          = sb.Length * 4,              // 相应的顶点索引
                        endIndex            = (sb.Length + content.Length - 1) * 4 + 3,
                        bUnderline          = bUnderLine,
                        content             = content,
                        parameter           = match.Groups[3].Value
                    };
                    m_HrefInfos.add(hrefInfo);
                    sb.Append(content);
                    sb.Append(colorappendix);
                }
                indexText = match.Index + match.Length;
            }

            sb.Append(text.Substring(indexText, text.Length - indexText));

            //print(string.Format("found {0} links",m_HrefInfos.Count));
            return(sb.ToString());
        }
Ejemplo n.º 4
0
 /** 析构 */
 public override void clear()
 {
     removed            = false;
     assetBundleRequest = null;
     infos.clear();
 }
Ejemplo n.º 5
0
 /** 析构 */
 public static void dispose()
 {
     _assistThread.exit();
     _ioThread.exit();
     _threadList.clear();
 }
Ejemplo n.º 6
0
 /** 删除全部子节点 */
 public void removeAllChildren()
 {
     _children.clear();
 }