| | |
| | | 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_); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetTextColorByItemColor_xlua_st_(RealStatePtr L) |
| | | static int _m_AppendStringColor_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | 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); |
| | | |
| | | |
| | |
| | | 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); |
| | | |
| | | |
| | |
| | | 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); |
| | | |
| | | |
| | |
| | | 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); |
| | | |
| | | |
| | |
| | | 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!"); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | |
| | | 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>)); |
| | | |
| | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to UIHelper.GetFightPower!"); |
| | | |
| | | } |
| | | |