Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | { |
| | | [HideInInspector] |
| | | public int effectID = -1; |
| | | public string stateNameFront = "Fly_500"; |
| | | public float flyTimeFront = 2; |
| | | public string stateNameBack = "Fly_500"; |
| | | public float flyTimeBack = 2; |
| | | |
| | | #if UNITY_EDITOR |
| | | |
| | |
| | | public void Save(BinaryWriter bw) |
| | | { |
| | | bw.Write(effectID); |
| | | bw.Write(stateNameFront); |
| | | bw.Write(flyTimeFront); |
| | | bw.Write(stateNameBack); |
| | | bw.Write(flyTimeBack); |
| | | bw.Write((float)System.Math.Round(transform.position.x, 2)); |
| | | bw.Write((float)System.Math.Round(transform.position.y, 2)); |
| | | bw.Write((float)System.Math.Round(transform.position.z, 2)); |
| | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | effectID = br.ReadInt32(); |
| | | stateNameFront = br.ReadString(); |
| | | flyTimeFront = br.ReadSingle(); |
| | | stateNameBack = br.ReadString(); |
| | | flyTimeBack = br.ReadSingle(); |
| | | float _x = br.ReadSingle(); |
| | | float _y = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | |
| | | pointList.RemoveAt(i); |
| | | continue; |
| | | } |
| | | EditorGUILayout.BeginHorizontal(guiSkin.box, GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("[" + (i + 1) + "]", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(40)); |
| | | EditorGUILayout.LabelField("特效ID", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(40)); |
| | | EditorGUILayout.BeginVertical(guiSkin.box); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("[" + (i + 1) + "]", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(25)); |
| | | EditorGUILayout.LabelField("特效", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(25)); |
| | | pointList[i].effectID = EditorGUILayout.IntField(pointList[i].effectID, guiSkin.textField, GUILayout.Height(20)); |
| | | if (GUILayout.Button("定高", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | EditorGUILayout.EndHorizontal(); |
| | | |
| | | if (i - 1 >= 0) |
| | | { |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("到上一个节点的动作", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(120)); |
| | | pointList[i].stateNameFront = EditorGUILayout.TextField(pointList[i].stateNameFront, guiSkin.textField, GUILayout.Height(20)); |
| | | EditorGUILayout.LabelField("时间", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(25)); |
| | | pointList[i].flyTimeFront = EditorGUILayout.FloatField(pointList[i].flyTimeFront, guiSkin.textField, GUILayout.Height(20)); |
| | | EditorGUILayout.EndHorizontal(); |
| | | } |
| | | |
| | | if (i + 1 < pointList.Count) |
| | | { |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUILayout.LabelField("到下一个节点的动作", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(120)); |
| | | pointList[i].stateNameBack = EditorGUILayout.TextField(pointList[i].stateNameBack, guiSkin.textField, GUILayout.Height(20)); |
| | | EditorGUILayout.LabelField("时间", guiSkin.customStyles[0], GUILayout.Height(20), GUILayout.Width(25)); |
| | | pointList[i].flyTimeBack = EditorGUILayout.FloatField(pointList[i].flyTimeBack, guiSkin.textField, GUILayout.Height(20)); |
| | | EditorGUILayout.EndHorizontal(); |
| | | } |
| | | |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | if (GUILayout.Button("定高", guiSkin.button, GUILayout.Height(20))) |
| | | { |
| | | Vector3 _pos = pointList[i].transform.position; |
| | | _pos.y = 0; |
| | |
| | | pointList[i].transform.position = _hit.point; |
| | | } |
| | | } |
| | | if (GUILayout.Button("查找", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | if (GUILayout.Button("查找", guiSkin.button, GUILayout.Height(20))) |
| | | { |
| | | Selection.activeGameObject = pointList[i].gameObject; |
| | | if (Selection.activeGameObject) |
| | |
| | | SceneView.lastActiveSceneView.LookAt(Selection.activeGameObject.transform.position); |
| | | } |
| | | } |
| | | if (GUILayout.Button("删除", guiSkin.button, GUILayout.Width(60), GUILayout.Height(20))) |
| | | if (GUILayout.Button("删除", guiSkin.button, GUILayout.Height(20))) |
| | | { |
| | | DestroyImmediate(pointList[i].gameObject); |
| | | pointList.RemoveAt(i); |
| | | } |
| | | EditorGUILayout.EndHorizontal(); |
| | | EditorGUILayout.EndVertical(); |
| | | } |
| | | } |
| | | EditorGUILayout.EndVertical(); |
| | |
| | | public class MapTransferPoint |
| | | { |
| | | public int effectID; |
| | | public string stateNameFront; |
| | | public float flyTimeFront; |
| | | public string stateNameBack; |
| | | public float flyTimeBack; |
| | | public float radius; |
| | | public Vector3 position; |
| | | |
| | | public void Load(BinaryReader br) |
| | | { |
| | | effectID = br.ReadInt32(); |
| | | stateNameFront = br.ReadString(); |
| | | flyTimeFront = br.ReadSingle(); |
| | | stateNameBack = br.ReadString(); |
| | | flyTimeBack = br.ReadSingle(); |
| | | float _x = br.ReadSingle(); |
| | | float _y = br.ReadSingle(); |
| | | float _z = br.ReadSingle(); |
| | |
| | | {
|
| | | AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
|
| | | AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } } |
| | | public int GetSendNumber()
|
| | | public int GetSendNumber()//获取当前拍卖列表的索引类型
|
| | | {
|
| | | var sendNumber = 0;
|
| | | var index = auctionHelpModel.SelectedGenreNow;
|
| | | if (!auctionHelpModel.FullServiceAuctionDic.ContainsKey(index))
|
| | | {
|
| | | DebugEx.LogError("---没有找到该索引下标的数据");
|
| | | //DebugEx.LogError("---没有找到该索引下标的数据");
|
| | | return sendNumber;
|
| | | }
|
| | | var fullServiceAuction = auctionHelpModel.FullServiceAuctionDic[index];
|
| | |
| | | queryAuctionItem.QueryCount = queryCount;
|
| | | SendQueryAuctionItem(queryAuctionItem);
|
| | | } |
| | | public void SendLocationQuery(string itemGUID)//定位查询
|
| | | {
|
| | | if (auctionHelpModel.SelectedGenreNow != 0)
|
| | | {
|
| | | auctionHelpModel.SelectedGenreNow = 0;
|
| | | }
|
| | | int indexId = GetSendNumber();
|
| | | var auctionIndex = AuctionIndexConfig.Get(indexId);
|
| | | if (auctionIndex == null)
|
| | | {
|
| | | DebugEx.LogError("拍卖索引表没有查到对应的ID" + indexId);
|
| | | return;
|
| | | }
|
| | | QueryAuctionItem queryAuctionItem = new QueryAuctionItem();
|
| | | queryAuctionItem.FromItemGUID = itemGUID;
|
| | | queryAuctionItem.Job = auctionIndex.Job;
|
| | | queryAuctionItem.ItemTypeList = new List<uint>();
|
| | | if (auctionIndex.ItemType != null && auctionIndex.ItemType.Length > 0)
|
| | | {
|
| | | for (int i = 0; i < auctionIndex.ItemType.Length; i++)
|
| | | {
|
| | | queryAuctionItem.ItemTypeList.Add((uint)auctionIndex.ItemType[i]);
|
| | | }
|
| | | }
|
| | | queryAuctionItem.ClassLV = auctionIndex.Order;
|
| | | queryAuctionItem.SpecItemIDList = new List<uint>();
|
| | | if (auctionIndex.SpecItemID != null && auctionIndex.SpecItemID.Length > 0)
|
| | | {
|
| | | for (int i = 0; i < auctionIndex.SpecItemID.Length; i++)
|
| | | {
|
| | | queryAuctionItem.SpecItemIDList.Add((uint)auctionIndex.SpecItemID[i]);
|
| | | }
|
| | | }
|
| | | queryAuctionItem.QueryDir = 3;//定位查询
|
| | | queryAuctionItem.QueryCount = 10;
|
| | | SendQueryAuctionItem(queryAuctionItem);
|
| | | } |
| | | |
| | | private void SendQueryAuctionItem(QueryAuctionItem queryAuctionItem)//拍卖行查询拍卖中的物品
|
| | | {
|
| | | CB510_tagCGQueryAuctionItem cb510 = new CB510_tagCGQueryAuctionItem();
|
| | |
| | | public QueryRemainingClass QueryRemaining = new QueryRemainingClass();
|
| | |
|
| | | private const int Redpointkey1 = 217;
|
| | | public Redpoint redPointStre1 = new Redpoint(2, Redpointkey1);//集市红点
|
| | | public Redpoint redPointStre1 = new Redpoint(2, Redpointkey1);//拍卖行红点
|
| | | private bool locationQuery = false;
|
| | | public bool LocationQuery
|
| | | {
|
| | | get { return locationQuery; }
|
| | | set { locationQuery = value; }
|
| | | }
|
| | | public override void Init()
|
| | | {
|
| | |
|
| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | LocationQuery = false;
|
| | | PlayerAuctionItemInfoDic.Clear();
|
| | | FullServiceAuctionList.Clear();
|
| | | FamilyAuctionItemDic.Clear();
|
| | |
| | | }
|
| | | else if (info.QueryDir == 3)//定位查询
|
| | | {
|
| | | FullServiceAuctionList.InsertRange(FullServiceAuctionList.Count - 1, fullServiceAuctionList);
|
| | | if (FullServiceAuctionList.Count == 0)
|
| | | {
|
| | | FullServiceAuctionList.InsertRange(0, fullServiceAuctionList);
|
| | | }
|
| | | else
|
| | | {
|
| | | FullServiceAuctionList.InsertRange(FullServiceAuctionList.Count - 1, fullServiceAuctionList);
|
| | | }
|
| | | LocationQuery = true;
|
| | | WindowCenter.Instance.Open<AuctionHouseWin>(true,0);//定位查询
|
| | | }
|
| | |
|
| | | if (FullServiceAuctionUpdate != null)
|
| | |
| | | { |
| | | model.FamilyAuctionItemUpdate += FamilyAuctionReset;
|
| | | model.ClearFamilyAuctionUpdate += FamilyAuctionReset; |
| | | model.RefreshAuctionItemUpdate += RefreshAuctionItemUpdate; |
| | | model.RefreshAuctionItemUpdate += RefreshAuctionItemUpdate;
|
| | | model.BiddingItemInfoUpdate += RefreshAuctionItemUpdate; |
| | | } |
| | | |
| | |
| | | model.ClearFamilyAuctionUpdate -= FamilyAuctionReset;
|
| | | model.BiddingItemInfoUpdate -= RefreshAuctionItemUpdate;
|
| | | model.RefreshAuctionItemUpdate -= RefreshAuctionItemUpdate;
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | |
| | |
|
| | |
|
| | | protected override void OnAfterClose() |
| | | { |
| | |
| | | private void RefreshAuctionItemUpdate()
|
| | | {
|
| | | m_ScrollerControllerItem.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | } |
| | | }
|
| | | private void OnCreateGridCellItem(ScrollerController gridCtrl)
|
| | | {
|
| | | gridCtrl.Refresh();
|
| | |
| | | {
|
| | | return -havex1.CompareTo(havey1);
|
| | | }
|
| | | bool havex2 = IsAttention(x.ItemID);
|
| | | bool havey2 = IsAttention(y.ItemID);
|
| | | if (havex2.CompareTo(havey2) != 0)//是否关注
|
| | | bool havex2 = IsNeedEquip(x.ItemID);
|
| | | bool havey2 = IsNeedEquip(y.ItemID);
|
| | | if (havex2.CompareTo(havey2) != 0)//是否需要
|
| | | {
|
| | | return -havex2.CompareTo(havey2);
|
| | | }
|
| | |
| | | if (model.BiddingItemInfoDic.ContainsKey(GUID))
|
| | | {
|
| | | var biddingItemInfo = model.BiddingItemInfoDic[GUID];
|
| | | isBool=biddingItemInfo.BidderID == playerId;
|
| | | isBool = biddingItemInfo.BidderID == playerId;
|
| | | }
|
| | | return isBool;
|
| | | }
|
| | |
| | | }
|
| | | return isBool;
|
| | | } |
| | | private bool IsAttention(int itemId)
|
| | | private bool IsNeedEquip(int itemId)
|
| | | {
|
| | | bool isBool = false;
|
| | | if (model.AttentionAuctionItemIDdic.ContainsKey(itemId))
|
| | | var itemConfig = ItemConfig.Get(itemId);
|
| | | if (itemConfig == null)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | if (!auctionHelpModel.WhetherEquipped(itemConfig.LV, itemConfig.EquipPlace))
|
| | | {
|
| | | isBool = true;
|
| | | }
|
| | |
| | | }
|
| | | var timeNow = TimeUtility.ServerNow;
|
| | | TimeSpan timeSpan = timeNow - auctionItemClass.Time;
|
| | | scends= (int)timeSpan.TotalSeconds;
|
| | | scends = (int)timeSpan.TotalSeconds;
|
| | | return scends;
|
| | | } |
| | | } |
| | |
| | | return;
|
| | | }
|
| | | AuctionItem = auctionItem;
|
| | | if (model.AttentionAuctionItemIDdic.ContainsKey(familyAuctionItem.ItemID))//是否关注
|
| | | var equipNeedBool = auctionHelpModel.WhetherEquipped(itemConfig.LV, itemConfig.EquipPlace);
|
| | | if (!equipNeedBool)//是否需要
|
| | | {
|
| | | m_NeedImage.SetActive(true);
|
| | | }
|
| | |
| | | private void OnCreateGridLineCellItem(ScrollerController gridCtrl)
|
| | | {
|
| | | ListSort();
|
| | | for (int i = 0; i < model.FullServiceAuctionList.Count; i++)
|
| | | if (!model.LocationQuery)
|
| | | {
|
| | | var FullServiceAuction = model.FullServiceAuctionList[i];
|
| | | var index = FullServiceAuctionListSort.FindIndex((x) => { return x.ItemGUID == FullServiceAuction.ItemGUID; });
|
| | | if (index == -1)
|
| | | for (int i = 0; i < model.FullServiceAuctionList.Count; i++)
|
| | | {
|
| | | FullServiceAuctionListSort.Add(FullServiceAuction);
|
| | | var FullServiceAuction = model.FullServiceAuctionList[i];
|
| | | var index = FullServiceAuctionListSort.FindIndex((x) => { return x.ItemGUID == FullServiceAuction.ItemGUID; });
|
| | | if (index == -1)
|
| | | {
|
| | | FullServiceAuctionListSort.Add(FullServiceAuction);
|
| | | }
|
| | | }
|
| | | }
|
| | | |
| | | else
|
| | | {
|
| | | model.LocationQuery = false;
|
| | | } |
| | | gridCtrl.Refresh();
|
| | | for (int i = 0; i <FullServiceAuctionListSort.Count; i++)
|
| | | {
|
| | |
| | | return;
|
| | | }
|
| | | AuctionItem = auctionItem;
|
| | | var equipNeedBool = auctionHelpModel.WhetherEquipped(itemConfig.LV,itemConfig.EquipPlace);
|
| | | if (!equipNeedBool)
|
| | | {
|
| | | m_NeedImage.SetActive(true);
|
| | | }
|
| | | if (model.BiddingItemInfoDic.ContainsKey(fullServiceAuction.ItemGUID))//参与了竞价的物品
|
| | | {
|
| | | var biddingItemInfo = model.BiddingItemInfoDic[fullServiceAuction.ItemGUID];
|
| | |
| | | return;
|
| | | }
|
| | | AuctionItem = auctionItem;
|
| | | if (model.AttentionAuctionItemIDdic.ContainsKey(myAuction.ItemID))//是否关注
|
| | | var equipNeedBool = auctionHelpModel.WhetherEquipped(itemConfig.LV, itemConfig.EquipPlace);
|
| | | if (!equipNeedBool)//是否需要
|
| | | {
|
| | | m_NeedImage.SetActive(true);
|
| | | }
|
| | |
| | | {
|
| | | return -havex1.CompareTo(havey1);
|
| | | }
|
| | | bool havex2 = IsAttention(x.ItemID);
|
| | | bool havey2 = IsAttention(y.ItemID);
|
| | | if (havex2.CompareTo(havey2) != 0)//是否关注
|
| | | bool havex2 = IsNeedEquip(x.ItemID);
|
| | | bool havey2 = IsNeedEquip(y.ItemID);
|
| | | if (havex2.CompareTo(havey2) != 0)//是否需要
|
| | | {
|
| | | return -havex2.CompareTo(havey2);
|
| | | }
|
| | |
| | | }
|
| | | return isBool;
|
| | | } |
| | | private bool IsAttention(int itemId)
|
| | | private bool IsNeedEquip(int itemId)
|
| | | {
|
| | | bool isBool = false;
|
| | | if (model.AttentionAuctionItemIDdic.ContainsKey(itemId))
|
| | | var itemConfig = ItemConfig.Get(itemId);
|
| | | if (itemConfig == null)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | if (!auctionHelpModel.WhetherEquipped(itemConfig.LV, itemConfig.EquipPlace))
|
| | | {
|
| | | isBool = true;
|
| | | }
|
| | |
| | |
|
| | | GameObject SuccessfulBiddingObj = cell.transform.Find("SuccessfulBiddingObj").gameObject;//竞拍成功(竞拍成功)
|
| | | RichText SuccessfulBiddingText = cell.transform.Find("SuccessfulBiddingObj/SuccessfulBiddingText").GetComponent<RichText>();
|
| | | Text JadeMoney= cell.transform.Find("SuccessfulBiddingObj/JadeMoney").GetComponent<Text>();
|
| | | Text JadeMoney = cell.transform.Find("SuccessfulBiddingObj/JadeMoney").GetComponent<Text>();
|
| | |
|
| | | GameObject AuctionFailedObj = cell.transform.Find("AuctionFailedObj").gameObject;//竞拍失败
|
| | | Text JadeMoney_1 = cell.transform.Find("AuctionFailedObj/JadeMoney").GetComponent<Text>();
|
| | |
| | | {
|
| | | transactionStatusText.text = Language.Get("PMH_11");
|
| | | }
|
| | | else if (AuctionType==1)
|
| | | else if (AuctionType == 1)
|
| | | {
|
| | | transactionStatusText.text = Language.Get("PMH_12");
|
| | | }
|
| | |
| | | AuctionFailedObj.SetActive(true);
|
| | | SuccessfulBiddingObj.SetActive(false);
|
| | | transactionStatusText.gameObject.SetActive(false);
|
| | | JadeMoney_1.text= auctionRecord.BidderPrice.ToString();
|
| | | JadeMoney_1.text = auctionRecord.BidderPrice.ToString();
|
| | | break;
|
| | | }
|
| | |
|
| | |
| | | AuctionRecordList.Add(value);
|
| | | }
|
| | | }
|
| | | AuctionRecordList.Sort(Compare);
|
| | | } |
| | | int Compare(AuctionItemClass x, AuctionItemClass y)
|
| | | {
|
| | | if (x.Time.CompareTo(y.Time) != 0)//根据时间排序
|
| | | {
|
| | | return -x.Time.CompareTo(y.Time);
|
| | | }
|
| | | return 1;
|
| | | } |
| | | } |
| | | |
| | |
| | |
|
| | | var requirePetHorseLevel = trialDungeonModel.GetDungeonRequirePetHorseLevel(_dungeon.lineId);
|
| | | var petHorseLevel = trialDungeonModel.GetPetHorseLevel();
|
| | | m_PetHorseLevel.text = Language.Get("Z1024", requirePetHorseLevel);
|
| | | m_PetHorseLevel.text = requirePetHorseLevel.ToString();
|
| | | m_PetHorseLevel.color = petHorseLevel >= requirePetHorseLevel ?
|
| | | UIHelper.GetUIColor(TextColType.Green, true) : UIHelper.GetUIColor(TextColType.Red, true);
|
| | |
|
| | |
| | | if (href.mSplits.ContainsKey("auctionbidding"))
|
| | | {
|
| | | var guid = href.mSplits["auctionbidding"];
|
| | | AuctionInquiry.Instance.SendLocationQuery(guid);//定位查询
|
| | | //--竞价
|
| | | }
|
| | | }
|
| | |
| | | [SerializeField] UIEffect m_EffectBoss;
|
| | | [SerializeField] UIEffect m_EffectBase;
|
| | | [SerializeField] UIEffect m_EffectCover;
|
| | | [SerializeField] UIEffect m_EffectBossWord;
|
| | |
|
| | | [SerializeField, Header("小境界升级特效时长")] float m_NormalLevelUpEffectTime = 1.5f;
|
| | | [SerializeField, Header("大境界升级特效时长")] float m_SpecialLevelUpEffectTime = 4.5f;
|
| | |
| | | {
|
| | | isPlayingBossEffect = true;
|
| | | m_EffectBoss.Play();
|
| | | m_EffectBossWord.Play();
|
| | | Animator animator = null;
|
| | | if (m_EffectBoss.target != null)
|
| | | {
|
| | |
| | |
|
| | | void DisplayBase()
|
| | | {
|
| | | var config = RealmConfig.Get(realmLevel - 1);
|
| | | var config = RealmConfig.Get(realmLevel);
|
| | | var fightPower = PlayerDatas.Instance.baseData.FightPoint;
|
| | | var satisfy = fightPower >= config.FightPower;
|
| | | var label = UIHelper.AppendColor(satisfy ? TextColType.LightGreen : TextColType.Red, fightPower.ToString());
|
| | |
| | |
|
| | | void DisplayBoss()
|
| | | {
|
| | | var config = RealmConfig.Get(realmLevel - 1);
|
| | | var config = RealmConfig.Get(realmLevel);
|
| | | m_RawBoss.gameObject.SetActive(true);
|
| | | UI3DModelExhibition.Instance.ShowNPC(m_RawBoss, new UI3DNPCExhibitionData()
|
| | | {
|
| | |
| | |
|
| | | public void DisplayBoss(int realmLevel)
|
| | | {
|
| | | var config = RealmConfig.Get(realmLevel);
|
| | | var label = UIHelper.GetRealmColorByLv(realmLevel, StringUtility.Contact("[", config.Name, "]"));
|
| | | var config = RealmConfig.Get(realmLevel + 1);
|
| | | var label = UIHelper.GetRealmColorByLv(realmLevel + 1, StringUtility.Contact("[", config.Name, "]"));
|
| | | m_Condition.text = Language.Get("RealmConditionBoss", label);
|
| | | var progress = model.isBossPass ? 1 : 0;
|
| | | m_Progress.text = StringUtility.Contact(progress, "/", 1);
|
| | |
| | | if (realmLevel < realmMaxLevel)
|
| | | {
|
| | | var config = RealmConfig.Get(realmLevel);
|
| | | if (config.BossID != 0 && !isBossPass)
|
| | | if (SatisfyChallengeBoss(realmLevel))
|
| | | {
|
| | | challengeable = PlayerDatas.Instance.baseData.FightPoint >= config.FightPower;
|
| | | }
|
| | |
| | | void DisplayRealmBoss()
|
| | | {
|
| | | m_ContainerBoss.gameObject.SetActive(true);
|
| | | m_RealmHeartMagic.Display(model.selectRealm);
|
| | | var realmLevel = PlayerDatas.Instance.baseData.realmLevel;
|
| | | m_RealmHeartMagic.Display(realmLevel);
|
| | | }
|
| | |
|
| | | void HideRealmBoss()
|
| | |
| | | m_RealmLevelUp.Display(model.selectRealm);
|
| | | }
|
| | |
|
| | | m_GotoBoss.gameObject.SetActive(model.SatisfyChallengeBoss(model.selectRealm - 1));
|
| | | m_GotoBoss.gameObject.SetActive(model.SatisfyChallengeBoss(model.displayRealmLevel));
|
| | | }
|
| | |
|
| | | void DisplayRealmBrief()
|
| | |
| | | {
|
| | | bool requireBossEffect = false;
|
| | | m_EffectBoss.StopImediatly();
|
| | | var config = RealmConfig.Get(model.displayRealmLevel);
|
| | | if (config.BossID != 0 && !model.isBossPass)
|
| | | if (model.SatisfyChallengeBoss(model.displayRealmLevel))
|
| | | {
|
| | | requireBossEffect = true;
|
| | | m_EffectBoss.Play();
|
| | |
| | | private void OnCoverChange()
|
| | | {
|
| | | var id = model.GetRealmCoverEffect(model.displayRealmLevel + 1);
|
| | | m_EffectCover.StopImediatly();
|
| | | m_EffectCover.effect = id;
|
| | | m_EffectCover.Play();
|
| | | }
|
| | |
| | | {
|
| | | return string.Empty;
|
| | | }
|
| | | switch (config.Quality)
|
| | | {
|
| | | case 1:
|
| | | return StringUtility.Contact("<color=#", bright ? "686868" : "f7f7f7", ">", config.Name, "</color>");
|
| | | case 2:
|
| | | return StringUtility.Contact("<color=#", bright ? "08d00a" : "08d00a", ">", config.Name, "</color>");
|
| | | case 3:
|
| | | return StringUtility.Contact("<color=#", bright ? "006be3" : "31cefb", ">", config.Name, "</color>");
|
| | | case 4:
|
| | | return StringUtility.Contact("<color=#", bright ? "da48d5" : "ec4bf6", ">", config.Name, "</color>");
|
| | | case 5:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff6701" : "f8983b", ">", config.Name, "</color>");
|
| | | case 6:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", config.Name, "</color>");
|
| | | case 7:
|
| | | return StringUtility.Contact("<color=#", bright ? "f6408d" : "ff7c7c", ">", config.Name, "</color>");
|
| | | case 8:
|
| | | return StringUtility.Contact("<color=#", bright ? "bb8800" : "ffde00", ">", config.Name, "</color>");
|
| | | case 9:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", config.Name, "</color>");
|
| | | default:
|
| | | return config.Name;
|
| | | }
|
| | | return GetRealmColorByLv(realmLv, config.Name, bright);
|
| | | }
|
| | |
|
| | | public static string GetRealmColorByLv(int realmLv, string msg, bool bright = false)
|
| | |
| | | switch (config.Quality)
|
| | | {
|
| | | case 1:
|
| | | return StringUtility.Contact("<color=#", bright ? "686868" : "f7f7f7", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "666666" : "dddddd", ">", msg, "</color>");
|
| | | case 2:
|
| | | return StringUtility.Contact("<color=#", bright ? "08d00a" : "08d00a", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "00b337" : "66ff00", ">", msg, "</color>");
|
| | | case 3:
|
| | | return StringUtility.Contact("<color=#", bright ? "006be3" : "31cefb", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "0066ff" : "00c6ff", ">", msg, "</color>");
|
| | | case 4:
|
| | | return StringUtility.Contact("<color=#", bright ? "da48d5" : "ec4bf6", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "ff00f6" : "f000ff", ">", msg, "</color>");
|
| | | case 5:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff6701" : "f8983b", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "ff6600" : "ff9000", ">", msg, "</color>");
|
| | | case 6:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", msg, "</color>");
|
| | | case 7:
|
| | | return StringUtility.Contact("<color=#", bright ? "f6408d" : "ff7c7c", ">", msg, "</color>");
|
| | | case 8:
|
| | | return StringUtility.Contact("<color=#", bright ? "bb8800" : "ffde00", ">", msg, "</color>");
|
| | | case 9:
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", msg, "</color>");
|
| | | return StringUtility.Contact("<color=#", bright ? "ff0000" : "ff0000", ">", msg, "</color>");
|
| | | default:
|
| | | return msg;
|
| | | }
|