Beispiel #1
0
 static public int GetItemName(IntPtr l)
 {
     try {
         FairyGUI.PopupMenu self = (FairyGUI.PopupMenu)checkSelf(l);
         System.Int32       a1;
         checkType(l, 2, out a1);
         var ret = self.GetItemName(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int GetItemName(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.PopupMenu obj = (FairyGUI.PopupMenu)ToLua.CheckObject <FairyGUI.PopupMenu>(L, 1);
         int    arg0            = (int)LuaDLL.luaL_checknumber(L, 2);
         string o = obj.GetItemName(arg0);
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }