【本地化】相关接口添加
parent
48ffaf2470
commit
ac0f8097c3
|
|
@ -0,0 +1,72 @@
|
|||
//this source code was auto-generated by tolua#, do not modify it
|
||||
using System;
|
||||
using LuaInterface;
|
||||
|
||||
public class LanguageTextWrap
|
||||
{
|
||||
public static void Register(LuaState L)
|
||||
{
|
||||
L.BeginClass(typeof(LanguageText), typeof(UnityEngine.UI.Text));
|
||||
L.RegFunction("__eq", op_Equality);
|
||||
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||
L.RegVar("LanguageIndex", get_LanguageIndex, set_LanguageIndex);
|
||||
L.EndClass();
|
||||
}
|
||||
|
||||
[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_LanguageIndex(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
LanguageText obj = (LanguageText)o;
|
||||
int ret = obj.LanguageIndex;
|
||||
LuaDLL.lua_pushinteger(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index LanguageIndex on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_LanguageIndex(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
LanguageText obj = (LanguageText)o;
|
||||
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
||||
obj.LanguageIndex = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index LanguageIndex on a nil value");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4939ee0ecc50f2848b1b617c6ddd2287
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -23,6 +23,7 @@ public static class LuaBinder
|
|||
NotchScreenUtilWrap.Register(L);
|
||||
UITweenSpringWrap.Register(L);
|
||||
PlayFlyAnimWrap.Register(L);
|
||||
LanguageTextWrap.Register(L);
|
||||
RadarChartWrap.Register(L);
|
||||
RolePropertyWrap.Register(L);
|
||||
SetInternetPicWrap.Register(L);
|
||||
|
|
@ -204,6 +205,9 @@ public static class LuaBinder
|
|||
L.BeginModule("ScrollRect");
|
||||
UnityEngine_UI_ScrollRect_ScrollRectEventWrap.Register(L);
|
||||
L.EndModule();
|
||||
L.BeginModule("Dropdown");
|
||||
UnityEngine_UI_Dropdown_DropdownEventWrap.Register(L);
|
||||
L.EndModule();
|
||||
L.EndModule();
|
||||
L.BeginModule("Events");
|
||||
UnityEngine_Events_UnityEventWrap.Register(L);
|
||||
|
|
@ -212,6 +216,7 @@ public static class LuaBinder
|
|||
UnityEngine_Events_UnityEvent_floatWrap.Register(L);
|
||||
UnityEngine_Events_UnityEvent_stringWrap.Register(L);
|
||||
UnityEngine_Events_UnityEvent_UnityEngine_Vector2Wrap.Register(L);
|
||||
UnityEngine_Events_UnityEvent_intWrap.Register(L);
|
||||
L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
|
||||
L.RegFunction("UnityAction_int", UnityEngine_Events_UnityAction_int);
|
||||
L.RegFunction("UnityAction_string", UnityEngine_Events_UnityAction_string);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,68 @@
|
|||
//this source code was auto-generated by tolua#, do not modify it
|
||||
using System;
|
||||
using LuaInterface;
|
||||
|
||||
public class UnityEngine_Events_UnityEvent_intWrap
|
||||
{
|
||||
public static void Register(LuaState L)
|
||||
{
|
||||
L.BeginClass(typeof(UnityEngine.Events.UnityEvent<int>), typeof(UnityEngine.Events.UnityEventBase), "UnityEvent_int");
|
||||
L.RegFunction("AddListener", AddListener);
|
||||
L.RegFunction("RemoveListener", RemoveListener);
|
||||
L.RegFunction("Invoke", Invoke);
|
||||
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||
L.EndClass();
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int AddListener(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 2);
|
||||
UnityEngine.Events.UnityEvent<int> obj = (UnityEngine.Events.UnityEvent<int>)ToLua.CheckObject<UnityEngine.Events.UnityEvent<int>>(L, 1);
|
||||
UnityEngine.Events.UnityAction<int> arg0 = (UnityEngine.Events.UnityAction<int>)ToLua.CheckDelegate<UnityEngine.Events.UnityAction<int>>(L, 2);
|
||||
obj.AddListener(arg0);
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int RemoveListener(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 2);
|
||||
UnityEngine.Events.UnityEvent<int> obj = (UnityEngine.Events.UnityEvent<int>)ToLua.CheckObject<UnityEngine.Events.UnityEvent<int>>(L, 1);
|
||||
UnityEngine.Events.UnityAction<int> arg0 = (UnityEngine.Events.UnityAction<int>)ToLua.CheckDelegate<UnityEngine.Events.UnityAction<int>>(L, 2);
|
||||
obj.RemoveListener(arg0);
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int Invoke(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 2);
|
||||
UnityEngine.Events.UnityEvent<int> obj = (UnityEngine.Events.UnityEvent<int>)ToLua.CheckObject<UnityEngine.Events.UnityEvent<int>>(L, 1);
|
||||
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
||||
obj.Invoke(arg0);
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bcb4b6bfce76a4d4e90fa228b879161b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
//this source code was auto-generated by tolua#, do not modify it
|
||||
using System;
|
||||
using LuaInterface;
|
||||
|
||||
public class UnityEngine_UI_Dropdown_DropdownEventWrap
|
||||
{
|
||||
public static void Register(LuaState L)
|
||||
{
|
||||
L.BeginClass(typeof(UnityEngine.UI.Dropdown.DropdownEvent), typeof(UnityEngine.Events.UnityEvent<int>));
|
||||
L.RegFunction("New", _CreateUnityEngine_UI_Dropdown_DropdownEvent);
|
||||
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||
L.EndClass();
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _CreateUnityEngine_UI_Dropdown_DropdownEvent(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
int count = LuaDLL.lua_gettop(L);
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
UnityEngine.UI.Dropdown.DropdownEvent obj = new UnityEngine.UI.Dropdown.DropdownEvent();
|
||||
ToLua.PushObject(L, obj);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.UI.Dropdown.DropdownEvent.New");
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c7a64133bc7d31e4191e5241f2eeb82a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue