Kaynağa Gözat

圣兵铭文

zouweichen 3 gün önce
ebeveyn
işleme
b522b940f8
24 değiştirilmiş dosya ile 377 ekleme ve 399 silme
  1. BIN
      Assets/Res/Addressable/FGUI/Partner/Partner_atlas0.png
  2. BIN
      Assets/Res/Addressable/FGUI/Partner/Partner_atlas0_1.png
  3. BIN
      Assets/Res/Addressable/FGUI/Partner/Partner_fui.bytes
  4. 5 3
      Assets/Scripts/Business/Runtime/FGUI/Main/HomeBottomPanel/MainHomeBottomPanelCtrl.cs
  5. 3 0
      Assets/Scripts/Business/Runtime/FGUI/Partner/BookAddDetailPanel/PartnerBookAddDetailPanelVM.Gen.cs
  6. 4 4
      Assets/Scripts/Business/Runtime/FGUI/Partner/DetailsPanel/PartnerDetailsPanelCtrl.cs
  7. 0 3
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiBagListItem/PartnerEpiBagListItemCtrl.cs
  8. 27 26
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiChangeListItem/PartnerEpiChangeListItemCtrl.cs
  9. 5 5
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiChangeListItem/PartnerEpiChangeListItemView.ListItem.cs
  10. 67 72
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiChangePanel/PartnerEpiChangePanelCtrl.cs
  11. 115 128
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiDetailInfo/PartnerEpiDetailInfoCtrl.cs
  12. 45 39
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiMainPanel/PartnerEpiMainPanelCtrl.cs
  13. 0 2
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiMainPanel/PartnerEpiMainPanelVM.Gen.cs
  14. 3 3
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiPlanListItem/PartnerEpiPlanListItemCtrl.cs
  15. 16 31
      Assets/Scripts/Business/Runtime/FGUI/Partner/EpiUpListItem/PartnerEpiUpListItemCtrl.cs
  16. 2 2
      Assets/Scripts/Business/Runtime/FGUI/Partner/InfoListItem/PartnerInfoListItemCtrl.cs
  17. 3 3
      Assets/Scripts/Business/Runtime/FGUI/Partner/PartnerPlanListItem/PartnerPartnerPlanListItemCtrl.cs
  18. 2 3
      Assets/Scripts/Business/Runtime/FGUI/Partner/PartnerUpListItem/PartnerPartnerUpListItemCtrl.cs
  19. 12 18
      Assets/Scripts/Business/Runtime/FGUI/Partner/ReplacePartnerListItem/PartnerReplacePartnerListItemCtrl.cs
  20. 44 44
      Assets/Scripts/Business/Runtime/FGUI/Partner/ReplacePartnerPanel/PartnerReplacePartnerPanelCtrl.cs
  21. 6 2
      Assets/Scripts/Business/Runtime/FGUI/Partner/SbBagPanel/PartnerSbBagPanelCtrl.cs
  22. 4 1
      Assets/Scripts/Business/Runtime/FGUI/Partner/SbMainPanel/PartnerSbMainPanelCtrl.cs
  23. 13 8
      Assets/Scripts/Business/Runtime/FGUI/Partner/SbStrengthPanel/PartnerSbStrengthPanelCtrl.cs
  24. 1 2
      fl-fgui-project/assets/Partner/Epigraph/EpiMainPanel.xml

BIN
Assets/Res/Addressable/FGUI/Partner/Partner_atlas0.png


BIN
Assets/Res/Addressable/FGUI/Partner/Partner_atlas0_1.png


BIN
Assets/Res/Addressable/FGUI/Partner/Partner_fui.bytes


+ 5 - 3
Assets/Scripts/Business/Runtime/FGUI/Main/HomeBottomPanel/MainHomeBottomPanelCtrl.cs

@@ -1,4 +1,6 @@
-/// #pkgName FGUI包名
+
+
+/// #pkgName FGUI包名
 /// #panelName UIPanel名字
 /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
 /// 该脚本由模板创建
@@ -83,7 +85,7 @@ namespace FL.FGUI
             return index switch
             {
                 1 => UIKeys.PlayerMainPanel,
-                2 => UIKeys.PartnerMainPanel,
+                2 => UIKeys.PartnerSbMainPanel,
                 3 => UIKeys.PartnerEpiMainPanel,
                 6 => UIKeys.DragonEggTreasurePanel,
                 _ => null,
@@ -92,7 +94,7 @@ namespace FL.FGUI
         private int KeyToIndex(UIKey uiKey)
         {
             if (uiKey == UIKeys.PlayerMainPanel) return 1;
-            if (uiKey == UIKeys.PartnerMainPanel) return 2;
+            if (uiKey == UIKeys.PartnerSbMainPanel) return 2;
             if (uiKey == UIKeys.PartnerEpiMainPanel) return 3;
             if (uiKey == UIKeys.DragonEggTreasurePanel) return 6;
             return -1;

+ 3 - 0
Assets/Scripts/Business/Runtime/FGUI/Partner/BookAddDetailPanel/PartnerBookAddDetailPanelVM.Gen.cs

@@ -18,11 +18,14 @@ namespace FL.FGUI
     /// </summary>
     public partial class PartnerBookAddDetailPanelVM : FguiViewModel
     {
+        public CommonBackGroundNestedView MaskBg { get; private set; }
         public GLabel PopWin2 { get; private set; }
         public GList List { get; private set; }
 
         protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
         {
+            MaskBg = adapter.CreateNested<CommonBackGroundNestedView>(new FguiNested(panel.GetChild("MaskBg").asCom), true);
+            AddChild(MaskBg);
             PopWin2 = panel.GetChild("PopWin2") as GLabel;
             List = panel.GetChild("List") as GList;
             List.Init(typeof(PartnerBookAttrTextItemView), adapter.CreateListItem);

+ 4 - 4
Assets/Scripts/Business/Runtime/FGUI/Partner/DetailsPanel/PartnerDetailsPanelCtrl.cs

@@ -141,8 +141,8 @@ namespace FL.FGUI
                 UIKeys.PartnerEpiChangePanel,
                 new PartnerEpiChangePanelCtrlParam()
                 {
-                    PlanId = PartnersData.Instance.UsePlanId,
-                    SlotId = -1,
+                    //PlanId = PartnersData.Instance.UsePlanId,
+                    //SlotId = -1,
                     SbId = _partnerId,
                 }
             );
@@ -160,8 +160,8 @@ namespace FL.FGUI
                 UIKeys.PartnerEpiChangePanel,
                 new PartnerEpiChangePanelCtrlParam()
                 {
-                    PlanId = PartnersData.Instance.UsePlanId,
-                    SlotId = -1,
+                    //PlanId = PartnersData.Instance.UsePlanId,
+                    //SlotId = -1,
                     SbId = _partnerId,
                 }
             );

+ 0 - 3
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiBagListItem/PartnerEpiBagListItemCtrl.cs

@@ -49,9 +49,6 @@ namespace FL.FGUI
                 new PartnerEpiDetailInfoParam()
                 {
                     EpigraphId = _id,
-                    PlanId = PartnersData.Instance.UsePlanId,
-                    SlotId = -1,
-                    PartnerId = 0
                 }
             );
         }

