GoWrapper is class for wrapping common gameobject into UI display list.
Наследование: 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"));
        }
    }