//this source code was auto-generated by tolua#, do not modify it
|
|
using System;
|
|
using LuaInterface;
|
|
|
|
public class ButtonExtendWrap
|
|
{
|
|
public static void Register(LuaState L)
|
|
{
|
|
L.BeginClass(typeof(ButtonExtend), typeof(UnityEngine.UI.Button));
|
|
L.RegFunction("SetTarget", SetTarget);
|
|
L.RegFunction("SetOriginalSacle", SetOriginalSacle);
|
|
L.RegFunction("SetPressScale", SetPressScale);
|
|
L.RegFunction("SetNormalScale", SetNormalScale);
|
|
L.RegFunction("OnPointerDown", OnPointerDown);
|
|
L.RegFunction("OnPointerUp", OnPointerUp);
|
|
L.RegFunction("__eq", op_Equality);
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|
L.RegVar("scale_enabled", get_scale_enabled, set_scale_enabled);
|
|
L.RegVar("scale_target", get_scale_target, set_scale_target);
|
|
L.RegVar("press_scale", get_press_scale, set_press_scale);
|
|
L.RegVar("normal_scale", get_normal_scale, set_normal_scale);
|
|
L.EndClass();
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetTarget(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
|
|
UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
|
|
obj.SetTarget(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetOriginalSacle(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
|
|
UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
|
|
obj.SetOriginalSacle(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetPressScale(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
|
|
UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
|
|
obj.SetPressScale(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int SetNormalScale(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
|
|
UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
|
|
obj.SetNormalScale(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int OnPointerDown(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
|
|
UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
|
|
obj.OnPointerDown(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int OnPointerUp(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
ButtonExtend obj = (ButtonExtend)ToLua.CheckObject(L, 1, typeof(ButtonExtend));
|
|
UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
|
|
obj.OnPointerUp(arg0);
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int op_Equality(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
|
|
UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
|
|
bool o = arg0 == arg1;
|
|
LuaDLL.lua_pushboolean(L, o);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_scale_enabled(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
ButtonExtend obj = (ButtonExtend)o;
|
|
bool ret = obj.scale_enabled;
|
|
LuaDLL.lua_pushboolean(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale_enabled on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_scale_target(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
ButtonExtend obj = (ButtonExtend)o;
|
|
UnityEngine.Transform ret = obj.scale_target;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale_target on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_press_scale(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
ButtonExtend obj = (ButtonExtend)o;
|
|
UnityEngine.Vector3 ret = obj.press_scale;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index press_scale on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_normal_scale(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
ButtonExtend obj = (ButtonExtend)o;
|
|
UnityEngine.Vector3 ret = obj.normal_scale;
|
|
ToLua.Push(L, ret);
|
|
return 1;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normal_scale on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_scale_enabled(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
ButtonExtend obj = (ButtonExtend)o;
|
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|
obj.scale_enabled = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale_enabled on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_scale_target(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
ButtonExtend obj = (ButtonExtend)o;
|
|
UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
|
|
obj.scale_target = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scale_target on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_press_scale(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
ButtonExtend obj = (ButtonExtend)o;
|
|
UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
|
|
obj.press_scale = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index press_scale on a nil value" : e.Message);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_normal_scale(IntPtr L)
|
|
{
|
|
object o = null;
|
|
|
|
try
|
|
{
|
|
o = ToLua.ToObject(L, 1);
|
|
ButtonExtend obj = (ButtonExtend)o;
|
|
UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
|
|
obj.normal_scale = arg0;
|
|
return 0;
|
|
}
|
|
catch(Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normal_scale on a nil value" : e.Message);
|
|
}
|
|
}
|
|
}
|
|
|