+ 27 - 26
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiChangeListItem/PartnerEpiChangeListItemCtrl.cs

@@ -46,9 +46,10 @@ namespace FL.FGUI
         #endregion
 
         #region 属性
-        private int _sbId;
+        //private int _sbId;
         private int _mwId;
-        private int _planId;
+
+        //private int _planId;
         private int _curSelectId;
         #endregion
 
@@ -56,9 +57,9 @@ namespace FL.FGUI
         #region 页面
         public void OnRefresh(int index, EpiChangeListData data)
         {
-            _sbId = data.SbId;
+            //_sbId = data.SbId;
             _mwId = data.MwId;
-            _planId = data.PlanId;
+            //_planId = data.PlanId;
             _curSelectId = data.CurSelectId;
             UpEpiInfo();
         }
@@ -80,28 +81,28 @@ namespace FL.FGUI
                 Log.Error($"铭文数据不存在,id:{_mwId}");
                 return;
             }
-            if (_planId != PartnersData.Instance.UsePlanId)
-            {
-                if (!PartnersData.Instance.TryGetPlan(_planId, out var plan))
-                {
-                    Log.Error($"方案信息不存在,planid:{_planId}");
-                    return;
-                }
-                var isUP = false;
-                foreach (var slot in plan.Slots)
-                {
-                    if (slot.MwId == _mwId)
-                    {
-                        isUP = true;
-                        break;
-                    }
-                }
-                VM.IsUp.selectedIndex = isUP ? 1 : 0;
-            }
-            else
-            {
-                VM.IsUp.selectedIndex = info.PartnerId > 0 ? 1 : 0;
-            }
+            //if (_planId != PartnersData.Instance.UsePlanId)
+            //{
+            //    if (!PartnersData.Instance.TryGetPlan(_planId, out var plan))
+            //    {
+            //        Log.Error($"方案信息不存在,planid:{_planId}");
+            //        return;
+            //    }
+            //    var isUP = false;
+            //    foreach (var slot in plan.Slots)
+            //    {
+            //        if (slot.MwId == _mwId)
+            //        {
+            //            isUP = true;
+            //            break;
+            //        }
+            //    }
+            //    VM.IsUp.selectedIndex = isUP ? 1 : 0;
+            //}
+            //else
+            //{
+            VM.IsUp.selectedIndex = info.PartnerId > 0 ? 1 : 0;
+            //}
         }
         #endregion
     }

+ 5 - 5
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiChangeListItem/PartnerEpiChangeListItemView.ListItem.cs

