Пример #1
0
 static int SetDefaultScale(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ToLuaUIFramework.BButtonTrigger obj  = (ToLuaUIFramework.BButtonTrigger)ToLua.CheckObject <ToLuaUIFramework.BButtonTrigger>(L, 1);
         UnityEngine.Vector3             arg0 = ToLua.ToVector3(L, 2);
         obj.SetDefaultScale(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #2
0
 static int OnPointerUp(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ToLuaUIFramework.BButtonTrigger           obj  = (ToLuaUIFramework.BButtonTrigger)ToLua.CheckObject <ToLuaUIFramework.BButtonTrigger>(L, 1);
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2);
         obj.OnPointerUp(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #3
0
    static int get_targetImg(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj = (ToLuaUIFramework.BButtonTrigger)o;
            UnityEngine.UI.Image            ret = obj.targetImg;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index targetImg on a nil value"));
        }
    }
Пример #4
0
    static int set_changeTexture(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj  = (ToLuaUIFramework.BButtonTrigger)o;
            UnityEngine.Texture2D           arg0 = (UnityEngine.Texture2D)ToLua.CheckObject(L, 2, typeof(UnityEngine.Texture2D));
            obj.changeTexture = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index changeTexture on a nil value"));
        }
    }
Пример #5
0
    static int set_pressScale(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj = (ToLuaUIFramework.BButtonTrigger)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.pressScale = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index pressScale on a nil value"));
        }
    }
Пример #6
0
    static int set_changeColor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj = (ToLuaUIFramework.BButtonTrigger)o;
            UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
            obj.changeColor = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index changeColor on a nil value"));
        }
    }
Пример #7
0
    static int set_texture(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj = (ToLuaUIFramework.BButtonTrigger)o;
            bool arg0 = LuaDLL.luaL_checkboolean(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"));
        }
    }
Пример #8
0
    static int set_targetRawImg(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj  = (ToLuaUIFramework.BButtonTrigger)o;
            UnityEngine.UI.RawImage         arg0 = (UnityEngine.UI.RawImage)ToLua.CheckObject <UnityEngine.UI.RawImage>(L, 2);
            obj.targetRawImg = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index targetRawImg on a nil value"));
        }
    }
Пример #9
0
    static int get_changeTexture(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj = (ToLuaUIFramework.BButtonTrigger)o;
            UnityEngine.Texture2D           ret = obj.changeTexture;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index changeTexture on a nil value"));
        }
    }
Пример #10
0
    static int get_pressScale(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj = (ToLuaUIFramework.BButtonTrigger)o;
            float ret = obj.pressScale;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index pressScale on a nil value"));
        }
    }
Пример #11
0
    static int get_texture(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ToLuaUIFramework.BButtonTrigger obj = (ToLuaUIFramework.BButtonTrigger)o;
            bool ret = obj.texture;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index texture on a nil value"));
        }
    }
Пример #12
0
 void Awake()
 {
     buttonChange = GetComponent <BButtonTrigger>();
 }
Пример #13
0
 void OnEnable()
 {
     buttonChange = (BButtonTrigger)target;
 }