From 19333419291c543f9eed5600ab9b20d501827055 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 13 十一月 2018 10:43:32 +0800
Subject: [PATCH] 3335 api命名修改
---
Assets/XLua/Gen/UIHelperWrap.cs | 31 ++++++++-----------------------
1 files changed, 8 insertions(+), 23 deletions(-)
diff --git a/Assets/XLua/Gen/UIHelperWrap.cs b/Assets/XLua/Gen/UIHelperWrap.cs
index 4515407..6299461 100644
--- a/Assets/XLua/Gen/UIHelperWrap.cs
+++ b/Assets/XLua/Gen/UIHelperWrap.cs
@@ -43,7 +43,7 @@
Utils.RegisterFunc(L, Utils.CLS_IDX, "HasSpecialCharac", _m_HasSpecialCharac_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetColorNameByItemColor", _m_GetColorNameByItemColor_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetUIColor", _m_GetUIColor_xlua_st_);
- Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTextColorByItemColor", _m_GetTextColorByItemColor_xlua_st_);
+ Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendStringColor", _m_AppendStringColor_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRealmName", _m_GetRealmName_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetItemColor", _m_GetItemColor_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFightPower", _m_GetFightPower_xlua_st_);
@@ -419,7 +419,7 @@
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _m_GetTextColorByItemColor_xlua_st_(RealStatePtr L)
+ static int _m_AppendStringColor_xlua_st_(RealStatePtr L)
{
try {
@@ -435,7 +435,7 @@
string _msg = LuaAPI.lua_tostring(L, 2);
bool _bright = LuaAPI.lua_toboolean(L, 3);
- string gen_ret = UIHelper.GetTextColorByItemColor( _itemColor, _msg, _bright );
+ string gen_ret = UIHelper.AppendStringColor( _itemColor, _msg, _bright );
LuaAPI.lua_pushstring(L, gen_ret);
@@ -447,7 +447,7 @@
int _itemColor = LuaAPI.xlua_tointeger(L, 1);
string _msg = LuaAPI.lua_tostring(L, 2);
- string gen_ret = UIHelper.GetTextColorByItemColor( _itemColor, _msg );
+ string gen_ret = UIHelper.AppendStringColor( _itemColor, _msg );
LuaAPI.lua_pushstring(L, gen_ret);
@@ -460,7 +460,7 @@
string _msg = LuaAPI.lua_tostring(L, 2);
bool _bright = LuaAPI.lua_toboolean(L, 3);
- string gen_ret = UIHelper.GetTextColorByItemColor( _type, _msg, _bright );
+ string gen_ret = UIHelper.AppendStringColor( _type, _msg, _bright );
LuaAPI.lua_pushstring(L, gen_ret);
@@ -472,7 +472,7 @@
TextColType _type;translator.Get(L, 1, out _type);
string _msg = LuaAPI.lua_tostring(L, 2);
- string gen_ret = UIHelper.GetTextColorByItemColor( _type, _msg );
+ string gen_ret = UIHelper.AppendStringColor( _type, _msg );
LuaAPI.lua_pushstring(L, gen_ret);
@@ -484,7 +484,7 @@
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
- return LuaAPI.luaL_error(L, "invalid arguments to UIHelper.GetTextColorByItemColor!");
+ return LuaAPI.luaL_error(L, "invalid arguments to UIHelper.AppendStringColor!");
}
@@ -581,20 +581,7 @@
- int gen_param_count = LuaAPI.lua_gettop(L);
-
- if(gen_param_count >= 0&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 1) || LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)))
- {
- int[] _paraArray = translator.GetParams<int>(L, 1);
-
- uint gen_ret = UIHelper.GetFightPower( _paraArray );
- LuaAPI.xlua_pushuint(L, gen_ret);
-
-
-
- return 1;
- }
- if(gen_param_count == 1&& translator.Assignable<System.Collections.Generic.Dictionary<int, int>>(L, 1))
+
{
System.Collections.Generic.Dictionary<int, int> __propertyDict = (System.Collections.Generic.Dictionary<int, int>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<int, int>));
@@ -609,8 +596,6 @@
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
-
- return LuaAPI.luaL_error(L, "invalid arguments to UIHelper.GetFightPower!");
}
--
Gitblit v1.8.0