@@ -25,15 +25,15 @@ namespace FL.FGUI
 
     public struct EpiChangeListData
     {
-        public int SbId { get; private set; }
+        //public int SbId { get; private set; }
         public int MwId { get; private set; }
-        public int PlanId { get; private set; }
+        //public int PlanId { get; private set; }
         public int CurSelectId { get; private set; }
 
-        public EpiChangeListData(int planId, int sbId, int mwId, int curSelectId)
+        public EpiChangeListData(int mwId, int curSelectId)
         {
-            PlanId = planId;
-            SbId = sbId;
+            //PlanId = planId;
+            //SbId = sbId;
             MwId = mwId;
             CurSelectId = curSelectId;
         }

+ 67 - 72
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiChangePanel/PartnerEpiChangePanelCtrl.cs

@@ -16,15 +16,15 @@ namespace FL.FGUI
     {
         public int SbId;
 
-        /// <summary>
-        /// 方案id
-        /// </summary>
-        public int PlanId;
+        ///// <summary>
+        ///// 方案id
+        ///// </summary>
+        //public int PlanId;
 
-        /// <summary>
-        /// 方案内槽位,如果有planId则必填
-        /// </summary>
-        public int SlotId;
+        ///// <summary>
+        ///// 方案内槽位,如果有planId则必填
+        ///// </summary>
+        //public int SlotId;
     }
 
     /// <summary>
@@ -37,8 +37,8 @@ namespace FL.FGUI
         {
             var param = intent as PartnerEpiChangePanelCtrlParam;
             _sbId = param.SbId;
-            _planId = param.PlanId;
-            _slotId = param.SlotId;
+            //_planId = param.PlanId;
+            //_slotId = param.SlotId;
             AddUIListenres();
             InitView();
             UpView();
@@ -74,17 +74,11 @@ namespace FL.FGUI
             var id = (int)args;
             if (id == _curSelectId)
             {
-                Context.UI.OpenAsync(
-                    UIKeys.PartnerEpiDetailInfo,
-                    new PartnerEpiDetailInfoParam()
-                    {
-                        EpigraphId = _curSelectId,
-                        PlanId = _planId,
-                        SlotId = _slotId,
-                        PartnerId = _sbId,
-                    }
-                );
-                Context.ClosePanel();
+                //Context.UI.OpenAsync(
+                //    UIKeys.PartnerEpiDetailInfo,
+                //    new PartnerEpiDetailInfoParam() { EpigraphId = _curSelectId }
+                //);
+                //Context.ClosePanel();
                 return;
             }
             _curSelectId = id;
@@ -94,32 +88,32 @@ namespace FL.FGUI
         private void OnClickUpBtn(EventContext eventContext)
         {
             var id = _curSelectId;
-            if (_planId == PartnersData.Instance.UsePlanId)
-            {
-                if (!PartnersData.Instance.TryGetPartnerAttrByTableId(_sbId, out var info))
-                {
-                    Context.ShowTips(StringDefine.PartnerEmptyTips);
-                    return;
-                }
-                if (id == info.EpigraphId)
-                    return;
-                EpigraphService.Instance.RequestEpiInset(_sbId, id);
-                Context.ClosePanel();
-            }
-            else if (_planId >= 0 && _slotId >= 0 && _sbId > 0)
+            //if (_planId == PartnersData.Instance.UsePlanId)
+            //{
+            if (!PartnersData.Instance.TryGetPartnerAttrByTableId(_sbId, out var info))
             {
-                var plan = PartnersData.Instance.GetPlanById(_planId);
-                foreach (var slot in plan.Slots)
-                {
-                    if (slot.MwId == id)
-                    {
-                        Context.ShowTips(StringDefine.EpigraphAlreadyUpTips);
-                        return;
-                    }
-                }
-                PartnersService.Instance.RequestUpdatePlanMw(_planId, _slotId, _sbId, id);
-                Context.ClosePanel();
+                Context.ShowTips(StringDefine.PartnerEmptyTips);
+                return;
             }
+            if (id == info.EpigraphId)
+                return;
+            EpigraphService.Instance.RequestEpiInset(_sbId, id);
+            Context.ClosePanel();
+            //}
+            //else if (_planId >= 0 && _slotId >= 0 && _sbId > 0)
+            //{
+            //    var plan = PartnersData.Instance.GetPlanById(_planId);
+            //    foreach (var slot in plan.Slots)
+            //    {
+            //        if (slot.MwId == id)
+            //        {
+            //            Context.ShowTips(StringDefine.EpigraphAlreadyUpTips);
+            //            return;
+            //        }
+            //    }
+            //    PartnersService.Instance.RequestUpdatePlanMw(_planId, _slotId, _sbId, id);
+            //    Context.ClosePanel();
+            //}
         }
         #endregion
         #region 属性
@@ -129,8 +123,9 @@ namespace FL.FGUI
         /// 圣兵id
         /// </summary>
         private int _sbId;
-        private int _planId;
-        private int _slotId;
+
+        //private int _planId;
+        //private int _slotId;
         private List<EpiChangeListData> _list;
         private int _curSelectId;
         #endregion
@@ -147,39 +142,39 @@ namespace FL.FGUI
         private void UpView()
         {
             var epiList = EpigraphData.Instance.EpiList;
-            if (_slotId < 0)
+            //if (_slotId < 0)
+            //{
+            if (!PartnersData.Instance.TryGetPartnerAttrByTableId(_sbId, out var attr))
+            {
+                Log.Error($"圣兵数据不存在,id:{_sbId}");
+                return;
+            }
+            if (attr.EpigraphId > 0)
             {
-                if (!PartnersData.Instance.TryGetPartnerAttrByTableId(_sbId, out var attr))
-                {
-                    Log.Error($"圣兵数据不存在,id:{_sbId}");
-                    return;
-                }
-                if (attr.EpigraphId > 0)
-                {
-                    _curSelectId = attr.EpigraphId;
-                }
-                else
-                {
-                    _curSelectId = epiList[0].TableId;
-                }
+                _curSelectId = attr.EpigraphId;
             }
             else
             {
-                var slot = PartnersData.Instance.GetPlanSlot(_planId, _slotId);
-                if (slot == null || slot.MwId == 0)
-                {
-                    _curSelectId = epiList[0].TableId;
-                }
-                else
-                {
-                    _curSelectId = slot.MwId;
-                }
+                _curSelectId = epiList[0].TableId;
             }
+            //}
+            //else
+            //{
+            //    var slot = PartnersData.Instance.GetPlanSlot(_planId, _slotId);
+            //    if (slot == null || slot.MwId == 0)
+            //    {
+            //        _curSelectId = epiList[0].TableId;
+            //    }
+            //    else
+            //    {
+            //        _curSelectId = slot.MwId;
+            //    }
+            //}
             var list = new List<EpiChangeListData>();
             _list = list;
             foreach (var epi in epiList)
             {
-                list.Add(new EpiChangeListData(_planId, _sbId, epi.TableId, _curSelectId));
+                list.Add(new EpiChangeListData(epi.TableId, _curSelectId));
             }
             VM.List.BindDatas(list);
         }
@@ -190,7 +185,7 @@ namespace FL.FGUI
             var list = new List<EpiChangeListData>();
             foreach (var epi in epiList)
             {
-                list.Add(new EpiChangeListData(_planId, _sbId, epi.TableId, _curSelectId));
+                list.Add(new EpiChangeListData(epi.TableId, _curSelectId));
             }
             _list = list;
             VM.List.BindDatas(list);

+ 115 - 128
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiDetailInfo/PartnerEpiDetailInfoCtrl.cs

@@ -15,14 +15,7 @@ namespace FL.FGUI
 {
     public class PartnerEpiDetailInfoParam
     {
-        public int PlanId;
-
-        /// <summary>
-        /// 槽位id,-1为非更换界面打开的详情
-        /// </summary>
-        public int SlotId;
         public int EpigraphId;
-        public int PartnerId;
     }
 
     /// <summary>
@@ -33,17 +26,11 @@ namespace FL.FGUI
     {
         #region 属性
         private int _mwId;
-        private int _planId;
-        private int _slotId;
-        private int _partnerId;
         #endregion
         protected override void OnEnable(object intent)
         {
             var param = intent as PartnerEpiDetailInfoParam;
             _mwId = param.EpigraphId;
-            _planId = param.PlanId;
-            _slotId = param.SlotId;
-            _partnerId = param.PartnerId;
             AddUIListenres();
             UpView();
         }
@@ -95,105 +82,105 @@ namespace FL.FGUI
                 Log.Error($"铭文数据不存在tableId:{_mwId}");
                 return;
             }
-            if (PartnersData.Instance.UsePlanId == _planId)
-            {
-                EpigraphService.Instance.RequestEpiInset(info.PartnerId, 0);
-            }
-            else
-            {
-                if (!PartnersData.Instance.TryGetPlan(_planId, out var plan))
-                {
-                    Context.ShowTips(StringDefine.PartnerPlanEmptyTips);
-                    return;
-                }
-                var caoId = -1;
-                var sbId = 0;
-                foreach (var slot in plan.Slots)
-                {
-                    if (slot.MwId == _mwId)
-                    {
-                        caoId = slot.CaoId;
-                        sbId = slot.SbId;
-                        break;
-                    }
-                }
-                if (sbId == 0 || caoId < 0)
-                {
-                    Context.ShowTips(StringDefine.EpigraphNotInPlanTips);
-                    return;
-                }
-                PartnersService.Instance.RequestUpdatePlanMw(_planId, caoId, sbId, 0);
-            }
+            //if (PartnersData.Instance.UsePlanId == _planId)
+            //{
+            EpigraphService.Instance.RequestEpiInset(info.PartnerId, 0);
+            //}
+            //else
+            //{
+            //    if (!PartnersData.Instance.TryGetPlan(_planId, out var plan))
+            //    {
+            //        Context.ShowTips(StringDefine.PartnerPlanEmptyTips);
+            //        return;
+            //    }
+            //    var caoId = -1;
+            //    var sbId = 0;
+            //    foreach (var slot in plan.Slots)
+            //    {
+            //        if (slot.MwId == _mwId)
+            //        {
+            //            caoId = slot.CaoId;
+            //            sbId = slot.SbId;
+            //            break;
+            //        }
+            //    }
+            //    if (sbId == 0 || caoId < 0)
+            //    {
+            //        Context.ShowTips(StringDefine.EpigraphNotInPlanTips);
+            //        return;
+            //    }
+            //    PartnersService.Instance.RequestUpdatePlanMw(_planId, caoId, sbId, 0);
+            //}
             Context.ClosePanel();
         }
 
         private void OnClickUpBtn(EventContext context)
         {
-            if (_planId == PartnersData.Instance.UsePlanId)
+            //if (_planId == PartnersData.Instance.UsePlanId)
+            //{
+            if (!EpigraphData.Instance.TryGetEpigraphAttrByTableId(_mwId, out var attr))
             {
-                if (!EpigraphData.Instance.TryGetEpigraphAttrByTableId(_mwId, out var attr))
-                {
-                    Context.ShowTips(StringDefine.EpigraphEmptyTips);
-                    return;
-                }
-                if (attr.PartnerId > 0)
-                {
-                    Context.ShowTips(StringDefine.EpigraphAlreadyUpTips);
-                    return;
-                }
-                if (_partnerId > 0)
-                {
-                    if (
-                        !PartnersData.Instance.TryGetPartnerAttrByTableId(
-                            _partnerId,
-                            out var partnerAttr
-                        )
-                    )
-                    {
-                        Context.ShowTips(StringDefine.PartnerEmptyTips);
-                        return;
-                    }
-                    EpigraphService.Instance.RequestEpiInset(_partnerId, _mwId);
-                }
-                else
-                {
-                    EpigraphService.Instance.OpenUpMode(_mwId);
-                }
+                Context.ShowTips(StringDefine.EpigraphEmptyTips);
+                return;
             }
-            else
+            if (attr.PartnerId > 0)
             {
-                if (!PartnersData.Instance.TryGetPlan(_planId, out var plan))
-                {
-                    Context.ShowTips(StringDefine.PartnerPlanEmptyTips);
-                    return;
-                }
-                PartnerPlanSlot curSlot = null;
-                foreach (var slot in plan.Slots)
-                {
-                    if (slot.MwId == _mwId)
-                    {
-                        curSlot = slot;
-                        break;
-                    }
-                }
-                if (curSlot != null)
-                {
-                    Context.ShowTips(StringDefine.EpigraphAlreadyUpTips);
-                    return;
-                }
-                var targetSlot = PartnersData.Instance.GetPlanSlot(_planId, _slotId);
-                if (targetSlot == null || targetSlot.SbId == 0)
-                {
-                    Context.ShowTips(StringDefine.PartnerCurSlotNoSbTips);
-                    return;
-                }
-                PartnersService.Instance.RequestUpdatePlanMw(
-                    _planId,
-                    _slotId,
-                    targetSlot.SbId,
-                    _mwId
-                );
+                Context.ShowTips(StringDefine.EpigraphAlreadyUpTips);
+                return;
             }
+            //if (_partnerId > 0)
+            //{
+            //    if (
+            //        !PartnersData.Instance.TryGetPartnerAttrByTableId(
+            //            _partnerId,
+            //            out var partnerAttr
+            //        )
+            //    )
+            //    {
+            //        Context.ShowTips(StringDefine.PartnerEmptyTips);
+            //        return;
+            //    }
+            //    EpigraphService.Instance.RequestEpiInset(_partnerId, _mwId);
+            //}
+            //else
+            //{
+            EpigraphService.Instance.OpenUpMode(_mwId);
+            //}
+            //}
+            //else
+            //{
+            //    if (!PartnersData.Instance.TryGetPlan(_planId, out var plan))
+            //    {
+            //        Context.ShowTips(StringDefine.PartnerPlanEmptyTips);
+            //        return;
+            //    }
+            //    PartnerPlanSlot curSlot = null;
+            //    foreach (var slot in plan.Slots)
+            //    {
+            //        if (slot.MwId == _mwId)
+            //        {
+            //            curSlot = slot;
+            //            break;
+            //        }
+            //    }
+            //    if (curSlot != null)
+            //    {
+            //        Context.ShowTips(StringDefine.EpigraphAlreadyUpTips);
+            //        return;
+            //    }
+            //    var targetSlot = PartnersData.Instance.GetPlanSlot(_planId, _slotId);
+            //    if (targetSlot == null || targetSlot.SbId == 0)
+            //    {
+            //        Context.ShowTips(StringDefine.PartnerCurSlotNoSbTips);
+            //        return;
+            //    }
+            //    PartnersService.Instance.RequestUpdatePlanMw(
+            //        _planId,
+            //        _slotId,
+            //        targetSlot.SbId,
+            //        _mwId
+            //    );
+            //}
             Context.ClosePanel();
         }
 
@@ -238,33 +225,33 @@ namespace FL.FGUI
 
         private void ShowUpDownBtn()
         {
-            if (_planId == PartnersData.Instance.UsePlanId)
+            //if (_planId == PartnersData.Instance.UsePlanId)
+            //{
+            if (!EpigraphData.Instance.TryGetEpigraphAttrByTableId(_mwId, out var epi))
             {
-                if (!EpigraphData.Instance.TryGetEpigraphAttrByTableId(_mwId, out var epi))
-                {
-                    Log.Error($"铭文数据不存在,id:{_mwId}");
-                    return;
-                }
-                VM.Up.selectedIndex = epi.PartnerId > 0 ? 1 : 0;
-            }
-            else
-            {
-                if (!PartnersData.Instance.TryGetPlan(_planId, out var plan))
-                {
-                    Log.Error($"方案信息不存在,planId:{_planId}");
-                    return;
-                }
-                var isFind = false;
-                foreach (var slot in plan.Slots)
-                {
-                    if (slot.MwId == _mwId)
-                    {
-                        isFind = true;
-                        break;
-                    }
-                }
-                VM.Up.selectedIndex = isFind ? 1 : 0;
+                Log.Error($"铭文数据不存在,id:{_mwId}");
+                return;
             }
+            VM.Up.selectedIndex = epi.PartnerId > 0 ? 1 : 0;
+            //}
+            //else
+            //{
+            //    if (!PartnersData.Instance.TryGetPlan(_planId, out var plan))
+            //    {
+            //        Log.Error($"方案信息不存在,planId:{_planId}");
+            //        return;
+            //    }
+            //    var isFind = false;
+            //    foreach (var slot in plan.Slots)
+            //    {
+            //        if (slot.MwId == _mwId)
+            //        {
+            //            isFind = true;
+            //            break;
+            //        }
+            //    }
+            //    VM.Up.selectedIndex = isFind ? 1 : 0;
+            //}
         }
 
         private void UpDescInfo()

+ 45 - 39
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiMainPanel/PartnerEpiMainPanelCtrl.cs

@@ -23,10 +23,12 @@ namespace FL.FGUI
     {
         private bool _initialized = false;
         private bool _showPlanSwitch = false;
-        private Controller _switchBtnCtrl;
+
+        //private Controller _switchBtnCtrl;
 
         protected override void OnEnable(object intent)
         {
+            VM.PlanNested.Disable();
             AddUIListenres();
             AddEventListenres();
             InitList();
@@ -45,7 +47,7 @@ namespace FL.FGUI
         {
             VM.OneUpBtn.onClick.Add(OnClickOneUpBtn);
             VM.OneStrongBtn.onClick.Add(OnClickOneStrongBtn);
-            VM.ChangeBtn.onClick.Add(OnClickChangeBtn);
+            //VM.ChangeBtn.onClick.Add(OnClickChangeBtn);
             VM.MaskBtn.onClick.Add(OnClickMaskBtn);
         }
 
@@ -53,20 +55,20 @@ namespace FL.FGUI
         {
             VM.OneUpBtn.onClick.Remove(OnClickOneUpBtn);
             VM.OneStrongBtn.onClick.Remove(OnClickOneStrongBtn);
-            VM.ChangeBtn.onClick.Remove(OnClickChangeBtn);
+            //VM.ChangeBtn.onClick.Remove(OnClickChangeBtn);
             VM.MaskBtn.onClick.Remove(OnClickMaskBtn);
         }
 
-        private void OnClickChangeBtn(EventContext context)
-        {
-            _showPlanSwitch = !_showPlanSwitch;
-            if (EpigraphData.Instance.UpModeSelect > 0)
-            {
-                EpigraphService.Instance.FinishUpMode();
-            }
-            ShowPlanNested();
-            RefreshBagEpigraph();
-        }
+        //private void OnClickChangeBtn(EventContext context)
+        //{
+        //    _showPlanSwitch = !_showPlanSwitch;
+        //    if (EpigraphData.Instance.UpModeSelect > 0)
+        //    {
+        //        EpigraphService.Instance.FinishUpMode();
+        //    }
+        //    ShowPlanNested();
+        //    RefreshBagEpigraph();
+        //}
 
         private void OnClickMaskBtn(EventContext context)
         {
@@ -145,6 +147,12 @@ namespace FL.FGUI
         private void OnEpiUpSelect(int eventId, object args)
         {
             var sbId = (int)args;
+            if (sbId == 0)
+            {
+                Context.ShowTips(StringDefine.PartnerCurSlotNoSbTips);
+                EpigraphService.Instance.FinishUpMode();
+                return;
+            }
             if (EpigraphData.Instance.UpModeSelect > 0)
             {
                 EpigraphService.Instance.RequestEpiInset(sbId, EpigraphData.Instance.UpModeSelect);
@@ -153,7 +161,7 @@ namespace FL.FGUI
 
         private void OnReName(int eventId, object args)
         {
-            UpdatePlanName();
+            //UpdatePlanName();
         }
 
         private void OnUpdateAll(int eventId, object args)
@@ -164,7 +172,7 @@ namespace FL.FGUI
 
         private void OnPlanChange(int eventId, object args)
         {
-            UpdatePlanName();
+            //UpdatePlanName();
             RefreshBagEpigraph();
             RefreshGoneUpPartners();
         }
@@ -184,7 +192,7 @@ namespace FL.FGUI
         {
             if (_showPlanSwitch)
             {
-                ShowPlanNested();
+                //ShowPlanNested();
                 RefreshBagEpigraph();
             }
             ShowUpMode();
@@ -202,7 +210,7 @@ namespace FL.FGUI
                 return;
             VM.UpList.ListType = EGListType.None;
             VM.BagList.ListType = EGListType.Virtual;
-            _switchBtnCtrl = VM.ChangeBtn.GetController("arr");
+            //_switchBtnCtrl = VM.ChangeBtn.GetController("arr");
             _initialized = true;
         }
 
@@ -210,14 +218,13 @@ namespace FL.FGUI
         {
             RefreshBagEpigraph();
             RefreshGoneUpPartners();
-            UpdatePlanName();
-            ShowPlanNested();
+            //UpdatePlanName();
+            //ShowPlanNested();
             ShowUpMode();
         }
 
         private void RefreshGoneUpPartners()
         {
-            var plan = PartnersData.Instance.CurUsePlan;
             var list = new List<int>();
             for (int i = 0; i < PartnersData.GoneUpLimit; i++)
             {
@@ -226,11 +233,10 @@ namespace FL.FGUI
             VM.UpList.BindDatas(list);
         }
 
-        private void UpdatePlanName()
-        {
-            var plan = PartnersData.Instance.CurUsePlan;
-            VM.PlanLabel.text = plan.Name;
-        }
+        //private void UpdatePlanName()
+        //{
+        //    //VM.PlanLabel.text = plan.Name;
+        //}
 
         private void RefreshBagEpigraph()
         {
@@ -241,20 +247,20 @@ namespace FL.FGUI
             ShowOwnerAttr();
         }
 
-        private void ShowPlanNested()
-        {
-            VM.State.selectedIndex = _showPlanSwitch ? 1 : 0;
-            _switchBtnCtrl.selectedIndex = _showPlanSwitch ? 1 : 0;
-            if (_showPlanSwitch)
-            {
-                VM.PlanNested.Enable(null);
-                VM.PlanNested.Ctrl.ShowUI();
-            }
-            else
-            {
-                VM.PlanNested.Disable();
-            }
-        }
+        //private void ShowPlanNested()
+        //{
+        //    VM.State.selectedIndex = _showPlanSwitch ? 1 : 0;
+        //    //_switchBtnCtrl.selectedIndex = _showPlanSwitch ? 1 : 0;
+        //    if (_showPlanSwitch)
+        //    {
+        //        VM.PlanNested.Enable(null);
+        //        VM.PlanNested.Ctrl.ShowUI();
+        //    }
+        //    else
+        //    {
+        //        VM.PlanNested.Disable();
+        //    }
+        //}
 
         private void ShowUpMode()
         {

+ 0 - 2
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiMainPanel/PartnerEpiMainPanelVM.Gen.cs

@@ -21,7 +21,6 @@ namespace FL.FGUI
         public Controller State { get; private set; }
         public Controller SelectMode { get; private set; }
         public GTextField PlanLabel { get; private set; }
-        public GButton ChangeBtn { get; private set; }
         public GList BagList { get; private set; }
         public GTextField HaveLabel { get; private set; }
         public GTextField AttrLabel { get; private set; }
@@ -36,7 +35,6 @@ namespace FL.FGUI
             State = panel.GetController("State");
             SelectMode = panel.GetController("SelectMode");
             PlanLabel = panel.GetChild("PlanLabel") as GTextField;
-            ChangeBtn = panel.GetChild("ChangeBtn") as GButton;
             BagList = panel.GetChild("BagList") as GList;
             BagList.Init(typeof(PartnerEpiBagListItemView), adapter.CreateListItem);
             HaveLabel = panel.GetChild("HaveLabel") as GTextField;

+ 3 - 3
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiPlanListItem/PartnerEpiPlanListItemCtrl.cs

@@ -50,8 +50,8 @@ namespace FL.FGUI
                 UIKeys.PartnerEpiChangePanel,
                 new PartnerEpiChangePanelCtrlParam()
                 {
-                    PlanId = _planId,
-                    SlotId = _slotId,
+                    //PlanId = _planId,
+                    //SlotId = _slotId,
                     SbId = _sbId,
                 }
             );
@@ -61,7 +61,7 @@ namespace FL.FGUI
         {
             Context.UI.OpenAsync(
                 UIKeys.PartnerReplacePartnerPanel,
-                new PartnerReplacePartnerPanelCtrlParam() { PlanId = _planId, SlotId = _slotId }
+                new PartnerReplacePartnerPanelCtrlParam() { SlotId = _slotId }
             );
         }
         #endregion

+ 16 - 31
Assets/Scripts/Business/Runtime/FGUI/Partner/EpiUpListItem/PartnerEpiUpListItemCtrl.cs

@@ -4,6 +4,7 @@
 /// 该脚本由模板创建
 /// created by cb 2024
 
+using System.Collections.Generic;
 using FairyGUI;
 using FL.Data;
 using XGame;
@@ -58,12 +59,7 @@ namespace FL.FGUI
                 }
                 Context.UI.OpenAsync(
                     UIKeys.PartnerEpiChangePanel,
-                    new PartnerEpiChangePanelCtrlParam()
-                    {
-                        PlanId = PartnersData.Instance.UsePlanId,
-                        SlotId = -1,
-                        SbId = _sbId,
-                    }
+                    new PartnerEpiChangePanelCtrlParam() { SbId = _sbId }
                 );
             }
         }
@@ -76,49 +72,38 @@ namespace FL.FGUI
             }
             else if (_sbId > 0)
             {
-                Context.UI.OpenAsync(
-                    UIKeys.PartnerDetailsPanel,
-                    new PartnerDetailsPanelParam()
-                    {
-                        PlanId = PartnersData.Instance.UsePlanId,
-                        SlotId = -1,
-                        PartnerId = _sbId,
-                    }
-                );
+                //Context.UI.OpenAsync(
+                //    UIKeys.PartnerDetailsPanel,
+                //    new PartnerDetailsPanelParam()
+                //    {
+                //        PlanId = PartnersData.Instance.UsePlanId,
+                //        SlotId = -1,
+                //        PartnerId = _sbId,
+                //    }
+                //);
             }
             else
             {
-                Context.UI.OpenAsync(
-                    UIKeys.PartnerReplacePartnerPanel,
-                    new PartnerReplacePartnerPanelCtrlParam()
-                    {
-                        PlanId = PartnersData.Instance.UsePlanId,
-                        SlotId = _slotId,
-                    }
-                );
+                Context.UI.OpenAsync(UIKeys.PartnerSbUpPanel, _caoId);
             }
         }
 
         private void OnClickDownBtn(EventContext context)
         {
-            var slotData = PartnersData.Instance.CurUsePlan.GetSlot(_slotId);
-            if (slotData.SbId <= 0)
-                return;
-            PartnersService.Instance.RequestPartnerDown(slotData.SbId);
+            PartnersService.Instance.RequestPartnerDownNew(_sbId);
         }
 
         #endregion
 
         #region 属性
-        private int _slotId;
+        private int _caoId;
         private int _sbId;
         #endregion
 
         public void OnRefresh(int index, int slotId)
         {
-            _slotId = slotId;
-            var slotData = PartnersData.Instance.CurUsePlan.GetSlot(slotId);
-            _sbId = slotData?.SbId ?? 0;
+            _caoId = slotId;
+            _sbId = PartnersData.Instance.UpSbMap.GetValueOrDefault(slotId, 0);
             VM.IsUp.selectedIndex = _sbId > 0 ? 0 : 1;
             VM.PartnerItem.Ctrl.ShowUI(_sbId);
         }

+ 2 - 2
Assets/Scripts/Business/Runtime/FGUI/Partner/InfoListItem/PartnerInfoListItemCtrl.cs

@@ -58,8 +58,8 @@ namespace FL.FGUI
                 UIKeys.PartnerEpiChangePanel,
                 new PartnerEpiChangePanelCtrlParam()
                 {
-                    PlanId = PartnersData.Instance.UsePlanId,
-                    SlotId = -1,
+                    //PlanId = PartnersData.Instance.UsePlanId,
+                    //SlotId = -1,
                     SbId = _id,
                 }
             );

+ 3 - 3
Assets/Scripts/Business/Runtime/FGUI/Partner/PartnerPlanListItem/PartnerPartnerPlanListItemCtrl.cs

@@ -50,8 +50,8 @@ namespace FL.FGUI
                 UIKeys.PartnerEpiChangePanel,
                 new PartnerEpiChangePanelCtrlParam()
                 {
-                    PlanId = _planId,
-                    SlotId = _slotId,
+                    //PlanId = _planId,
+                    //SlotId = _slotId,
                     SbId = _sbId,
                 }
             );
@@ -61,7 +61,7 @@ namespace FL.FGUI
         {
             Context.UI.OpenAsync(
                 UIKeys.PartnerReplacePartnerPanel,
-                new PartnerReplacePartnerPanelCtrlParam() { PlanId = _planId, SlotId = _slotId }
+                new PartnerReplacePartnerPanelCtrlParam() { SlotId = _slotId }
             );
         }
         #endregion

+ 2 - 3
Assets/Scripts/Business/Runtime/FGUI/Partner/PartnerUpListItem/PartnerPartnerUpListItemCtrl.cs

@@ -60,8 +60,8 @@ namespace FL.FGUI
                     UIKeys.PartnerEpiChangePanel,
                     new PartnerEpiChangePanelCtrlParam()
                     {
-                        PlanId = PartnersData.Instance.UsePlanId,
-                        SlotId = -1,
+                        //PlanId = PartnersData.Instance.UsePlanId,
+                        //SlotId = -1,
                         SbId = _sbId,
                     }
                 );
