少年修仙传客户端代码仓库
client_linchunjie
2019-03-15 ab86f09db0de59d1f86d2609d226e13167975da3
3062 【2.0】结算界面的物品特效层级渗透
2个文件已修改
95 ■■■■■ 已修改文件
System/FairyAu/AllianceBossVictoryWin.cs 91 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WindowJump/WindowJumpMgr.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/FairyAu/AllianceBossVictoryWin.cs
@@ -12,8 +12,11 @@
namespace Snxxz.UI
{
    public class AllianceBossVictoryWin : DungeonVictoryWin
    public class AllianceBossVictoryWin : Window
    {
        [SerializeField] Transform m_ContainerPoivt;
        [SerializeField] ButtonEx m_Exit;
        [SerializeField] Text m_ExitTimer;
        [SerializeField] Transform m_ContainerTopThree;
        [SerializeField] Image m_Rank;
        [SerializeField] Transform m_ContainerOutThree;
@@ -30,21 +33,94 @@
        [SerializeField] List<DemonJarRewardBehaviour> m_MyItems;
        [SerializeField] Button m_GotoAuction;
        float timer = 0f;
        AllianceBossModel model { get { return ModelCenter.Instance.GetModel<AllianceBossModel>(); } }
        DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
        protected override void BindController()
        {
        }
        protected override void AddListeners()
        {
            base.AddListeners();
            m_GotoAuction.AddListener(GotoAuction);
            m_Exit.AddListener(ExitDungeon);
        }
        protected override void Display()
        protected override void OnActived()
        {
            base.OnActived();
            if (!WindowJumpMgr.Instance.IsJumpState)
            {
                var config = DungeonOpenTimeConfig.Get(dungeonModel.dungeonResult.dataMapID);
                StartCoroutine(Co_DelayDisplay(config.DelayTime * 0.001f));
            }
            else
            {
                Display();
            }
        }
        protected override void OnPreOpen()
        {
            m_ContainerPoivt.gameObject.SetActive(false);
        }
        protected override void OnAfterOpen()
        {
        }
        protected override void OnPreClose()
        {
        }
        protected override void OnAfterClose()
        {
        }
        protected override void LateUpdate()
        {
            base.LateUpdate();
            timer -= Time.deltaTime;
            if (timer < 0f)
            {
                timer += 0.5f;
                var endTime = dungeonModel.GetCoolDownEndTime(DungeonCoolDownType.LeaveMap);
                var seconds = (endTime - TimeUtility.ServerNow).TotalSeconds;
                DrawExitTimer((int)seconds);
            }
        }
        IEnumerator Co_DelayDisplay(float _delay)
        {
            yield return new WaitForSeconds(_delay);
            Display();
        }
        void Display()
        {
            m_ContainerPoivt.gameObject.SetActive(true);
            base.RequireDungeonExit();
            DisplayDungeonExit();
            DisplayAlliance();
            DisplayAutionItems();
            DisplayMyItems();
        }
        void DisplayDungeonExit()
        {
            var endTime = dungeonModel.GetCoolDownEndTime(DungeonCoolDownType.LeaveMap);
            var seconds = (endTime - TimeUtility.ServerNow).TotalSeconds;
            timer = (float)seconds - (int)seconds;
            DrawExitTimer((int)seconds);
        }
        void DrawExitTimer(int seconds)
        {
            m_ExitTimer.text = Language.Get("DungeonVictoryWin_Btn_Exit_1", Mathf.Clamp(seconds, 0, int.MaxValue));
        }
        void DisplayAlliance()
@@ -122,7 +198,12 @@
        private void GotoAuction()
        {
            WindowCenter.Instance.Open<AuctionHouseWin>(false, 1);
            WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.FairyAuction);
        }
        void ExitDungeon()
        {
            dungeonModel.ExitCurrentDungeon();
        }
        private void GenerateRewardBehaviour(List<DemonJarRewardBehaviour> rewardBehaviours, Transform _parent, int _needCount)
System/WindowJump/WindowJumpMgr.cs
@@ -723,6 +723,9 @@
                dungeonModel.currentDungeon = new Dungeon(AllianceBossModel.DATAMAPID, 1);
                SetJumpLogic<AllianceBossEntranceWin>();
                break;
            case JumpUIType.FairyAuction:
                SetJumpLogic<AuctionHouseWin>(_tagWinSearchModel.TABID);
                break;
            default:
                DebugEx.Log("未添加此跳转界面:" + jumpType);
                IsJumpState = false;
@@ -1679,6 +1682,7 @@
    LoginReward307 = 307, //登录奖励
    AllianceBoss1 = 308,//仙盟Boss1
    AllianceBoss2 = 309,//仙盟Boss2
    FairyAuction = 310,//仙盟拍卖行
    DhszTs = 1001,//定海神针功法提升界面
    HyqTs = 1002,//皓月枪功法提升界面