Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp275(Snxxz.UI.EquipShowSwitch.EquipShowSwitchType p0, uint 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.Push(L, p0); |
| | | LuaAPI.xlua_pushuint(L, p1); |
| | | |
| | | PCall(L, 2, 1, errFunc); |
| | | |
| | | |
| | | bool __gen_ret = LuaAPI.lua_toboolean(L, errFunc + 1); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp276(uint p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | |
| | | [SerializeField] Text _ReceiveImageText;//领奖倒计时2
|
| | | [SerializeField] Transform m_GridLeft;//左侧奖励
|
| | | [SerializeField] Slider m_Slider;//进度条
|
| | | [SerializeField] UIEffect m_LeaveBtnEffect;
|
| | | [SerializeField] Text m_LeaveText;
|
| | |
|
| | | [Header("等待时间(秒)")]
|
| | | public int Second = 20;
|
| | |
| | |
|
| | | void FairyAuTask(int _taskID)//仙盟任务
|
| | | {
|
| | |
|
| | | if (TaskAllocation.Instance.FairyAuNumber() >= taskmodel.FairyAuTaskCount_Round)
|
| | | {
|
| | | Btn_Leave.gameObject.SetActive(false);
|
| | |
| | | string _RewardStr = TaskAllocation.Instance.GetTaskInfo(rewardConfig.show_writing, _taskID);
|
| | | RewardAnalysis.Inst.GetReward(_RewardStr, ref rewardList);
|
| | | RewardInformationDisplay(rewardList);
|
| | | m_LeaveText.text = Language.Get("CoinTaskText_8");
|
| | | }
|
| | |
|
| | | void TheDefaultTask(int _taskID)//仙盟任务未接取特殊状态
|
| | | {
|
| | | m_LeaveBtnEffect.Play();
|
| | | m_LeaveText.text = Language.Get("CoinTaskText_11");
|
| | | Btn_Finish.gameObject.SetActive(false);
|
| | | Btn_Leave.gameObject.SetActive(true);
|
| | | RoundText_L.text = Language.Get("FairyAuTaskWin_Text3", SetNumberOfRounds(0));
|
| | |
| | | DestroyImmediate(_Grid.GetChild(i).gameObject);
|
| | | }
|
| | | }
|
| | | m_LeaveText.text = Language.Get("CoinTaskText_8");
|
| | | }
|
| | | void RewardInformationDisplay(List<RewardAnalysis.RewardInfo> rewardList)//奖励信息
|
| | | {
|
| | |
| | | {
|
| | | WindowCenter.Instance.Open<SkillWin>();
|
| | | }
|
| | | else if (skillModel.redpoint.state == RedPointState.Simple)
|
| | | {
|
| | | WindowCenter.Instance.Open<SkillWin>(false, 1);
|
| | | }
|
| | | else if (skillModel.passSkillRedpoint.state == RedPointState.Simple)
|
| | | {
|
| | | WindowCenter.Instance.Open<SkillWin>(false, 2);
|
| | |
| | |
|
| | | ReikiRootModel model { get { return ModelCenter.Instance.GetModel<ReikiRootModel>(); } }
|
| | | PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
| | | SkillModel skillModel { get { return ModelCenter.Instance.GetModel<SkillModel>(); } }
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | |
| | | var pak = new CB207_tagCMResetAttrPoint();
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | model.resetReikiRootRecord = true;
|
| | | skillModel.skillMatchRedpointable = true;
|
| | | CloseImmediately();
|
| | | }
|
| | | else
|
| | |
| | | var pak = new CB207_tagCMResetAttrPoint();
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | model.resetReikiRootRecord = true;
|
| | | skillModel.skillMatchRedpointable = true;
|
| | | CloseImmediately();
|
| | | }
|
| | | }
|
| | |
| | | m_SkillMatch.AddListener(() =>
|
| | | {
|
| | | WindowCenter.Instance.Open("SkillMatchWin");
|
| | | if (model.skillMatchRedpointable)
|
| | | {
|
| | | model.skillMatchRedpointable = false;
|
| | | }
|
| | | });
|
| | | for (int i = 0; i < m_QuickSkills.Count; i++)
|
| | | {
|
| | |
| | | public int minTaskHole { get; private set; }
|
| | | public int maxTaskHole { get; private set; }
|
| | |
|
| | | public bool skillMatchRedpointable
|
| | | {
|
| | | get { return LocalSave.GetBool("SkillMatchRedpointable_" + PlayerDatas.Instance.baseData.PlayerID); }
|
| | | set
|
| | | {
|
| | | LocalSave.SetBool("SkillMatchRedpointable_" + PlayerDatas.Instance.baseData.PlayerID, value);
|
| | | UpdateSkillMatchRedpoint();
|
| | | }
|
| | | }
|
| | |
|
| | | public readonly Redpoint redpoint = new Redpoint(103, 10301);
|
| | | public readonly Redpoint skillMatchRedpoint = new Redpoint(10301, 1030101);
|
| | |
|
| | | void ParseConfig()
|
| | | {
|
| | |
| | | playerLoginOk = true;
|
| | | UpdateRedpoint();
|
| | | VerifyQuickSkillExistXp();
|
| | | UpdateSkillMatchRedpoint();
|
| | | //UpdateTaskHoleRedpoint();
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | void UpdateSkillMatchRedpoint()
|
| | | {
|
| | | skillMatchRedpoint.state = skillMatchRedpointable ? RedPointState.Simple : RedPointState.None;
|
| | | }
|
| | |
|
| | | public void SetDayRemind()
|
| | | {
|
| | | DayRemind.Instance.SetDayRemind(DayRemind.PASS_SKILL_REDPOINT, true);
|
| | |
| | | return level;
|
| | | }
|
| | |
|
| | | public int GetSatisfyLevelUpMinCostSkillId()
|
| | | {
|
| | | var minCost = int.MaxValue;
|
| | | var minSkillId = 0;
|
| | | foreach (var skill in treasureSkills.Values)
|
| | | {
|
| | | var error = 0;
|
| | | if (TryLevelUpTreasureSkill(skill.skillId, out error)
|
| | | && skill.level > 0)
|
| | | {
|
| | | var config = skill.GetSkillConfig(skill.level + 1);
|
| | | if (config.ExAttr5 < minCost)
|
| | | {
|
| | | minCost = config.ExAttr5;
|
| | | minSkillId = skill.skillId;
|
| | | }
|
| | | }
|
| | | }
|
| | | return minSkillId;
|
| | | }
|
| | |
|
| | | public void OnReceivePackage(int oldSkillID, int newSkillID)
|
| | | {
|
| | | var config = SkillConfig.Get(newSkillID);
|
| | |
| | | void UpdateRedpoint()
|
| | | {
|
| | | var funcOpen = FuncOpen.Instance.IsFuncOpen(82);
|
| | | var satisfyLevelUpMinSkillId = GetSatisfyLevelUpMinCostSkillId();
|
| | | foreach (var skill in treasureSkills.Values)
|
| | | {
|
| | | var error = 0;
|
| | | if (requireRemind && funcOpen && FuncOpen.Instance.IsFuncOpen(177)
|
| | | && TryLevelUpTreasureSkill(skill.skillId, out error)
|
| | | && skill.level > 0)
|
| | | && satisfyLevelUpMinSkillId == skill.skillId)
|
| | | {
|
| | | skill.levelUpRedpoint.state = RedPointState.Simple;
|
| | | }
|