| System/CrossServerOneVsOne/CrossServerRewardModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/CrossServerOneVsOne/RankCellCtrl.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/CrossServerOneVsOne/RankCellCtrl.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/CrossServerOneVsOne/RankingWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/CrossServerOneVsOne/CrossServerRewardModel.cs
@@ -21,10 +21,23 @@ public int Score; public List<Item_Class> ItemList; } public class RankingInformationClass//排名信息 { public int Rankin;//名次 public int Realm;//境界 public int PlayerID;//玩家ID public string ServerName;//服务器名 public int Job;//职业 public int Power;//战力 public int Segment;//段位 public int Integral;//积分 } public class CrossServerRewardModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk { public Dictionary<int, SeasonAwardClass> SegmentRewardDic = new Dictionary<int, SeasonAwardClass>(); public ImpactRankModel.RankAwardItem SeasonRewardDic = new ImpactRankModel.RankAwardItem(); public Dictionary<int, RankingInformationClass> RankInformationDic = new Dictionary<int, RankingInformationClass>(); private bool m_IsOpenMatch; public bool IsOpenMatch { @@ -45,13 +58,11 @@ public void OnBeforePlayerDataInitialize() { GlobalTimeEvent.Instance.secondEvent -= secondEvent; } public void OnPlayerLoginOk() { GlobalTimeEvent.Instance.secondEvent += secondEvent; } @@ -111,10 +122,6 @@ public void ResetTime() { Date_Time= TimeUtility.ServerNow; } private void secondEvent() { } } System/CrossServerOneVsOne/RankCellCtrl.cs
New file @@ -0,0 +1,82 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Wednesday, December 19, 2018 //-------------------------------------------------------- using EnhancedUI.EnhancedScroller; using System.Collections; using System.Collections.Generic; using TableConfig; using UnityEngine; using UnityEngine.UI; using System; namespace Snxxz.UI { public class RankCellCtrl : ScrollerUI { [SerializeField] Button m_RankButton; [SerializeField] Text m_RankNum; [SerializeField] Image m_RankNumBottom; [SerializeField] Text m_NameTxt; [SerializeField] Text m_JobTxt; [SerializeField] Text m_RankWhatTxt; [SerializeField] Text m_SegmentTxt; [SerializeField] Text m_IntegralTxt; CrossServerRewardModel m_CrossServerRewardModel; CrossServerRewardModel crossServerRewardModel { get { return m_CrossServerRewardModel ?? (m_CrossServerRewardModel = ModelCenter.Instance.GetModel<CrossServerRewardModel>()); } } public override void Refresh(CellView cell) { int index = cell.index; if (index < 3) { m_RankNumBottom.gameObject.SetActive(true); if (index == 0) { m_RankNumBottom.SetSprite("Rank_First"); } else if (index == 1) { m_RankNumBottom.SetSprite("Rank_Second"); } else if (index == 2) { m_RankNumBottom.SetSprite("Rank_Third"); } m_RankNum.gameObject.SetActive(false); } else { m_RankNumBottom.gameObject.SetActive(false); m_RankNum.text = (index + 1).ToString(); m_RankNum.gameObject.SetActive(true); } RankingInformationClass data = null; if (crossServerRewardModel.RankInformationDic != null && index < crossServerRewardModel.RankInformationDic.Count) { data = crossServerRewardModel.RankInformationDic[index]; } if (data != null) { } else { m_NameTxt.text = Language.Get("L1046"); m_JobTxt.text = "-"; m_RankWhatTxt.text = "-"; m_SegmentTxt.text= "-"; m_IntegralTxt.text= "-"; m_NameTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown); m_JobTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown); m_RankWhatTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown); m_SegmentTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown); m_SegmentTxt.color = UIHelper.GetUIColor(TextColType.NavyBrown); } } } } System/CrossServerOneVsOne/RankCellCtrl.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 7e2f54309d2f92a48854420b24f50804 timeCreated: 1545200441 licenseType: Free MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/CrossServerOneVsOne/RankingWin.cs
@@ -17,6 +17,7 @@ public class RankingWin : Window { [SerializeField] ScrollerController m_ScrollerController; [SerializeField] Button m_CloseButton; #region Built-in protected override void BindController() { @@ -25,6 +26,7 @@ protected override void AddListeners() { m_CloseButton.AddListener(()=> { Close(); }); } protected override void OnPreOpen()