GoWrapper is class for wrapping common gameobject into UI display list.
Inheritance: DisplayObject
示例#1
0
        override protected void CreateDisplayObject()
        {
            displayObject        = new Container("GLoader3D");
            displayObject.gOwner = this;

            _content = new GoWrapper();
            ((Container)displayObject).AddChild(_content);
            ((Container)displayObject).opaque = true;
        }
示例#2
0
 static public int get_layer(IntPtr l)
 {
     try {
         FairyGUI.GoWrapper self = (FairyGUI.GoWrapper)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.layer);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#3
0
 static public int Dispose(IntPtr l)
 {
     try {
         FairyGUI.GoWrapper self = (FairyGUI.GoWrapper)checkSelf(l);
         self.Dispose();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#4
0
 static int CacheRenderers(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)ToLua.CheckObject <FairyGUI.GoWrapper>(L, 1);
         obj.CacheRenderers();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#5
0
 static public int set_layer(IntPtr l)
 {
     try {
         FairyGUI.GoWrapper self = (FairyGUI.GoWrapper)checkSelf(l);
         int v;
         checkType(l, 2, out v);
         self.layer = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#6
0
 static int Dispose(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)ToLua.CheckObject(L, 1, typeof(FairyGUI.GoWrapper));
         obj.Dispose();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#7
0
 static public int constructor(IntPtr l)
 {
     try {
         FairyGUI.GoWrapper     o;
         UnityEngine.GameObject a1;
         checkType(l, 2, out a1);
         o = new FairyGUI.GoWrapper(a1);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#8
0
 static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GoWrapper     obj  = (FairyGUI.GoWrapper)ToLua.CheckObject <FairyGUI.GoWrapper>(L, 1);
         FairyGUI.UpdateContext arg0 = (FairyGUI.UpdateContext)ToLua.CheckObject <FairyGUI.UpdateContext>(L, 2);
         obj.Update(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#9
0
 static int SetWrapTarget(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.GoWrapper     obj  = (FairyGUI.GoWrapper)ToLua.CheckObject <FairyGUI.GoWrapper>(L, 1);
         UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetWrapTarget(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#10
0
    static int get_wrapTarget(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper     obj = (FairyGUI.GoWrapper)o;
            UnityEngine.GameObject ret = obj.wrapTarget;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapTarget on a nil value" : e.Message));
        }
    }
示例#11
0
    static int set_layer(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.layer = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index layer on a nil value" : e.Message));
        }
    }
示例#12
0
    static int set_wrapTarget(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper     obj  = (FairyGUI.GoWrapper)o;
            UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject));
            obj.wrapTarget = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapTarget on a nil value" : e.Message));
        }
    }
示例#13
0
    static int get_layer(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)o;
            int ret = obj.layer;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index layer on a nil value" : e.Message));
        }
    }
示例#14
0
    static int get_supportStencil(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)o;
            bool ret = obj.supportStencil;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index supportStencil on a nil value"));
        }
    }
示例#15
0
    static int set_onUpdate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper      obj  = (FairyGUI.GoWrapper)o;
            FairyGUI.EventCallback0 arg0 = (FairyGUI.EventCallback0)ToLua.CheckDelegate <FairyGUI.EventCallback0>(L, 2);
            obj.onUpdate = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onUpdate on a nil value"));
        }
    }
示例#16
0
    static int set_supportStencil(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.supportStencil = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index supportStencil on a nil value"));
        }
    }
示例#17
0
    static int get_renderingOrder(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)o;
            int ret = obj.renderingOrder;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index renderingOrder on a nil value"));
        }
    }
示例#18
0
    static int get_onUpdate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GoWrapper      obj = (FairyGUI.GoWrapper)o;
            FairyGUI.EventCallback0 ret = obj.onUpdate;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onUpdate on a nil value"));
        }
    }