@@ -92,7 +92,6 @@ namespace FL.FGUI
                     UIKeys.PartnerReplacePartnerPanel,
                     new PartnerReplacePartnerPanelCtrlParam()
                     {
-                        PlanId = PartnersData.Instance.UsePlanId,
                         SlotId = _slotId,
                     }
                 );

+ 12 - 18
Assets/Scripts/Business/Runtime/FGUI/Partner/ReplacePartnerListItem/PartnerReplacePartnerListItemCtrl.cs

@@ -7,6 +7,7 @@
 
 using FairyGUI;
 using FL.Data;
+using System.Collections.Generic;
 using XGame;
 using XGame.Database;
 using XGame.Framework.UI;
@@ -15,7 +16,7 @@ namespace FL.FGUI
 {
     public interface IPartnerReplacePanelCtrl
     {
-        int PlanId { get; }
+        //int PlanId { get; }
         int SlotId { get; }
         int CurSelectId { get; }
     }
@@ -68,7 +69,7 @@ namespace FL.FGUI
         public void OnRefresh(int index, PartnerReplacePartnerListItemCtrlParam param)
         {
             _partnerId = param.PartnerId;
-            _planId = param.Ctrl.PlanId;
+            //_planId = param.Ctrl.PlanId;
             _slotId = param.Ctrl.SlotId;
             _curSelectedId = param.Ctrl.CurSelectId;
             var info = PartnersData.Instance.GetPartnerAttrByTableId(param.PartnerId);
@@ -78,22 +79,15 @@ namespace FL.FGUI
                 return;
             }
             ShowSelectState();
-            var plan = PartnersData.Instance.GetPlanById(param.Ctrl.PlanId);
-            if (plan == null)
-            {
-                Log.Error($"方案信息不存在,方案id:{param.Ctrl.PlanId}");
-                return;
-            }
-            var isUp = false;
-            foreach (var slot in plan.Slots)
-            {
-                if (slot.SbId == _partnerId)
-                {
-                    isUp = true;
-                    break;
-                }
-            }
-            VM.StateCtrl.selectedIndex = isUp ? 1 : 0;
+            //var plan = PartnersData.Instance.GetPlanById(param.Ctrl.PlanId);
+            //if (plan == null)
+            //{
+            //    Log.Error($"方案信息不存在,方案id:{param.Ctrl.PlanId}");
+            //    return;
+            //}
+            //var isUp = false;
+            var pos = PartnersData.Instance.UpSbPosMap.GetValueOrDefault(_partnerId, -1);
+            VM.StateCtrl.selectedIndex = pos >= 0 ? 1 : 0;
             var parterInfo = PartnerTableRepo.Get(param.PartnerId);
             VM.NameLabel.text = parterInfo?.Name ?? "";
             VM.PartnerItem.Ctrl.ShowUI(_partnerId);

+ 44 - 44
Assets/Scripts/Business/Runtime/FGUI/Partner/ReplacePartnerPanel/PartnerReplacePartnerPanelCtrl.cs

@@ -14,7 +14,7 @@ namespace FL.FGUI
 {
     public class PartnerReplacePartnerPanelCtrlParam
     {
-        public int PlanId;
+        //public int PlanId;
         public int SlotId;
     }
 
@@ -26,11 +26,11 @@ namespace FL.FGUI
         : UIController<PartnerReplacePartnerPanelVM>,
             IPartnerReplacePanelCtrl
     {
-        private int _planId;
+        //private int _planId;
         private int _slotId;
         private int _curSelectId;
 
-        public int PlanId => _planId;
+        //public int PlanId => _planId;
         public int SlotId => _slotId;
         public int CurSelectId => _curSelectId;
 
@@ -65,38 +65,41 @@ namespace FL.FGUI
                 Log.Error("当前选择圣兵id为0");
                 return;
             }
-            var plan = PartnersData.Instance.GetPlanById(_planId);
-            if (plan == null)
+            //var plan = PartnersData.Instance.GetPlanById(_planId);
+            //if (plan == null)
+            //{
+            //    Log.Error($"方案信息不存在id: {_planId}");
+            //    return;
+            //}
+            //foreach (var slot in plan.Slots)
+            //{
+            //    if (slot.SbId == CurSelectId)
+            //    {
+            //        Context.ShowTips(StringDefine.PartnerAlreadyUpTips);
+            //        return;
+            //    }
+            //}
+            var pos = PartnersData.Instance.UpSbPosMap.GetValueOrDefault(_curSelectId, -1);
+            if (pos >= 0)
             {
-                Log.Error($"方案信息不存在id: {_planId}");
+                Context.ShowTips(StringDefine.PartnerAlreadyUpTips);
                 return;
             }
-            foreach (var slot in plan.Slots)
-            {
-                if (slot.SbId == CurSelectId)
-                {
-                    Context.ShowTips(StringDefine.PartnerAlreadyUpTips);
-                    return;
-                }
-            }
             Context.ClosePanel();
-            if (_planId == PartnersData.Instance.UsePlanId)
-            {
-                PartnersService.Instance.RequestPartnerUp(_slotId, _curSelectId);
-            }
-            else
-            {
-                PartnersService.Instance.RequestUpdatePlanSb(_planId, _slotId, _curSelectId);
-            }
+            //if (_planId == PartnersData.Instance.UsePlanId)
+            //{
+            PartnersService.Instance.RequestPartnerUpNew(_slotId, _curSelectId);
+            //}
+            //else
+            //{
+            //    PartnersService.Instance.RequestUpdatePlanSb(_planId, _slotId, _curSelectId);
+            //}
         }
         #endregion
 
         private void AddEventListener()
         {
-            EventSingle.Instance.AddListener(
-                EventDefine.PartnerUpSelect,
-                SelectReplacePartner
-            );
+            EventSingle.Instance.AddListener(EventDefine.PartnerUpSelect, SelectReplacePartner);
             EventSingle.Instance.AddListener(EventDefine.PartnerBinding, OnInfoUpdate);
             EventSingle.Instance.AddListener(EventDefine.PartnerUp, OnInfoUpdate);
             EventSingle.Instance.AddListener(EventDefine.PartnerDown, OnInfoUpdate);
@@ -105,10 +108,7 @@ namespace FL.FGUI
 
         private void RemoveEventListener()
         {
-            EventSingle.Instance.RemoveListener(
-                EventDefine.PartnerUpSelect,
-                SelectReplacePartner
-            );
+            EventSingle.Instance.RemoveListener(EventDefine.PartnerUpSelect, SelectReplacePartner);
             EventSingle.Instance.RemoveListener(EventDefine.PartnerBinding, OnInfoUpdate);
             EventSingle.Instance.RemoveListener(EventDefine.PartnerUp, OnInfoUpdate);
             EventSingle.Instance.RemoveListener(EventDefine.PartnerDown, OnInfoUpdate);
@@ -125,17 +125,17 @@ namespace FL.FGUI
             var id = (int)args;
             if (id == _curSelectId)
             {
-                Context.UI.OpenAsync(
-                    UIKeys.PartnerDetailsPanel,
-                    new PartnerDetailsPanelParam()
-                    {
-                        PlanId = _planId,
-                        SlotId = _slotId,
-                        PartnerId = _curSelectId,
-                    }
-                );
-                Context.ClosePanel();
-                return;
+                //Context.UI.OpenAsync(
+                //    UIKeys.PartnerDetailsPanel,
+                //    new PartnerDetailsPanelParam()
+                //    {
+                //        PlanId = _planId,
+                //        SlotId = _slotId,
+                //        PartnerId = _curSelectId,
+                //    }
+                //);
+                //Context.ClosePanel();
+                //return;
             }
             _curSelectId = id;
             UpdateList();
@@ -144,15 +144,15 @@ namespace FL.FGUI
         private void ShowUI(PartnerReplacePartnerPanelCtrlParam param)
         {
             _slotId = param.SlotId;
-            _planId = param.PlanId;
-            var slot = PartnersData.Instance.GetPlanSlot(_planId, _slotId);
+            //_planId = param.PlanId;
+            //var slot = PartnersData.Instance.GetPlanSlot(_planId, _slotId);
             var list = PartnersData.Instance.PartnerList;
             if (list.Count <= 0)
             {
                 Log.Error($"圣兵库内不存在圣兵");
                 return;
             }
-            var sbId = slot?.SbId ?? 0;
+            var sbId = PartnersData.Instance.UpSbMap.GetValueOrDefault(_slotId, 0);
             _curSelectId = sbId > 0 ? sbId : list[0].TableId;
             UpdateList();
         }

+ 6 - 2
Assets/Scripts/Business/Runtime/FGUI/Partner/SbBagPanel/PartnerSbBagPanelCtrl.cs

@@ -8,8 +8,6 @@ using System.Collections.Generic;
 using System.Runtime.Remoting.Contexts;
 using FairyGUI;
 using FL.Data;
-using UnityEngine;
-using XGame;
 using XGame.Database;
 using XGame.Framework.Persistence;
 using XGame.Framework.UI;
@@ -60,6 +58,7 @@ namespace FL.FGUI
             EventSingle.Instance.AddListener(EventDefine.PartnerUpLevel, OnUpdateList);
             EventSingle.Instance.AddListener(EventDefine.PartnerStrongAll, OnUpdateList);
             EventSingle.Instance.AddListener(EventDefine.PartnerUpStar, OnUpdateList);
+            EventSingle.Instance.AddListener(EventDefine.PartnerBinding, OnUpdateList);
         }
 
         private void RemoveUIListenres()
@@ -76,6 +75,7 @@ namespace FL.FGUI
             EventSingle.Instance.RemoveListener(EventDefine.PartnerUpLevel, OnUpdateList);
             EventSingle.Instance.RemoveListener(EventDefine.PartnerStrongAll, OnUpdateList);
             EventSingle.Instance.RemoveListener(EventDefine.PartnerUpStar, OnUpdateList);
+            EventSingle.Instance.RemoveListener(EventDefine.PartnerBinding, OnUpdateList);
         }
 
         private void OnClickPanel()
@@ -127,6 +127,10 @@ namespace FL.FGUI
             }
             if (canUp)
                 PartnersService.Instance.RequestPartnerOneKeyStarUp();
