Merge branch 'master' of http://mobile.173on.com:10010/r/snxxz_scripts
| | |
| | |
|
| | | _stringBuilder.Remove(0, _stringBuilder.Length);
|
| | |
|
| | | HttpRequest.Instance.RequestHttpGet(_stringBuilder.Append("http://recharge.game.2460web.com:11000/api?").
|
| | | HttpRequest.Instance.RequestHttpGet(_stringBuilder.Append("http://recharge.game.secondworld.net.cn:11000/api?").
|
| | | Append(HttpRequest.HashtablaToString(m_PaymentTable)).ToString(),
|
| | | HttpRequest.defaultHttpContentType, 1, (bool result, string message) =>
|
| | | {
|
| | |
| | | {
|
| | | BuildFreePlatformInfo(data);
|
| | |
|
| | | string _url = StringUtility.Contact("http://pub.game.2460web.com:11000/event_receiver?ProductID=xbqy",
|
| | | string _url = StringUtility.Contact("http://pub.game.secondworld.net.cn:11000/event_receiver?ProductID=xbqy",
|
| | | "&OperatorID=", VersionConfig.Get().appId,
|
| | | "&RegionName=data&RegionID=0&EventID=1105&Time=",
|
| | | DateTime.Now.ToString(),
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | if (WindowCenter.Instance.ExistAnyFullScreenOrMaskWin()
|
| | | && (!WindowCenter.Instance.IsOpen<HazyRegionWin>() && !WindowCenter.Instance.IsOpen<HazyRegionFrameWin>()))
|
| | | {
|
| | | startAutoHazyRegion = false;
|
| | | return;
|
| | | }
|
| | | //if (WindowCenter.Instance.ExistAnyFullScreenOrMaskWin()
|
| | | // && (!WindowCenter.Instance.IsOpen<HazyRegionWin>() && !WindowCenter.Instance.IsOpen<HazyRegionFrameWin>()))
|
| | | //{
|
| | | // startAutoHazyRegion = false;
|
| | | // return;
|
| | | //}
|
| | |
|
| | | if (AdventureStage.Instance.IsInAdventureStage
|
| | | || ClientDungeonStageUtility.isClientDungeon
|
| | |
| | |
|
| | | var _curMapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|
| | | // 副本中不可以传送
|
| | | if (_curMapConfig.MapFBType != 0)
|
| | | if (_curMapConfig.MapFBType != 0 && PlayerDatas.Instance.baseData.MapID != 31020)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("InDungeon_CantGo");
|
| | | return;
|
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, string> __Gen_Delegate_Imp273(object p0) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp273(object p0, bool p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | LuaAPI.lua_pushboolean(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | System.Collections.IEnumerator __gen_ret = (System.Collections.IEnumerator)translator.GetObject(L, errFunc + 1, typeof(System.Collections.IEnumerator)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, string> __Gen_Delegate_Imp274(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int[] __Gen_Delegate_Imp274(object p0) |
| | | public int[] __Gen_Delegate_Imp275(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int[] __Gen_Delegate_Imp275(object p0, int p1) |
| | | public int[] __Gen_Delegate_Imp276(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.GodWeaponInfo __Gen_Delegate_Imp276(object p0, int p1) |
| | | public Snxxz.UI.GodWeaponInfo __Gen_Delegate_Imp277(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp277(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.GodWeaponCondition> p2) |
| | | public bool __Gen_Delegate_Imp278(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.GodWeaponCondition> p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp278(object p0, int p1, out Snxxz.UI.AutoHammerCost p2) |
| | | public bool __Gen_Delegate_Imp279(object p0, int p1, out Snxxz.UI.AutoHammerCost p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.List<int> __Gen_Delegate_Imp279(object p0, int p1) |
| | | public System.Collections.Generic.List<int> __Gen_Delegate_Imp280(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp280(object p0, object p1, object p2) |
| | | public void __Gen_Delegate_Imp281(object p0, object p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp281(object p0, int p1, out int p2, out int p3) |
| | | public bool __Gen_Delegate_Imp282(object p0, int p1, out int p2, out int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp282(object p0, int p1, int p2) |
| | | public string __Gen_Delegate_Imp283(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp283(object p0, TextColType p1, bool p2) |
| | | public void __Gen_Delegate_Imp284(object p0, TextColType p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public uint __Gen_Delegate_Imp284(object p0) |
| | | public uint __Gen_Delegate_Imp285(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp285(object p0, uint p1) |
| | | public void __Gen_Delegate_Imp286(object p0, uint p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp286(object p0, int p1, out Snxxz.UI.RuneItem p2) |
| | | public bool __Gen_Delegate_Imp287(object p0, int p1, out Snxxz.UI.RuneItem p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp287(object p0, int p1, out Snxxz.UI.RuneHoleCondition p2) |
| | | public bool __Gen_Delegate_Imp288(object p0, int p1, out Snxxz.UI.RuneHoleCondition p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp288(object p0, int p1, out Snxxz.UI.RuneItem p2) |
| | | public int __Gen_Delegate_Imp289(object p0, int p1, out Snxxz.UI.RuneItem p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp289(object p0, int p1, out Snxxz.UI.RuneModel.RuneHoleRedpoint p2) |
| | | public bool __Gen_Delegate_Imp290(object p0, int p1, out Snxxz.UI.RuneModel.RuneHoleRedpoint p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int __Gen_Delegate_Imp290(object p0, int p1, float p2) |
| | | public int __Gen_Delegate_Imp291(object p0, int p1, float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp291(object p0, int p1, uint p2) |
| | | public bool __Gen_Delegate_Imp292(object p0, int p1, uint p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RuneResolveModel __Gen_Delegate_Imp292(object p0) |
| | | public Snxxz.UI.RuneResolveModel __Gen_Delegate_Imp293(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RuneModel __Gen_Delegate_Imp293(object p0) |
| | | public Snxxz.UI.RuneModel __Gen_Delegate_Imp294(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public float __Gen_Delegate_Imp294(object p0, int p1, int p2, bool p3) |
| | | public float __Gen_Delegate_Imp295(object p0, int p1, int p2, bool p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public float __Gen_Delegate_Imp295(object p0, int p1) |
| | | public float __Gen_Delegate_Imp296(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp296(object p0, int p1, out Snxxz.UI.TreasureSkill p2) |
| | | public bool __Gen_Delegate_Imp297(object p0, int p1, out Snxxz.UI.TreasureSkill p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp297(object p0, int p1, out Snxxz.UI.TreasurePotential p2) |
| | | public bool __Gen_Delegate_Imp298(object p0, int p1, out Snxxz.UI.TreasurePotential p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TreasureSkillModel __Gen_Delegate_Imp298(object p0) |
| | | public Snxxz.UI.TreasureSkillModel __Gen_Delegate_Imp299(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.SkillModel __Gen_Delegate_Imp299(object p0) |
| | | public Snxxz.UI.SkillModel __Gen_Delegate_Imp300(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp300(object p0) |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp301(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp301(object p0) |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp302(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp302(object p0) |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp303(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UIEffect __Gen_Delegate_Imp303(object p0) |
| | | public UIEffect __Gen_Delegate_Imp304(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig __Gen_Delegate_Imp304(object p0) |
| | | public Treasure3DConfig __Gen_Delegate_Imp305(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp305(object p0, UnityEngine.Vector3 p1) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp306(object p0, UnityEngine.Vector3 p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp306(object p0) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp307(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp307(object p0) |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp308(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp308() |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp309() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public TreasureCategory __Gen_Delegate_Imp309(object p0) |
| | | public TreasureCategory __Gen_Delegate_Imp310(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp310(object p0, bool p1, TreasureCategory p2) |
| | | public void __Gen_Delegate_Imp311(object p0, bool p1, TreasureCategory p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp311(object p0, TreasureCategory p1, object p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp312(object p0, TreasureCategory p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp312(object p0, TreasureCategory p1, bool p2) |
| | | public void __Gen_Delegate_Imp313(object p0, TreasureCategory p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp313(object p0, int p1) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp314(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp314(object p0, object p1, float p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp315(object p0, object p1, float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp315(object p0) |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp316(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0519bc8b12950f94780ca13048187d11 |
| | | timeCreated: 1573039444 |
| | | timeCreated: 1573207905 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | Utils.BeginObjectRegister(typeof(ItemOperateType), L, translator, 0, 0, 0, 0); |
| | | Utils.EndObjectRegister(typeof(ItemOperateType), L, translator, null, null, null, null, null); |
| | | |
| | | Utils.BeginClassRegister(typeof(ItemOperateType), L, null, 25, 0, 0); |
| | | Utils.BeginClassRegister(typeof(ItemOperateType), L, null, 26, 0, 0); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "makeUse", ItemOperateType.makeUse); |
| | | |
| | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "train", ItemOperateType.train); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "star", ItemOperateType.star); |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "lsExchange", ItemOperateType.lsExchange); |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); |
| | | |
| | |
| | | { |
| | | translator.PushItemOperateType(L, ItemOperateType.star); |
| | | } |
| | | else if (LuaAPI.xlua_is_eq_str(L, 1, "lsExchange")) |
| | | { |
| | | translator.PushItemOperateType(L, ItemOperateType.lsExchange); |
| | | } |
| | | else |
| | | { |
| | | return LuaAPI.luaL_error(L, "invalid string for ItemOperateType!"); |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 881e0b71befc6fa4280f462d3ea21f1b |
| | | timeCreated: 1573039490 |
| | | timeCreated: 1573207954 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ItemLogicUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 37, 3, 1); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 38, 3, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEquipScore", _m_GetEquipScore); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSpecialSpiritPropertyMaxLevel", _m_GetSpecialSpiritPropertyMaxLevel); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreciousItemEvent", _e_GetPreciousItemEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetExpItemEvent", _e_GetExpItemEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBetterEquipEvent", _e_GetBetterEquipEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PickItemEvent", _e_PickItemEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "lookEquipEvent", _e_lookEquipEvent); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_GetExpItemEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.ItemLogicUtility gen_to_be_invoked = (Snxxz.UI.ItemLogicUtility)translator.FastGetCSObj(L, 1); |
| | | System.Action<PackType, string> gen_delegate = translator.GetDelegate<System.Action<PackType, string>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<PackType, string>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.GetExpItemEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.GetExpItemEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.ItemLogicUtility.GetExpItemEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_GetBetterEquipEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c9953e4a63f12b244a1a8a977a11af88 |
| | | timeCreated: 1573039508 |
| | | timeCreated: 1573207987 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.PackModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 77, 23, 5); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 77, 24, 6); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ParseItemCount", _m_ParseItemCount); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isAutoDecompose", _g_get_isAutoDecompose); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "recordAutoDecomNum", _g_get_recordAutoDecomNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "getItems", _g_get_getItems); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lsItemID", _g_get_lsItemID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "textCountShow", _g_get_textCountShow); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpointEquipDecom", _g_get_redpointEquipDecom); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectDevourlist", _g_get_selectDevourlist); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "isPlayBetterEquipEffect", _s_set_isPlayBetterEquipEffect); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "isAutoDecompose", _s_set_isAutoDecompose); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "lsItemID", _s_set_lsItemID); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "textCountShow", _s_set_textCountShow); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "redpointEquipDecom", _s_set_redpointEquipDecom); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectDevourlist", _s_set_selectDevourlist); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_lsItemID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.PackModel gen_to_be_invoked = (Snxxz.UI.PackModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.lsItemID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_textCountShow(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_lsItemID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.PackModel gen_to_be_invoked = (Snxxz.UI.PackModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.lsItemID = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_textCountShow(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | fileFormatVersion: 2 |
| | | guid: eaf5981291c22b14587ae78467f1b017 |
| | | timeCreated: 1573039524 |
| | | timeCreated: 1573207998 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | if (StageLoad.Instance.currentStage is DungeonStage)
|
| | | {
|
| | | var _mapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|
| | | if (_mapConfig.MapFBType == 0)
|
| | | if (_mapConfig.MapFBType == 0 || PlayerDatas.Instance.baseData.MapID == 31020)
|
| | | {
|
| | | mainStage = true;
|
| | | SnxxzGame.Instance.StartCoroutine(Co_StageLoad());
|
| | |
| | | var cost = immediatly ? config.BuyoutPrice * item.itemCount : AuctionLogicUtil.GetBiddingRequireMoney(item);
|
| | | var label = Language.Get(immediatly ? "PMH_02" : "PMH_01", cost);
|
| | | var itemConfig = ItemConfig.Get(item.itemId);
|
| | | if (itemConfig.JobLimit != PlayerDatas.Instance.baseData.Job)
|
| | | if (ItemLogicUtility.Instance.IsRealmEquip(item.itemId) && itemConfig.JobLimit != PlayerDatas.Instance.baseData.Job)
|
| | | label = label + "\n" + Language.Get("PMH_NoJob");
|
| | |
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), label, (bool isOk) =>
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | const string downloadUrl = "http://{0}.voice.2460web.com:53001/voice/download";
|
| | | const string downloadUrl = "http://{0}.voice.secondworld.net.cn:53001/voice/download";
|
| | | private void SendSpeech(byte[] encode, long _tick, bool clientBan)
|
| | | {
|
| | | if (IsChatBanned || clientBan)
|
| | |
| | | public class VoiceHttpRequest : SingletonMonobehaviour<VoiceHttpRequest>
|
| | |
|
| | | {
|
| | | const string uploadUrl = "http://{0}.voice.2460web.com:53001/voice/upload";
|
| | | const string downloadUrl = "http://{0}.voice.2460web.com:53001/voice/download";
|
| | | const string uploadUrl = "http://{0}.voice.secondworld.net.cn:53001/voice/upload";
|
| | | const string downloadUrl = "http://{0}.voice.secondworld.net.cn:53001/voice/download";
|
| | |
|
| | |
|
| | | public Queue<VoiceHttp> speechs = new Queue<VoiceHttp>();
|
| | |
| | | public class VersionUtility : Singleton<VersionUtility>
|
| | | {
|
| | | public static readonly string[] VERSION_URL = new string[] {
|
| | | "http://pub.game.2460web.com:11000/appversion/?" ,
|
| | | "http://pub.game.secondworld.net.cn:11000/appversion/?" ,
|
| | | "http://111.230.234.252:11000/appversion/?"};
|
| | |
|
| | | public string androidRoot { get { return StringUtility.Contact(SDKUtility.Instance.DeviceRootPath, "/", VersionConfig.Get().bundleIdentifier); } }
|
| | |
| | | [XLua.LuaCallCSharp]
|
| | | public class DebugUtility : Singleton<DebugUtility>
|
| | | {
|
| | | const string url = "http://pub.game.2460web.com:11000/dbg_player/?";
|
| | | const string url = "http://pub.game.secondworld.net.cn:11000/dbg_player/?";
|
| | |
|
| | | GameObject debugRoot;
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | language = Language.Get(config.ExitDescription);
|
| | | //language = Language.Get(config.ExitDescription);
|
| | | }
|
| | | }
|
| | | else if (dataMapId == GatherSoulDungeonModel.DUNGEON_MAPID)
|
| | |
| | | language = Language.Get(config.ExitDescription);
|
| | | }
|
| | |
|
| | | ConfirmCancel.ShowPopConfirm(
|
| | | Language.Get("Mail101"),
|
| | | language,
|
| | | (bool _ok) =>
|
| | | {
|
| | | if (_ok)
|
| | | if (language == string.Empty)
|
| | | {
|
| | | ExitDungeon_OK(dataMapId);
|
| | | }
|
| | | else {
|
| | | ConfirmCancel.ShowPopConfirm(
|
| | | Language.Get("Mail101"),
|
| | | language,
|
| | | (bool _ok) =>
|
| | | {
|
| | | switch (dataMapId)
|
| | | if (_ok)
|
| | | {
|
| | | case HazyGrassModel.FAIRY_DATAMAP:
|
| | | case HazyGrassModel.REIKI_DATAMAP:
|
| | | case HazyDemonKingModel.CROSSSERVERDATAMAP:
|
| | | case CrossServerBossModel.DATA_MAPID:
|
| | | var crossServerBossModel = ModelCenter.Instance.GetModel<CrossServerBossModel>();
|
| | | crossServerBossModel.RequestExit();
|
| | | break;
|
| | | case TreasureModel.CLIENTDATAMAP:
|
| | | case HazyRegionModel.PRECIOUS_CLIENTDATAMAP:
|
| | | case PersonalBossModel.PERSONALBOSS_MAPID:
|
| | | case ClientGuardDungeon.DATAMAPID:
|
| | | case HazyGrassModel.REIKI_CLIENTDATAMAP:
|
| | | case HazyGrassModel.FAIRY_CLIENTDATAMAP:
|
| | | case HazyDemonKingModel.CLIENTDATAMAP:
|
| | | ClientDungeonStageUtility.ExitNormalClientDungeon();
|
| | | break;
|
| | | case DemonJarModel.DATA_MAPID:
|
| | | if (StageLoad.Instance.currentStage is FakeDemonJarDungeonStage)
|
| | | {
|
| | | ClientDungeonStageUtility.ExitNormalClientDungeon();
|
| | | }
|
| | | else
|
| | | {
|
| | | model.ExitCurrentDungeon();
|
| | | }
|
| | | break;
|
| | | default:
|
| | | model.ExitCurrentDungeon();
|
| | | break;
|
| | | ExitDungeon_OK(dataMapId);
|
| | | }
|
| | | }
|
| | | }
|
| | | );
|
| | | );
|
| | | }
|
| | | }
|
| | |
|
| | | private void ExitDungeon_OK(int dataMapId) {
|
| | | switch (dataMapId)
|
| | | {
|
| | | case HazyGrassModel.FAIRY_DATAMAP:
|
| | | case HazyGrassModel.REIKI_DATAMAP:
|
| | | case HazyDemonKingModel.CROSSSERVERDATAMAP:
|
| | | case CrossServerBossModel.DATA_MAPID:
|
| | | var crossServerBossModel = ModelCenter.Instance.GetModel<CrossServerBossModel>();
|
| | | crossServerBossModel.RequestExit();
|
| | | break;
|
| | | case TreasureModel.CLIENTDATAMAP:
|
| | | case HazyRegionModel.PRECIOUS_CLIENTDATAMAP:
|
| | | case PersonalBossModel.PERSONALBOSS_MAPID:
|
| | | case ClientGuardDungeon.DATAMAPID:
|
| | | case HazyGrassModel.REIKI_CLIENTDATAMAP:
|
| | | case HazyGrassModel.FAIRY_CLIENTDATAMAP:
|
| | | case HazyDemonKingModel.CLIENTDATAMAP:
|
| | | ClientDungeonStageUtility.ExitNormalClientDungeon();
|
| | | break;
|
| | | case DemonJarModel.DATA_MAPID:
|
| | | if (StageLoad.Instance.currentStage is FakeDemonJarDungeonStage)
|
| | | {
|
| | | ClientDungeonStageUtility.ExitNormalClientDungeon();
|
| | | }
|
| | | else
|
| | | {
|
| | | model.ExitCurrentDungeon();
|
| | | }
|
| | | break;
|
| | | default:
|
| | | model.ExitCurrentDungeon();
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | private void ShowItemCollect()
|
| | |
| | | }
|
| | | switch (mapId)
|
| | | {
|
| | | case DemonJarModel.DATA_MAPID:
|
| | | case JadeDynastyBossModel.JADEDYNASTY_MAP:
|
| | | case AllianceBossModel.DATAMAPID:
|
| | | m_Icon.SetSprite("W_XYGuwu_a2");
|
| | |
| | | [SerializeField] Button m_Cancel;
|
| | | [SerializeField] Button m_Close;
|
| | |
|
| | | [SerializeField] TextEx m_CoinMostTimes;
|
| | |
|
| | |
|
| | | DungeonModel model { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | DemonJarModel demonJarModel { get { return ModelCenter.Instance.GetModel<DemonJarModel>(); } }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | m_CoinInspire.gameObject.SetActive(coinInspireConfig != null);
|
| | | if (coinInspireConfig != null)
|
| | | m_CoinMostTimes.text = Language.Get(coinInspireConfig.InspireCount == 10 ? "FairyLandMostTimes2" : "FairyLandMostTimes1");
|
| | | m_FairyInspire.gameObject.SetActive(fairyInspireConfig != null);
|
| | |
|
| | | coinInspire = IsCoinInspireLimit() ? false : true;
|
| | | fairyInspire = !coinInspire;
|
| | |
| | | packModel.refrechPackEvent += OnItemPackRefresh; |
| | | packModel.refreshItemCountEvent += OnItemCountRefresh; |
| | | PlayerDatas.Instance.playerDataRefreshEvent += OnPlayerDataRefresh; |
| | | |
| | | } |
| | | |
| | | public override void UnInit() |
| | |
| | | refreshAllSuitPoint = false; |
| | | } |
| | | |
| | | public Dictionary<int, int> EquipLevelFuncID = new Dictionary<int, int>(); |
| | | |
| | | public void ParseEquipLevelFuncID() |
| | | { |
| | | var textConfig = FuncConfigConfig.Get("EquipPlusByFuncID"); |
| | | var json = JsonMapper.ToObject(textConfig.Numerical1); |
| | | foreach (var key in json.Keys) |
| | | { |
| | | var funcid = int.Parse(key); |
| | | EquipLevelFuncID[funcid] = (int)json[key]; |
| | | } |
| | | } |
| | | public void OnAfterPlayerDataInitialize() |
| | | { |
| | | var playerId = PlayerDatas.Instance.baseData.PlayerID; |
| | |
| | | var sets = new List<int>(); |
| | | for (var i = 0; i < sortedLevels.Count; i++) |
| | | { |
| | | var level = sortedLevels[i]; |
| | | var set = equipSets[level]; |
| | | if (set.unLocked) |
| | | { |
| | | sets.Add(set.level); |
| | | } |
| | | else |
| | | { |
| | | break; |
| | | } |
| | | } |
| | | |
| | | return sets; |
| | | } |
| | | |
| | | public List<int> GetUnLockedEquipSetsByFuncID(int funcID) |
| | | { |
| | | var sets = new List<int>(); |
| | | int limitLevel = 0; |
| | | if (EquipLevelFuncID != null) |
| | | limitLevel = EquipLevelFuncID[funcID]; |
| | | |
| | | for (var i = 0; i < sortedLevels.Count; i++) |
| | | { |
| | | if (i < (limitLevel-1)) continue; |
| | | var level = sortedLevels[i]; |
| | | var set = equipSets[level]; |
| | | if (set.unLocked) |
| | |
| | | var name = json[key].ToString(); |
| | | equipSetNames[level] = name; |
| | | } |
| | | |
| | | ParseEquipLevelFuncID(); |
| | | } |
| | | |
| | | public static int GetItemServerEquipPlace(int itemId) |
| | |
| | | |
| | | [SerializeField] RectTransform m_SuitContainer; |
| | | [SerializeField] SuitBehaviour[] m_SuitBehaviours; |
| | | [SerializeField] RectTransform m_TrainContainer; |
| | | |
| | | [SerializeField] Text m_StarProperty; |
| | | [SerializeField] Text m_GemHole; |
| | |
| | | [SerializeField] Text m_TrainLimit; |
| | | |
| | | EquipStarEffectTipModel model { get { return ModelCenter.Instance.GetModel<EquipStarEffectTipModel>(); } } |
| | | EquipTrainModel equipTrainModel { get { return ModelCenter.Instance.GetModel<EquipTrainModel>(); } } |
| | | |
| | | #region Built-in |
| | | protected override void BindController() |
| | |
| | | |
| | | private void DisplayTrainLimit() |
| | | { |
| | | if (model.equipPosition.x < equipTrainModel.limitLevel) |
| | | { |
| | | m_TrainContainer.gameObject.SetActive(false); |
| | | return; |
| | | } |
| | | m_TrainContainer.gameObject.SetActive(true); |
| | | |
| | | var effectInfos = model.GetTrainLevelInfos(model.equipPosition); |
| | | var descriptions = new string[effectInfos.Count]; |
| | | for (var i = 0; i < descriptions.Length; i++) |
| | |
| | | EquipStarModel starModel { get { return ModelCenter.Instance.GetModel<EquipStarModel>(); } } |
| | | EquipStarSuccessModel model { get { return ModelCenter.Instance.GetModel<EquipStarSuccessModel>(); } } |
| | | EquipStrengthModel strengthModel { get { return ModelCenter.Instance.GetModel<EquipStrengthModel>(); } } |
| | | EquipTrainModel equipTrainModel { get { return ModelCenter.Instance.GetModel<EquipTrainModel>(); } } |
| | | |
| | | int ActiveSuit = -1; |
| | | string ActiveSuitString = string.Empty; |
| | |
| | | |
| | | private void DisplayTrainLevel() |
| | | { |
| | | if (model.equipPosition.x < equipTrainModel.limitLevel) |
| | | return; |
| | | var type = EquipTrainModel.GetTrainType(model.equipPosition.y); |
| | | var beforeConfig = WashLevelMaxConfig.Get(type, model.star - 1); |
| | | var nowConfig = WashLevelMaxConfig.Get(type, model.star); |
| | |
| | | |
| | | public class EquipTrainSet |
| | | { |
| | | public readonly int level = 0; |
| | | public readonly int level = 1; |
| | | public Redpoint redpoint; |
| | | Dictionary<int, EquipTrain> equipTrains = new Dictionary<int, EquipTrain>(); |
| | | |
| | |
| | | PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } } |
| | | EquipModel equipModel { get { return ModelCenter.Instance.GetModel<EquipModel>(); } } |
| | | |
| | | public int limitLevel; |
| | | |
| | | public override void Init() |
| | | { |
| | | ParseConfig(); |
| | |
| | | var levels = equipModel.GetAllEquipSets(); |
| | | foreach (var level in levels) |
| | | { |
| | | if (level < limitLevel) continue; |
| | | equipTrains[level] = new EquipTrainSet(level); |
| | | } |
| | | |
| | |
| | | public void SelectLevel(int level) |
| | | { |
| | | selectedLevel.value = level; |
| | | selectedLevel.dirty = true; |
| | | candidatePlaces.Clear(); |
| | | |
| | | if (level > 0) |
| | |
| | | } |
| | | } |
| | | |
| | | return new Int2(1, 1); |
| | | return new Int2(limitLevel, 1); |
| | | } |
| | | |
| | | public int GetTrainLevel(Int2 equipPosition) |
| | |
| | | { |
| | | var config = FuncConfigConfig.Get("EquipWashGroup"); |
| | | trainTypes = ConfigParse.GetDic<int, int>(config.Numerical1); |
| | | |
| | | if (equipModel.EquipLevelFuncID == null) |
| | | equipModel.ParseEquipLevelFuncID(); |
| | | limitLevel = equipModel.EquipLevelFuncID[91]; |
| | | } |
| | | |
| | | public static int GetTrainType(int place) |
| | |
| | | |
| | | private void CreateLevelBehaviours() |
| | | { |
| | | var levels = equipModel.GetUnLockedEquipSets(); |
| | | var levels = equipModel.GetUnLockedEquipSetsByFuncID(91); |
| | | var gap = levels.Count - levelBehaviours.Count; |
| | | for (var i = 0; i < gap; i++) |
| | | { |
| | |
| | | {
|
| | | var iEqu = suitEquips[i];
|
| | |
|
| | | if (!ItemLogicUtility.Instance.IsJobCompatibleItem(iEqu.itemId))
|
| | | if (!ItemLogicUtility.Instance.IsJobCompatibleItem(iEqu.itemId) && !iEqu.isAuction)
|
| | | {
|
| | | ChoseEquips.Add(iEqu);
|
| | | }
|
| | |
| | | [XLua.LuaCallCSharp]
|
| | | public class DemonJarModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, ISwitchAccount, IPlayerLoginOk
|
| | | {
|
| | | public const int TOTALTIME_LIMIT = 5;
|
| | | public const int TOTALTIME_LIMIT = 3;
|
| | |
|
| | | public const int SINGLEMAPID = 52020;
|
| | | public const int DATA_MAPID = 52010;
|
| | |
| | | case 6:
|
| | | SysNotifyMgr.Instance.ShowTip("BossRealmHint2", NPCConfig.Get(model.selectedBoss).Realm);
|
| | | break;
|
| | | case 7:
|
| | | SysNotifyMgr.Instance.ShowTip("DungeonNoGO");
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | | var mapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|
| | | if (mapConfig.MapFBType != (int)MapType.OpenCountry && PlayerDatas.Instance.baseData.MapID != 31020)
|
| | | {
|
| | | _error = 7;
|
| | | return false;
|
| | | }
|
| | |
|
| | | _error = 0;
|
| | | return true;
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | var mapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|
| | | if (mapConfig.MapFBType != (int)MapType.OpenCountry)
|
| | | if (mapConfig.MapFBType != (int)MapType.OpenCountry && PlayerDatas.Instance.baseData.MapID != 31020)
|
| | | {
|
| | | _error = 3;
|
| | | return false;
|
| | |
| | |
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var mapConfig = MapConfig.Get(mapId);
|
| | | if (mapConfig.MapFBType == (int)MapType.OpenCountry)
|
| | | if (mapConfig.MapFBType == (int)MapType.OpenCountry || PlayerDatas.Instance.baseData.MapID == 31020)
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | demonJarModel.selectedBoss = _bossId;
|
| | |
| | |
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var mapConfig = MapConfig.Get(mapId);
|
| | | if (mapConfig.MapFBType != (int)MapType.OpenCountry)
|
| | | if (mapConfig.MapFBType != (int)MapType.OpenCountry && PlayerDatas.Instance.baseData.MapID != 31020)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("InDungeon_CantGo");
|
| | | return;
|
| | |
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var mapConfig = MapConfig.Get(mapId);
|
| | |
|
| | | if (mapConfig.MapFBType == (int)MapType.OpenCountry)
|
| | | if (mapConfig.MapFBType == (int)MapType.OpenCountry || PlayerDatas.Instance.baseData.MapID == 31020)
|
| | | {
|
| | | var error = 0;
|
| | | if (TestEnterElderGodAreaDungeon(out error))
|
| | |
| | | }
|
| | |
|
| | | var mapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|
| | | if (mapConfig.MapFBType != (int)MapType.OpenCountry)
|
| | | if (mapConfig.MapFBType != (int)MapType.OpenCountry && PlayerDatas.Instance.baseData.MapID != 31020)
|
| | | {
|
| | | _error = 4;
|
| | | return false;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | tip = Language.Get(config.ExitDescription);
|
| | | //tip = Language.Get(config.ExitDescription);
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | tip = Language.Get(config.ExitDescription);
|
| | | }
|
| | |
|
| | | ConfirmCancel.ShowPopConfirm(
|
| | | Language.Get("Mail101"),
|
| | | tip,
|
| | | (bool _ok) =>
|
| | | {
|
| | | if (_ok)
|
| | | if (tip == string.Empty)
|
| | | {
|
| | | WindowCenter.Instance.Close<FindPreciousFrameWin>();
|
| | | MapTransferUtility.Instance.MoveToNPC(model.selectedBoss);
|
| | | }
|
| | | else {
|
| | | ConfirmCancel.ShowPopConfirm(
|
| | | Language.Get("Mail101"),
|
| | | tip,
|
| | | (bool _ok) =>
|
| | | {
|
| | | WindowCenter.Instance.Close<FindPreciousFrameWin>();
|
| | | MapTransferUtility.Instance.MoveToNPC(model.selectedBoss);
|
| | | if (_ok)
|
| | | {
|
| | | WindowCenter.Instance.Close<FindPreciousFrameWin>();
|
| | | MapTransferUtility.Instance.MoveToNPC(model.selectedBoss);
|
| | | }
|
| | | }
|
| | | }
|
| | | );
|
| | | );
|
| | | }
|
| | | break;
|
| | | case 2:
|
| | | SysNotifyMgr.Instance.ShowTip("InDungeon_CantGo");
|
| | |
| | | case ItemOperateType.exchange: |
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.ExchangeActiveToken); |
| | | break; |
| | | case ItemOperateType.lsExchange: |
| | | WindowCenter.Instance.Open<LingShiChange>(); |
| | | break; |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | var config = ItemConfig.Get(itemId); |
| | | var operates = new List<ItemOperateType>(); |
| | | if (config.CanSell == 1) |
| | | var lsItemID = 150; |
| | | if (config.CanSell == 1 && itemId != lsItemID) |
| | | { |
| | | operates.Add(ItemOperateType.sell); |
| | | } |
| | | |
| | | if (itemCount > 1) |
| | | if (itemCount > 1 && itemId != lsItemID) |
| | | { |
| | | operates.Add(ItemOperateType.split); |
| | | } |
| | | |
| | | if (config.UseTag == 1) |
| | | { |
| | | operates.Add(ItemOperateType.makeUse); |
| | | if (itemId != lsItemID) |
| | | operates.Add(ItemOperateType.makeUse); |
| | | else |
| | | operates.Add(ItemOperateType.lsExchange); |
| | | } |
| | | |
| | | if (config.Type == 25 || config.Effect1 == 225) |
| | |
| | | |
| | | if (FuncOpen.Instance.IsFuncOpen(91)) |
| | | { |
| | | operates.Add(ItemOperateType.train); |
| | | int limitLevel = 0; |
| | | if (equipModel.EquipLevelFuncID != null) |
| | | limitLevel = equipModel.EquipLevelFuncID[91]; |
| | | if (item.config.LV >= limitLevel) |
| | | operates.Add(ItemOperateType.train); |
| | | } |
| | | |
| | | return operates; |
| | |
| | | case ItemOperateType.exchange: |
| | | this.m_Title.text = "兑换"; |
| | | break; |
| | | case ItemOperateType.lsExchange: |
| | | this.m_Title.text = "灵石兑换"; |
| | | break; |
| | | case ItemOperateType.renewal: |
| | | this.m_Title.text = "前往购买"; |
| | | break; |
| | |
| | | Dictionary<int, int> specialSpiritPropertyMaxLevels;
|
| | |
|
| | | private int[] preciousItemTypes;
|
| | | private int[] preciousItemIDs; // 不展示的物品ID
|
| | | private int[] drugIDs;
|
| | | private int[] onekeySellTypes;
|
| | | private int[] pushItemIds;
|
| | |
|
| | | private int lsItemCnt; // 背包中的灵石数量
|
| | |
|
| | | private List<int> equipBaseProperties = new List<int>();
|
| | | private Dictionary<int, int> promptUseLimitDict;
|
| | |
| | | equipBaseProperties.Add(int.Parse(baseAttr[i].ToString()));
|
| | | }
|
| | | }
|
| | | lsItemCnt = int.Parse(FuncConfigConfig.Get("LingshiShowCount").Numerical1);
|
| | |
|
| | | preciousItemTypes = ConfigParse.GetMultipleStr<int>(FuncConfigConfig.Get("ItemPush").Numerical1);
|
| | | promptUseLimitDict = ConfigParse.GetDic<int, int>(FuncConfigConfig.Get("NoPromptUsetItem").Numerical1);
|
| | |
|
| | | preciousItemIDs = ConfigParse.GetMultipleStr<int>(FuncConfigConfig.Get("ItemPush").Numerical3);
|
| | | drugIDs = ConfigParse.GetMultipleStr<int>(FuncConfigConfig.Get("LifePotionlist").Numerical1);
|
| | |
|
| | | onekeySellTypes = ConfigParse.GetMultipleStr<int>(FuncConfigConfig.Get("OneKeySellItemType").Numerical1);
|
| | |
|
| | | pushItemIds = ConfigParse.GetMultipleStr<int>(FuncConfigConfig.Get("IntroductionItem").Numerical1);
|
| | |
| | | public event Action<PackType, string> GetExpItemEvent; //得到经验物品 value 物品的实例ID
|
| | | public void RecommendItem(ItemModel item)
|
| | | {
|
| | | if (!preciousItemTypes.Contains(item.config.Type))
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (item.packType != PackType.Item)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (!preciousItemTypes.Contains(item.config.Type))
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (preciousItemIDs != null && preciousItemIDs.Contains(item.config.ID))
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (item.config.ID == packModel.lsItemID && packModel.GetItemCountByID(PackType.Item, packModel.lsItemID) < lsItemCnt)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //if (item.isAuction)
|
| | | //{
|
| | | // return;
|
| | |
| | | }
|
| | | if (item.config.Type == 13)
|
| | | {
|
| | | // 经验丹特殊处理,优先显示
|
| | | if (GetExpItemEvent != null)
|
| | | {
|
| | | GetExpItemEvent(item.packType, item.guid);
|
| | |
| | | return; |
| | | } |
| | | |
| | | int dungeonID = packModel.GetDungeonIDByDrugID(useItemModel.itemId); |
| | | if (dungeonID != 0) |
| | | { |
| | | MapConfig tagMapModel = MapConfig.Get(PlayerDatas.Instance.baseData.MapID); |
| | | if (tagMapModel.MapFBType == 0) |
| | | { |
| | | DungeonOpenTimeConfig timeConfig = DungeonOpenTimeConfig.Get(dungeonID); |
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("DrugUsePrompt", useItemModel.config.ItemName, timeConfig.FBName), |
| | | (bool isOk) => |
| | | { |
| | | if (isOk) |
| | | { |
| | | CheckUseCondition(useItemModel); |
| | | } |
| | | }); |
| | | return; |
| | | } |
| | | } |
| | | //int dungeonID = packModel.GetDungeonIDByDrugID(useItemModel.itemId); |
| | | //if (dungeonID != 0) |
| | | //{ |
| | | // MapConfig tagMapModel = MapConfig.Get(PlayerDatas.Instance.baseData.MapID); |
| | | // if (tagMapModel.MapFBType == 0) |
| | | // { |
| | | // DungeonOpenTimeConfig timeConfig = DungeonOpenTimeConfig.Get(dungeonID); |
| | | // ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("DrugUsePrompt", useItemModel.config.ItemName, timeConfig.FBName), |
| | | // (bool isOk) => |
| | | // { |
| | | // if (isOk) |
| | | // { |
| | | // CheckUseCondition(useItemModel); |
| | | // } |
| | | // }); |
| | | // return; |
| | | // } |
| | | //} |
| | | |
| | | for (int i = 0; i < itemTipsModel.jumpAndUseTypes.Length; i++) |
| | | { |
| | |
| | | AlchemyModel alchemyModel { get { return ModelCenter.Instance.GetModel<AlchemyModel>(); } }
|
| | | ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
|
| | | public int lsItemID = 150; //可兑换的灵石物品ID
|
| | | int lsItemCnt = int.Parse(FuncConfigConfig.Get("LingshiShowCount").Numerical1);
|
| | |
|
| | | UIEffect lingshiEffect; //灵石特效 |
| | | public override void Init() |
| | | { |
| | |
| | | List<DungeonOpenTimeConfig> dungeonlist = DungeonOpenTimeConfig.GetValues(); |
| | | if (dungeonlist != null) |
| | | { |
| | | DrugToDungeonDict = new Dictionary<int, int>(); |
| | | //DrugToDungeonDict = new Dictionary<int, int>(); |
| | | DungeonToDrugDict = new Dictionary<int, int[]>(); |
| | | |
| | | for (int i = 0; i < dungeonlist.Count; i++) |
| | |
| | | if (drugIdlist != null && drugIdlist.Length > 0) |
| | | { |
| | | DungeonToDrugDict.Add(dungeonlist[i].DataMapID, drugIdlist); |
| | | for (int j = 0; j < drugIdlist.Length; j++) |
| | | { |
| | | DrugToDungeonDict.Add(drugIdlist[j], dungeonlist[i].DataMapID); |
| | | } |
| | | //for (int j = 0; j < drugIdlist.Length; j++) |
| | | //{ |
| | | // DrugToDungeonDict.Add(drugIdlist[j], dungeonlist[i].DataMapID); |
| | | //} |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | refreshItemCountEvent(type, itemModel.gridIndex, itemModel.itemId); |
| | | } |
| | | |
| | | UpdateLSRedpoint(type, itemModel.itemId); |
| | | } |
| | | } |
| | | |
| | |
| | | #region 红点逻辑判断 |
| | | |
| | | const int ITEMPACK_REDKEY = 102011003; |
| | | Redpoint redpointItemPack = new Redpoint(MainRedDot.RedPoint_BagFuncKey, ITEMPACK_REDKEY); |
| | | Redpoint redpointItemPack = new Redpoint(MainRedDot.RedPoint_BagFuncKey, ITEMPACK_REDKEY);
|
| | |
|
| | | const int LS_REDKEY = 102011015; |
| | | Redpoint redpointLS = new Redpoint(MainRedDot.RedPoint_BagFuncKey, LS_REDKEY); |
| | | |
| | | private void UpdateLSRedpoint(PackType type, int itemID) |
| | | { |
| | | var singlePack = GetSinglePack(type); |
| | | if (singlePack == null) |
| | | { |
| | | return; |
| | | } |
| | | if (type != PackType.Item) return; |
| | | if (itemID != lsItemID) return; |
| | | |
| | | |
| | | if (GetItemCountByID(PackType.Item, lsItemID) < lsItemCnt)
|
| | | {
|
| | | redpointLS.state = RedPointState.None;
|
| | | } |
| | | else
|
| | | {
|
| | | redpointLS.state = RedPointState.Simple;
|
| | | } |
| | | |
| | | } |
| | | |
| | | private void UpdatePackRedpoint(PackType type) |
| | | { |
| | |
| | | else |
| | | { |
| | | redpointItemPack.state = RedPointState.None; |
| | | } |
| | | if (GetItemCountByID(PackType.Item, lsItemID) < lsItemCnt)
|
| | | {
|
| | | redpointLS.state = RedPointState.None;
|
| | | } |
| | | else
|
| | | {
|
| | | redpointLS.state = RedPointState.Simple;
|
| | | } |
| | | break; |
| | | case PackType.Warehouse: |
| | |
| | | public int GetDungeonIDByDrugID(int drugID) |
| | | { |
| | | int dungeonID = 0; |
| | | DrugToDungeonDict.TryGetValue(drugID, out dungeonID); |
| | | //DrugToDungeonDict.TryGetValue(drugID, out dungeonID); |
| | | return dungeonID; |
| | | } |
| | | |
| | |
| | | [SerializeField] private Text m_BindDiamond;
|
| | | [SerializeField] private Button m_EquBtn;
|
| | | [SerializeField] Button m_SpiritButton;
|
| | | [SerializeField] Button LingshiChange;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | m_Sort.SetListener(OnClickSortBtn);
|
| | | m_EquBtn.SetListener(OnEquBtnDown);
|
| | | m_SpiritButton.SetListener(GotoSpiritWeaponWin);
|
| | | LingshiChange.SetListener(()=>WindowCenter.Instance.Open<LingShiChange>());
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | |
| | | public class ServerListCenter : Singleton<ServerListCenter>
|
| | |
|
| | | {
|
| | | public static readonly string[] JUMP_URL = new string[] { "http://pub.game.2460web.com:11000/server_list/?"
|
| | | public static readonly string[] JUMP_URL = new string[] { "http://pub.game.secondworld.net.cn:11000/server_list/?"
|
| | | ,"http://111.230.234.252:11000/server_list/?"};
|
| | |
|
| | | public static string SERVERLIST_URL_COMMON = "";
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | language = Language.Get(config.ExitDescription);
|
| | | //language = Language.Get(config.ExitDescription);
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | language = Language.Get(config.ExitDescription);
|
| | | }
|
| | |
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),
|
| | | language, (bool isOk) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | GoToOneKeyButton();
|
| | | }
|
| | | }
|
| | | );
|
| | | if (language == string.Empty)
|
| | | {
|
| | | GoToOneKeyButton();
|
| | | }
|
| | | else {
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),
|
| | | language, (bool isOk) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | GoToOneKeyButton();
|
| | | }
|
| | | }
|
| | | );
|
| | | }
|
| | |
|
| | | }
|
| | | else
|
| | |
| | | IsShowTaskPanel();//是否显示任务面板
|
| | | m_MainPositionTween.ShowTaskImmedidately(true, false);
|
| | |
|
| | | if (MapUtility.IsDungeon(PlayerDatas.Instance.baseData.MapID))
|
| | | if (MapUtility.IsDungeon(PlayerDatas.Instance.baseData.MapID) && PlayerDatas.Instance.baseData.MapID != 31020)
|
| | | {
|
| | | m_FunctionForecastTip.gameObject.SetActive(false);
|
| | | }
|
| | |
| | | private void IsShowTaskPanel()//是否显示任务面板
|
| | | {
|
| | | var hideTask = AdventureStage.Instance.IsInAdventureStage
|
| | | || MapUtility.IsDungeon(PlayerDatas.Instance.baseData.MapID)
|
| | | || (MapUtility.IsDungeon(PlayerDatas.Instance.baseData.MapID) && PlayerDatas.Instance.baseData.MapID != 31020)
|
| | | || CrossServerUtility.IsCrossServer()
|
| | | || ClientCrossServerOneVsOne.isClientCrossServerOneVsOne;
|
| | |
|
| | |
| | | return 1;
|
| | | }
|
| | |
|
| | | private bool IsDungeon()//判断是否在副本中
|
| | | private bool IsDungeon()//判断是否在副本中, boss之家暂时视为同非副本
|
| | | {
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var mapConfig = MapConfig.Get(mapId);
|
| | | return mapConfig != null && mapConfig.MapFBType != 0;
|
| | | return mapConfig != null && mapConfig.MapFBType != 0 && mapId != 31020;
|
| | | }
|
| | |
|
| | | private void TaskJump(int jumpTask = 0)
|
| | |
| | | |
| | | protected override void OnPreOpen() |
| | | {
|
| | | base.OnPreOpen();
|
| | | OperationTimeHepler.Instance.operationStartEvent += operationStartEvent;
|
| | | VerifyFunctionState();
|
| | | if (WindowCenter.Instance.IsOpen<MainInterfaceWin>())
|
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public Int2 GetFirstNPCRedPoint() |
| | | { |
| | | //先找红点,没有红点则找最低级未领奖励的BOSS |
| | | Int2 npcinfo = Int2.zero; |
| | | int i = 0; |
| | | foreach (var key in npcIDConfig) |
| | |
| | | } |
| | | i++; |
| | | } |
| | | i = 0; |
| | | foreach (var key in npcIDConfig) |
| | | { |
| | | var npcID = int.Parse(key); |
| | | var state = GetPersonalKillAwardState(npcID); |
| | | if (GetPersonalKillAwardState(npcID) != 2) |
| | | { |
| | | npcinfo.x = i; |
| | | npcinfo.y = npcID; |
| | | return npcinfo; |
| | | } |
| | | i++; |
| | | } |
| | | return npcinfo; |
| | | } |
| | | |
| | |
| | | [SerializeField] Text m_KillTime; |
| | | [SerializeField] UIEffect m_Effect; |
| | | [SerializeField] Button m_RedPack; |
| | | [SerializeField] Text m_RedMoney; |
| | | [SerializeField] RedpointBehaviour redPonint; |
| | | |
| | | BossFirstBloodModel model |
| | |
| | | } |
| | | // 红包状态 |
| | | var state = model.GetBossKillAwardState(npcID); |
| | | m_RedMoney.gameObject.SetActive(false); |
| | | if (state == 0) |
| | | { |
| | | m_RedPack.SetColorful(null, true); |
| | |
| | | else if (state == 2) |
| | | { |
| | | m_RedPack.SetColorful(null, false); |
| | | m_RedMoney.gameObject.SetActive(true); |
| | | m_Effect.Stop(); |
| | | } |
| | | |
| | |
| | | killerName = nPCConfig.charName;
|
| | | npcRealmLv = nPCConfig.Realm;
|
| | | }
|
| | | if (bossConfig != null)
|
| | | if (bossConfig != null || BossHomeConfig.Get(int.Parse(infolist[0].ToString())) != null)
|
| | | {
|
| | | localBossState = true;
|
| | | }
|
| | |
| | | _tagMapModel = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|
| | | rebornTiredNum = RebornConditions[0];
|
| | | rebornPrice = RebornConditions[2];
|
| | | if (_tagMapModel.MapFBType == 0)
|
| | | if (_tagMapModel.MapFBType == 0 || PlayerDatas.Instance.baseData.MapID == 31020)
|
| | | {
|
| | | IsCanReborn = true;
|
| | | //isBossKill = StatusManager.Instance.IsExist((int)playerId,20022);
|
| New file |
| | |
| | | using System.Collections; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | [XLua.Hotfix] |
| | | public class LingShiChange : Window |
| | | { |
| | | // 1. 界面 2. 物品获得调整背包 3. 物品使用改兑换 4. 灵石名称和描述 5. 红点 |
| | | [SerializeField] Text Money; |
| | | [SerializeField] Text ItemName; |
| | | [SerializeField] Button sureBtn; |
| | | [SerializeField] Button closeBtn; |
| | | [SerializeField] Text m_Count; |
| | | [SerializeField] Button m_Add; |
| | | [SerializeField] Button m_Sub; |
| | | [SerializeField] Button m_Max; |
| | | [SerializeField] ItemCell m_Itemcell; |
| | | [SerializeField] Text HaveCount; |
| | | |
| | | PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } } |
| | | Coroutine m_Coroutine = null; |
| | | |
| | | bool isPointAdd = false; |
| | | bool isPointSub = false; |
| | | int point = 0; |
| | | |
| | | int m_itemId = 150; |
| | | int m_haveCnt = 0; |
| | | static WaitForSeconds waitSpeedSlow = new WaitForSeconds(0.2f); |
| | | |
| | | private void ShowMoney() |
| | | { |
| | | m_Count.text = point.ToString(); |
| | | Money.text = (int.Parse(m_Count.text) * 10).ToString(); |
| | | } |
| | | |
| | | private void ShowItem() |
| | | { |
| | | var Item = ItemConfig.Get(m_itemId); |
| | | ItemCellModel cellModel = new ItemCellModel(m_itemId, true, 1); |
| | | m_Itemcell.Init(cellModel); |
| | | ItemName.text = Item.ItemName; |
| | | } |
| | | |
| | | private void UseItem() |
| | | { |
| | | var itemModels = packModel.GetItemsById(PackType.Item, m_itemId); |
| | | if (itemModels != null && itemModels.Count > 0 && point > 0) |
| | | { |
| | | ItemOperateUtility.Instance.UseItem(itemModels[0].guid, point); |
| | | } |
| | | CloseClick(); |
| | | } |
| | | |
| | | private void ShowItemCount() |
| | | { |
| | | m_haveCnt = packModel.GetItemCountByID(PackType.Item, m_itemId); |
| | | |
| | | HaveCount.text = "拥有数量:" + UIHelper.AppendColor(m_haveCnt == 0 ? TextColType.Red : TextColType.Green, m_haveCnt.ToString(), true); |
| | | //SetColorful |
| | | m_Add.SetInteractable(null, m_haveCnt > 0); |
| | | m_Sub.SetInteractable(null, m_haveCnt > 0); |
| | | m_Max.SetInteractable(null, m_haveCnt > 0); |
| | | } |
| | | |
| | | #region Built-in |
| | | protected override void BindController() |
| | | { |
| | | |
| | | } |
| | | protected override void AddListeners() |
| | | { |
| | | sureBtn.AddListener(UseItem); |
| | | closeBtn.AddListener(CloseClick); |
| | | } |
| | | protected override void OnPreOpen() |
| | | { |
| | | packModel.refreshItemCountEvent += OnItemCountRefresh; |
| | | UIEventTrigger.Get(m_Sub.gameObject).OnDown = OnSubDown; |
| | | UIEventTrigger.Get(m_Sub.gameObject).OnUp = OnSubUp; |
| | | UIEventTrigger.Get(m_Add.gameObject).OnDown = OnAddDown; |
| | | UIEventTrigger.Get(m_Add.gameObject).OnUp = OnAddUp; |
| | | m_Max.AddListener(OnMax); |
| | | point = packModel.GetItemCountByID(PackType.Item, m_itemId); |
| | | ShowItem(); |
| | | ShowItemCount(); |
| | | ShowMoney(); |
| | | } |
| | | protected override void OnAfterOpen() |
| | | { |
| | | |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | point = 0; |
| | | packModel.refreshItemCountEvent -= OnItemCountRefresh; |
| | | } |
| | | |
| | | protected override void OnAfterClose() |
| | | { |
| | | |
| | | } |
| | | #endregion |
| | | |
| | | private void OnItemCountRefresh(PackType type, int index, int itemId) |
| | | { |
| | | |
| | | if (type == PackType.Item && itemId == m_itemId) |
| | | { |
| | | ShowItemCount(); |
| | | } |
| | | } |
| | | |
| | | public void Dispose() |
| | | { |
| | | |
| | | if (m_Coroutine != null) |
| | | { |
| | | StopCoroutine(m_Coroutine); |
| | | } |
| | | isPointAdd = false; |
| | | isPointSub = false; |
| | | } |
| | | |
| | | |
| | | |
| | | private void OnAddDown(GameObject go) |
| | | { |
| | | |
| | | isPointAdd = true; |
| | | if (m_Coroutine != null) |
| | | { |
| | | StopCoroutine(m_Coroutine); |
| | | } |
| | | m_Coroutine = StartCoroutine(Co_PointRefresh(true)); |
| | | } |
| | | |
| | | private void OnAddUp(GameObject go) |
| | | { |
| | | isPointAdd = false; |
| | | if (m_Coroutine != null) |
| | | { |
| | | StopCoroutine(m_Coroutine); |
| | | } |
| | | } |
| | | |
| | | private void OnSubDown(GameObject go) |
| | | { |
| | | if (m_Coroutine != null) |
| | | { |
| | | StopCoroutine(m_Coroutine); |
| | | } |
| | | isPointSub = true; |
| | | m_Coroutine = StartCoroutine(Co_PointRefresh(false)); |
| | | } |
| | | |
| | | private void OnSubUp(GameObject go) |
| | | { |
| | | isPointSub = false; |
| | | if (m_Coroutine != null) |
| | | { |
| | | StopCoroutine(m_Coroutine); |
| | | } |
| | | } |
| | | |
| | | private void OnMax() |
| | | { |
| | | point = m_haveCnt; |
| | | ShowMoney(); |
| | | } |
| | | |
| | | IEnumerator Co_PointRefresh(bool pointUp) |
| | | { |
| | | while (pointUp ? isPointAdd : isPointSub) |
| | | { |
| | | if (pointUp && m_haveCnt > 0 && point < m_haveCnt) |
| | | { |
| | | |
| | | point += 1; |
| | | } |
| | | else if (!pointUp && point > 0) |
| | | { |
| | | point -= 1; |
| | | } |
| | | ShowMoney(); |
| | | yield return waitSpeedSlow; |
| | | } |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4d6f949ee165f1e47890b3f95a60f3ab |
| | | timeCreated: 1573120326 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | |
|
| | | public GameFps GetGameFps()
|
| | | {
|
| | | return (GameFps)LocalSave.GetInt(GAMEFRAME_KEY, (int)GameFps.Half);
|
| | | return (GameFps)LocalSave.GetInt(GAMEFRAME_KEY, (int)GameFps.Full);
|
| | | }
|
| | |
|
| | | public void SetSystemSettingSwitch(SystemSwitch type, bool _value)
|
| | |
| | | TryOutDic.Clear();
|
| | | TryOutDic = ConfigParse.GetDic<int, int>(FirstGoldTryItem.Numerical1);
|
| | | TryOutLv = int.Parse(FirstGoldTryItem.Numerical4);
|
| | |
|
| | |
|
| | | }
|
| | |
|
| | | private void PlayerDataRefreshEvent(PlayerDataType dataType)
|
| | | {
|
| | | if (dataType != PlayerDataType.LV)
|
| | | return;
|
| | |
|
| | | if (PlayerDatas.Instance.baseData.LV > 150)
|
| | | return;
|
| | | if (PlayerDatas.Instance.baseData.LV % 30 == 0)
|
| | | //到达等级强制再显示一次
|
| | | IsShowOnce = false;
|
| | | }
|
| | |
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | |
| | | {
|
| | | LocalSave.SetBool("FirstTimeRechargeBool", true);
|
| | | }
|
| | |
|
| | | PlayerDatas.Instance.playerDataRefreshEvent -= PlayerDataRefreshEvent;
|
| | | PlayerDatas.Instance.playerDataRefreshEvent += PlayerDataRefreshEvent;
|
| | | GlobalTimeEvent.Instance.secondEvent -= secondEvent;
|
| | | GlobalTimeEvent.Instance.secondEvent += secondEvent;
|
| | | WindowCenter.Instance.windowBeforeCloseEvent -= windowBeforeClose;
|
| | |
| | | }
|
| | |
|
| | | var currentMapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID);
|
| | | if (currentMapConfig.MapFBType != 0)
|
| | | if (currentMapConfig.MapFBType != 0 && PlayerDatas.Instance.baseData.MapID != 31020)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("DungeonNoGO");
|
| | | return;
|
| | |
| | | inlay, //镶嵌
|
| | | train,//洗炼
|
| | | star,//升星
|
| | | lsExchange, //灵石兑换
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | |
| | | public class OperationLogCollect : Singleton<OperationLogCollect>
|
| | |
|
| | | {
|
| | | const string url = "http://pub.game.2460web.com:11000/event_receiver?";
|
| | | const string url = "http://pub.game.secondworld.net.cn:11000/event_receiver?";
|
| | |
|
| | | public void RecordLauchEvent(int _step)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | |
|
| | | const string bugReportUrl = "http://pub.game.2460web.com:11000/event_receiver?";
|
| | | const string bugReportUrl = "http://pub.game.secondworld.net.cn:11000/event_receiver?";
|
| | |
|
| | | public void BugReport(string _title, string _content)
|
| | | {
|