RemoveChildToPoolAt() public method

public RemoveChildToPoolAt ( int index ) : void
index int
return void
示例#1
0
 static public int RemoveChildToPoolAt(IntPtr l)
 {
     try {
         FairyGUI.GList self = (FairyGUI.GList)checkSelf(l);
         System.Int32   a1;
         checkType(l, 2, out a1);
         self.RemoveChildToPoolAt(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public bool RemoveItem(string name)
        {
            GComponent item = _list.GetChild(name).asCom;

            if (item != null)
            {
                int index = _list.GetChildIndex(item);
                _list.RemoveChildToPoolAt(index);
                return(true);
            }
            else
            {
                return(false);
            }
        }
 static int RemoveChildToPoolAt(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GList obj  = (FairyGUI.GList)ToLua.CheckObject(L, 1, typeof(FairyGUI.GList));
         int            arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.RemoveChildToPoolAt(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="name"></param>
        public void RemoveItem(string name)
        {
            GComponent item = _list.GetChild(name).asCom;

            if (item != null)
            {
                item.RemoveEventListeners(EVENT_TYPE);
                if (item.data is PopupMenu)
                {
                    ((PopupMenu)item.data).Dispose();
                    item.data = null;
                }
                int index = _list.GetChildIndex(item);
                _list.RemoveChildToPoolAt(index);
            }
        }