+            else
+            {
+                Context.ShowTips(StringDefine.PartnerCantStarUpAll);
+            }
         }
 
         private void OnClickSortBtn(EventContext context)

+ 4 - 1
Assets/Scripts/Business/Runtime/FGUI/Partner/SbMainPanel/PartnerSbMainPanelCtrl.cs

@@ -50,6 +50,7 @@ namespace FL.FGUI
             EventSingle.Instance.AddListener(EventDefine.PartnerDown, OnSbUp);
             EventSingle.Instance.AddListener(EventDefine.PartnerUp, OnSbUp);
             EventSingle.Instance.AddListener(EventDefine.PartnerWearAll, OnSbUp);
+            EventSingle.Instance.AddListener(EventDefine.PartnerBinding, OnSbUp);
         }
 
         private void RemoveUIListenres()
@@ -71,8 +72,9 @@ namespace FL.FGUI
             EventSingle.Instance.RemoveListener(EventDefine.PartnerUpLevel, OnUpLevel);
             EventSingle.Instance.RemoveListener(EventDefine.PartnerUpStar, OnUpStar);
             EventSingle.Instance.RemoveListener(EventDefine.PartnerDown, OnSbUp);
-            EventSingle.Instance.RemoveListener(EventDefine.PartnerUp, OnSbUp);
+            EventSingle.Instance.RemoveListener(EventDefine.PartnerUp, OnSbUp);
             EventSingle.Instance.RemoveListener(EventDefine.PartnerWearAll, OnSbUp);
