GetNodeIndex() public method

public GetNodeIndex ( FairyGUI.TreeNode node ) : int
node FairyGUI.TreeNode
return int
 static public int GetNodeIndex(IntPtr l)
 {
     try {
         FairyGUI.TreeView self = (FairyGUI.TreeView)checkSelf(l);
         FairyGUI.TreeNode a1;
         checkType(l, 2, out a1);
         var ret = self.GetNodeIndex(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #2
0
 static int GetNodeIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.TreeView obj  = (FairyGUI.TreeView)ToLua.CheckObject(L, 1, typeof(FairyGUI.TreeView));
         FairyGUI.TreeNode arg0 = (FairyGUI.TreeNode)ToLua.CheckObject(L, 2, typeof(FairyGUI.TreeNode));
         int o = obj.GetNodeIndex(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }