少年修仙传客户端代码仓库
client_Zxw
2018-08-27 8775919d1cc82905c0dbfdb6233f0296e17a64fe
[2953]翅膀佩戴任务
2个文件已添加
2个文件已修改
108 ■■■■■ 已修改文件
System/MainInterfacePanel/FlyingShoesTask.cs 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/PlayerMainDate.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/WingTaskJumpWin.cs 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/WingTaskJumpWin.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/FlyingShoesTask.cs
@@ -121,7 +121,7 @@
            taskmodel.GetNowTaskID = Task_ID;
            if (mainModel.TaskId_Skill1.Contains(Task_ID))
            if (mainModel.TaskId_Skill1.Contains(Task_ID))//特殊支线任务解锁被动技能的
            {
                if (PlayerDatas.Instance.baseData.LV >= mainModel.TaskLv)
                {
@@ -147,6 +147,35 @@
                }
                return;
            }
            if (mainModel.WingTask == Task_ID && ((int)taskmodel.GetTaskStatus(Task_ID) == 0 || (int)taskmodel.GetTaskStatus(Task_ID) == -5))//关于特殊翅膀任务
            {
                if (playerPack.GetSinglePackModel(PackType.rptItem) == null)
                {
                    WindowCenter.Instance.Open<WingTaskJumpWin>();
                    return;
                }
                Dictionary<int, ItemModel> BackpackDic = playerPack.GetSinglePackModel(PackType.rptItem).GetPackModelIndexDict();
                if (BackpackDic == null)
                {
                    WindowCenter.Instance.Open<WingTaskJumpWin>();
                    return;
                }
                else
                {
                    int job = PlayerDatas.Instance.baseData.Job;
                    foreach (var key in BackpackDic.Keys)
                    {
                        ItemModel ItemM = BackpackDic[key];
                        if (ItemM.chinItemModel.Type == 111 && ItemM.chinItemModel.ExpireTime == 0 && ItemM.chinItemModel.JobLimit/100 == job)
                        {
                            WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.KnapSackFunc1Type2);//跳到背包
                            return;
                        }
                    }
                }
                WindowCenter.Instance.Open<WingTaskJumpWin>();
                return;
            }
            switch ((int)taskmodel.GetTaskStatus(Task_ID))
            {
                case -5:
System/MainInterfacePanel/PlayerMainDate.cs
@@ -124,6 +124,8 @@
        }
        NetworkState = (int)SDKUtility.Instance.NetworkType;
        GetPassiveSkillTask();
        var WingsTask = Config.Instance.Get<FuncConfigConfig>("WingsTask");
        WingTask = int.Parse(WingsTask.Numerical1);
    }
    //----------关于某些副本可以进行地图挂机
    public List<int> OneKeyList = new List<int>();
@@ -139,7 +141,8 @@
    public int UnitPrice = 0;
    public int ItemNumber = 0;
    public int TaskLv = 0;//任务等级
    //-----关于支线翅膀任务的特殊逻辑
    public int WingTask = 0;
    private void GetPassiveSkillTask()//获取任务数据
    {
        TaskId_Skill.Clear();
System/MainInterfacePanel/WingTaskJumpWin.cs
New file
@@ -0,0 +1,60 @@
//--------------------------------------------------------
//    [Author]:           第二世界
//    [  Date ]:           Monday, August 27, 2018
//--------------------------------------------------------
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
//特殊任务的翅膀任务
namespace Snxxz.UI {
    public class WingTaskJumpWin : Window
    {
        [SerializeField] Button m_Button1;
        [SerializeField] Button m_Button2;
        #region Built-in
        protected override void BindController()
        {
        }
        protected override void AddListeners()
        {
            m_Button1.AddListener(()=>
            {
                Close();
                WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.StoreFunc2);
            });
            m_Button2.AddListener(()=>
            {
                Close();
                WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.ComposeFunc1);
            });
        }
        protected override void OnPreOpen()
        {
        }
        protected override void OnAfterOpen()
        {
        }
        protected override void OnPreClose()
        {
        }
        protected override void OnAfterClose()
        {
        }
        #endregion
    }
}
System/MainInterfacePanel/WingTaskJumpWin.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 51593e0325bece7459a27808b61a51a9
timeCreated: 1535359328
licenseType: Free
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant: