private static int IsImgDownSucc(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); int d = GetNewsImage.IsImgDownSucc(LuaScriptMgr.GetLuaString(L, 1)); LuaScriptMgr.Push(L, d); return(1); }
private static int SetLuaFileName(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); GetNewsImage image = (GetNewsImage)LuaScriptMgr.GetUnityObjectSelf(L, 1, "com.tencent.pandora.GetNewsImage"); string luaString = LuaScriptMgr.GetLuaString(L, 2); image.SetLuaFileName(luaString); return(0); }
private static int isImageCached(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); GetNewsImage image = (GetNewsImage)LuaScriptMgr.GetUnityObjectSelf(L, 1, "com.tencent.pandora.GetNewsImage"); string luaString = LuaScriptMgr.GetLuaString(L, 2); bool b = image.isImageCached(luaString); LuaScriptMgr.Push(L, b); return(1); }
private static int ShowImageByUrl(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 4); GetNewsImage image = (GetNewsImage)LuaScriptMgr.GetUnityObjectSelf(L, 1, "com.tencent.pandora.GetNewsImage"); string luaString = LuaScriptMgr.GetLuaString(L, 2); Image texture = (Image)LuaScriptMgr.GetUnityObject(L, 3, typeof(Image)); string name = LuaScriptMgr.GetLuaString(L, 4); image.ShowImageByUrl(luaString, texture, name); return(0); }
private static int GetTextureIO(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); GetNewsImage image = (GetNewsImage)LuaScriptMgr.GetUnityObjectSelf(L, 1, "com.tencent.pandora.GetNewsImage"); string luaString = LuaScriptMgr.GetLuaString(L, 2); Image texture = (Image)LuaScriptMgr.GetUnityObject(L, 3, typeof(Image)); Sprite textureIO = image.GetTextureIO(luaString, texture); LuaScriptMgr.Push(L, textureIO); return(1); }
private static int GetImageOfMuti(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 4); GetNewsImage image = (GetNewsImage)LuaScriptMgr.GetUnityObjectSelf(L, 1, "com.tencent.pandora.GetNewsImage"); string luaString = LuaScriptMgr.GetLuaString(L, 2); string str2 = LuaScriptMgr.GetLuaString(L, 3); Image texture = (Image)LuaScriptMgr.GetUnityObject(L, 4, typeof(Image)); image.GetImageOfMuti(luaString, str2, texture); return(0); }
private static int get_gUItextures(IntPtr L) { GetNewsImage luaObject = (GetNewsImage)LuaScriptMgr.GetLuaObject(L, 1); if (luaObject == null) { if (LuaDLL.lua_type(L, 1) == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name gUItextures"); } else { LuaDLL.luaL_error(L, "attempt to index gUItextures on a nil value"); } } LuaScriptMgr.PushObject(L, luaObject.gUItextures); return(1); }
private static int set_waitTimeOut(IntPtr L) { GetNewsImage luaObject = (GetNewsImage)LuaScriptMgr.GetLuaObject(L, 1); if (luaObject == null) { if (LuaDLL.lua_type(L, 1) == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name waitTimeOut"); } else { LuaDLL.luaL_error(L, "attempt to index waitTimeOut on a nil value"); } } luaObject.waitTimeOut = (float)LuaScriptMgr.GetNumber(L, 3); return(0); }
private static int set_picDic(IntPtr L) { GetNewsImage luaObject = (GetNewsImage)LuaScriptMgr.GetLuaObject(L, 1); if (luaObject == null) { if (LuaDLL.lua_type(L, 1) == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name picDic"); } else { LuaDLL.luaL_error(L, "attempt to index picDic on a nil value"); } } luaObject.picDic = (Dictionary <string, Sprite>)LuaScriptMgr.GetNetObject(L, 3, typeof(Dictionary <string, Sprite>)); return(0); }
private static int set_m_nDownLoadNumber(IntPtr L) { GetNewsImage luaObject = (GetNewsImage)LuaScriptMgr.GetLuaObject(L, 1); if (luaObject == null) { if (LuaDLL.lua_type(L, 1) == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name m_nDownLoadNumber"); } else { LuaDLL.luaL_error(L, "attempt to index m_nDownLoadNumber on a nil value"); } } luaObject.m_nDownLoadNumber = (int)LuaScriptMgr.GetNumber(L, 3); return(0); }
private static int set_ListPreToLoading(IntPtr L) { GetNewsImage luaObject = (GetNewsImage)LuaScriptMgr.GetLuaObject(L, 1); if (luaObject == null) { if (LuaDLL.lua_type(L, 1) == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name ListPreToLoading"); } else { LuaDLL.luaL_error(L, "attempt to index ListPreToLoading on a nil value"); } } luaObject.ListPreToLoading = (List <string>)LuaScriptMgr.GetNetObject(L, 3, typeof(List <string>)); return(0); }
private static int set_isResize(IntPtr L) { GetNewsImage luaObject = (GetNewsImage)LuaScriptMgr.GetLuaObject(L, 1); if (luaObject == null) { if (LuaDLL.lua_type(L, 1) == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name isResize"); } else { LuaDLL.luaL_error(L, "attempt to index isResize on a nil value"); } } luaObject.isResize = LuaScriptMgr.GetBoolean(L, 3); return(0); }
private static int set_gUItexture(IntPtr L) { GetNewsImage luaObject = (GetNewsImage)LuaScriptMgr.GetLuaObject(L, 1); if (luaObject == null) { if (LuaDLL.lua_type(L, 1) == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name gUItexture"); } else { LuaDLL.luaL_error(L, "attempt to index gUItexture on a nil value"); } } luaObject.gUItexture = (Image)LuaScriptMgr.GetUnityObject(L, 3, typeof(Image)); return(0); }
private static int get_iSourceImgWidth(IntPtr L) { GetNewsImage luaObject = (GetNewsImage)LuaScriptMgr.GetLuaObject(L, 1); if (luaObject == null) { if (LuaDLL.lua_type(L, 1) == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name iSourceImgWidth"); } else { LuaDLL.luaL_error(L, "attempt to index iSourceImgWidth on a nil value"); } } LuaScriptMgr.Push(L, luaObject.iSourceImgWidth); return(1); }