//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class FairyGUI_ImageWrap { public static void Register(LuaState L) { L.BeginClass(typeof(FairyGUI.Image), typeof(FairyGUI.DisplayObject)); L.RegFunction("SetNativeSize", SetNativeSize); L.RegFunction("OnPopulateMesh", OnPopulateMesh); L.RegFunction("SliceFill", SliceFill); L.RegFunction("New", _CreateFairyGUI_Image); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("texture", get_texture, set_texture); L.RegVar("color", get_color, set_color); L.RegVar("fillMethod", get_fillMethod, set_fillMethod); L.RegVar("fillOrigin", get_fillOrigin, set_fillOrigin); L.RegVar("fillClockwise", get_fillClockwise, set_fillClockwise); L.RegVar("fillAmount", get_fillAmount, set_fillAmount); L.RegVar("scale9Grid", get_scale9Grid, set_scale9Grid); L.RegVar("scaleByTile", get_scaleByTile, set_scaleByTile); L.RegVar("tileGridIndice", get_tileGridIndice, set_tileGridIndice); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateFairyGUI_Image(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { FairyGUI.Image obj = new FairyGUI.Image(); ToLua.PushObject(L, obj); return 1; } else if (count == 1) { FairyGUI.NTexture arg0 = (FairyGUI.NTexture)ToLua.CheckObject(L, 1); FairyGUI.Image obj = new FairyGUI.Image(arg0); ToLua.PushObject(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.Image.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SetNativeSize(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.Image obj = (FairyGUI.Image)ToLua.CheckObject(L, 1); obj.SetNativeSize(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int OnPopulateMesh(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.Image obj = (FairyGUI.Image)ToLua.CheckObject(L, 1); FairyGUI.VertexBuffer arg0 = (FairyGUI.VertexBuffer)ToLua.CheckObject(L, 2, typeof(FairyGUI.VertexBuffer)); obj.OnPopulateMesh(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int SliceFill(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.Image obj = (FairyGUI.Image)ToLua.CheckObject(L, 1); FairyGUI.VertexBuffer arg0 = (FairyGUI.VertexBuffer)ToLua.CheckObject(L, 2, typeof(FairyGUI.VertexBuffer)); obj.SliceFill(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_texture(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; FairyGUI.NTexture ret = obj.texture; ToLua.PushObject(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index texture on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_color(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; UnityEngine.Color ret = obj.color; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_fillMethod(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; FairyGUI.FillMethod ret = obj.fillMethod; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fillMethod on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_fillOrigin(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; int ret = obj.fillOrigin; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fillOrigin on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_fillClockwise(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; bool ret = obj.fillClockwise; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fillClockwise on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_fillAmount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; float ret = obj.fillAmount; LuaDLL.lua_pushnumber(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fillAmount on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_scale9Grid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; System.Nullable ret = obj.scale9Grid; ToLua.PusNullable(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index scale9Grid on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_scaleByTile(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; bool ret = obj.scaleByTile; LuaDLL.lua_pushboolean(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index scaleByTile on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_tileGridIndice(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; int ret = obj.tileGridIndice; LuaDLL.lua_pushinteger(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index tileGridIndice on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_texture(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; FairyGUI.NTexture arg0 = (FairyGUI.NTexture)ToLua.CheckObject(L, 2); obj.texture = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index texture on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_color(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; UnityEngine.Color arg0 = ToLua.ToColor(L, 2); obj.color = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_fillMethod(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; FairyGUI.FillMethod arg0 = (FairyGUI.FillMethod)ToLua.CheckObject(L, 2, typeof(FairyGUI.FillMethod)); obj.fillMethod = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fillMethod on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_fillOrigin(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.fillOrigin = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fillOrigin on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_fillClockwise(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.fillClockwise = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fillClockwise on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_fillAmount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.fillAmount = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fillAmount on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_scale9Grid(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; System.Nullable arg0 = ToLua.CheckNullable(L, 2); obj.scale9Grid = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index scale9Grid on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_scaleByTile(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.scaleByTile = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index scaleByTile on a nil value"); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_tileGridIndice(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.Image obj = (FairyGUI.Image)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.tileGridIndice = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index tileGridIndice on a nil value"); } } }