+            EventSingle.Instance.RemoveListener(EventDefine.PartnerBinding, OnSbUp);
         }
 
         private void OnSbUp(int eventId, object args)
@@ -80,6 +82,7 @@ namespace FL.FGUI
             RefreshGoneUpPartners(false);
             UpdateDetail();
         }
+
         private void OnUpLevel(int eventId, object args)
         {
             RefreshGoneUpPartners(false);

+ 13 - 8
Assets/Scripts/Business/Runtime/FGUI/Partner/SbStrengthPanel/PartnerSbStrengthPanelCtrl.cs

@@ -41,8 +41,9 @@ namespace FL.FGUI
             VM.StarUpBtn.VM.PanelEvent.Add(OnClickStarUp);
             VM.LevelUpBtn.VM.PanelEvent.Add(OnClickLevelUp);
             VM.DownBtn.onClick.Add(OnClickDownBtn);
-            EventSingle.Instance.AddListener(EventDefine.PartnerUpLevel, OnUpLevel);
-            EventSingle.Instance.AddListener(EventDefine.PartnerUpStar, OnUpStar);
+            EventSingle.Instance.AddListener(EventDefine.PartnerUpLevel, OnUpInfo);
+            EventSingle.Instance.AddListener(EventDefine.PartnerUpStar, OnUpInfo);
+            EventSingle.Instance.AddListener(EventDefine.PartnerBinding, OnEpiChange);
         }
 
         private void RemoveUIListenres()
