572 lines
21 KiB
C#
572 lines
21 KiB
C#
#if USE_UNI_LUA
|
|
using LuaAPI = UniLua.Lua;
|
|
using RealStatePtr = UniLua.ILuaState;
|
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
|
#else
|
|
using LuaAPI = XLua.LuaDLL.Lua;
|
|
using RealStatePtr = System.IntPtr;
|
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
|
#endif
|
|
|
|
using XLua;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace XLua.CSObjectWrap
|
|
{
|
|
using Utils = XLua.Utils;
|
|
public class BFBattleSkillToastWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(BF.BattleSkillToast);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 5, 11, 11);
|
|
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowNormalSkillToast", _m_ShowNormalSkillToast);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowLegacySkillToast", _m_ShowLegacySkillToast);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetEnabled", _m_SetEnabled);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPause", _m_SetPause);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetResume", _m_SetResume);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "animator", _g_get_animator);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalBg", _g_get_normalBg);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "skillAtlas", _g_get_skillAtlas);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "skillIcon", _g_get_skillIcon);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "normalText", _g_get_normalText);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "legacyBg", _g_get_legacyBg);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "legacyAtlas", _g_get_legacyAtlas);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "legacyQltIcon", _g_get_legacyQltIcon);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "legacyIcon", _g_get_legacyIcon);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "legacyText", _g_get_legacyText);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ColorType", _g_get_ColorType);
|
|
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "animator", _s_set_animator);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalBg", _s_set_normalBg);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "skillAtlas", _s_set_skillAtlas);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "skillIcon", _s_set_skillIcon);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "normalText", _s_set_normalText);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "legacyBg", _s_set_legacyBg);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "legacyAtlas", _s_set_legacyAtlas);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "legacyQltIcon", _s_set_legacyQltIcon);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "legacyIcon", _s_set_legacyIcon);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "legacyText", _s_set_legacyText);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ColorType", _s_set_ColorType);
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
if(LuaAPI.lua_gettop(L) == 1)
|
|
{
|
|
|
|
var gen_ret = new BF.BattleSkillToast();
|
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
|
}
|
|
|
|
}
|
|
catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BattleSkillToast constructor!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_ShowNormalSkillToast(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _spriteName = LuaAPI.lua_tostring(L, 2);
|
|
string _desc = LuaAPI.lua_tostring(L, 3);
|
|
|
|
gen_to_be_invoked.ShowNormalSkillToast( _spriteName, _desc );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_ShowLegacySkillToast(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _qltName = LuaAPI.lua_tostring(L, 2);
|
|
string _iconName = LuaAPI.lua_tostring(L, 3);
|
|
string _desc = LuaAPI.lua_tostring(L, 4);
|
|
|
|
gen_to_be_invoked.ShowLegacySkillToast( _qltName, _iconName, _desc );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetEnabled(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
bool _enabled = LuaAPI.lua_toboolean(L, 2);
|
|
|
|
gen_to_be_invoked.SetEnabled( _enabled );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetPause(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.SetPause( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetResume(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.SetResume( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_animator(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.animator);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_normalBg(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.normalBg);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_skillAtlas(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.skillAtlas);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_skillIcon(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.skillIcon);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_normalText(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.normalText);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_legacyBg(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.legacyBg);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_legacyAtlas(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.legacyAtlas);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_legacyQltIcon(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.legacyQltIcon);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_legacyIcon(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.legacyIcon);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_legacyText(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.legacyText);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ColorType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ColorType);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_animator(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.animator = (UnityEngine.Animator)translator.GetObject(L, 2, typeof(UnityEngine.Animator));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_normalBg(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.normalBg = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_skillAtlas(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.skillAtlas = (BF.Atlas)translator.GetObject(L, 2, typeof(BF.Atlas));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_skillIcon(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.skillIcon = (UnityEngine.UI.Image)translator.GetObject(L, 2, typeof(UnityEngine.UI.Image));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_normalText(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.normalText = (TMPro.TextMeshProUGUI)translator.GetObject(L, 2, typeof(TMPro.TextMeshProUGUI));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_legacyBg(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.legacyBg = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_legacyAtlas(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.legacyAtlas = (BF.Atlas)translator.GetObject(L, 2, typeof(BF.Atlas));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_legacyQltIcon(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.legacyQltIcon = (UnityEngine.UI.Image)translator.GetObject(L, 2, typeof(UnityEngine.UI.Image));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_legacyIcon(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.legacyIcon = (UnityEngine.UI.Image)translator.GetObject(L, 2, typeof(UnityEngine.UI.Image));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_legacyText(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.legacyText = (TMPro.TextMeshProUGUI)translator.GetObject(L, 2, typeof(TMPro.TextMeshProUGUI));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ColorType(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BattleSkillToast gen_to_be_invoked = (BF.BattleSkillToast)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.ColorType = LuaAPI.xlua_tointeger(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|