@@ -54,8 +55,9 @@ namespace FL.FGUI
             VM.StarUpBtn.VM.PanelEvent.Remove(OnClickStarUp);
             VM.LevelUpBtn.VM.PanelEvent.Remove(OnClickLevelUp);
             VM.DownBtn.onClick.Remove(OnClickDownBtn);
-            EventSingle.Instance.RemoveListener(EventDefine.PartnerUpLevel, OnUpLevel);
-            EventSingle.Instance.RemoveListener(EventDefine.PartnerUpStar, OnUpStar);
+            EventSingle.Instance.RemoveListener(EventDefine.PartnerUpLevel, OnUpInfo);
+            EventSingle.Instance.RemoveListener(EventDefine.PartnerUpStar, OnUpInfo);
+            EventSingle.Instance.RemoveListener(EventDefine.PartnerBinding, OnEpiChange);
         }
 
         private void OnClickDownBtn(EventContext eventContext)
@@ -64,12 +66,12 @@ namespace FL.FGUI
             Context.ClosePanel();
         }
 
-        private void OnUpStar(int eventId, object args)
+        public void OnEpiChange(int eventId, object args)
         {
-            ShowInfo();
+            ShowEpi();
         }
 
-        private void OnUpLevel(int eventId, object args)
+        private void OnUpInfo(int eventId, object args)
         {
             ShowInfo();
         }
@@ -129,7 +131,10 @@ namespace FL.FGUI
 
         private void OnClickMwSet(EventContext context)
         {
-            //Context.UI.OpenAsync(UIKeys.PartnerEpiChangePanel, )
+            Context.UI.OpenAsync(
+                UIKeys.PartnerEpiChangePanel,
+                new PartnerEpiChangePanelCtrlParam() { SbId = _curSelectId }
+            );
         }
 
         #endregion

+ 1 - 2
fl-fgui-project/assets/Partner/Epigraph/EpiMainPanel.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="756,1344" designImage="ui://2981jnh7z6mw3f" designImageOffsetY="19" designImageAlpha="57" designImageLayer="1">
   <controller name="State" pages="0,bag,1,plan" selected="0"/>
-  <controller name="SelectMode" pages="0,,1," selected="1">
+  <controller name="SelectMode" pages="0,,1," selected="0">
     <remark page="0" value="正常"/>
     <remark page="1" value="上阵选择模式"/>
   </controller>
@@ -13,7 +13,6 @@
     </image>
     <image id="n18_v4ke" name="n18" src="v4keq" fileName="Epigraph/Images/img/planbg.png" xy="16,120" size="725,376" group="n5_vl6j"/>
     <text id="n4_vl6j" name="PlanLabel" xy="36,128" size="89,44" group="n5_vl6j" fontSize="32" color="#ffffff" align="center" vAlign="middle" bold="true" strokeColor="#000000" strokeSize="2" text="方案1"/>
-    <component id="n39_pu68" name="ChangeBtn" src="pu6849" fileName="Epigraph/Components/SwitchBtn.xml" xy="613,132" group="n5_vl6j"/>
     <group id="n5_vl6j" name="n5" xy="16,120" size="725,376"/>
     <list id="n9_vl6j" name="BagList" xy="29,562" size="699,507" group="n35_v4ke" layout="flow_hz" overflow="scroll" lineGap="22" colGap="14" defaultItem="ui://2981jnh7v4ke1i" autoClearItems="true" scrollItemToViewOnClick="false">
       <relation target="" sidePair="bottomext-bottom"/>