void Refresh(ActorBaseTag _tag, ulong _value, bool state) { if (_tag == ActorBaseTag.BindDiamond || _tag == ActorBaseTag.Diamond || _tag == ActorBaseTag.BindCoin || _tag == ActorBaseTag.UnBindCoin) { Refresh(); } }
void DoFightValueTip(ActorBaseTag _arg1, int _value, bool _fromAbility) { if (_value == 0) { return; } if (_arg1 == ActorBaseTag.FightValue) { MessageST mess = new MessageST(); if (_value >= 0) { mess.messID = 28; } else { mess.messID = 29; } mess.words = new string[1]; mess.words[0] = Mathf.Abs(_value).ToString(); GameCenter.messageMng.AddClientMsg(mess); } else if (_arg1 == ActorBaseTag.Exp) { MessageST mess = new MessageST(); mess.messID = 19; mess.words = new string[] { _value.ToString() }; GameCenter.messageMng.AddClientMsg(mess); } }
void OnBaseUpdate(ActorBaseTag tag, ulong val, bool state) { if (tag == ActorBaseTag.Diamond) { OnChooseQuickBuy(); } }
public void OnBaseUpdateMap(ActorBaseTag _a, ulong _b, bool _c) { if (_a == ActorBaseTag.Level) { ShowMainItem(); } }
void ShowMainPlayerInfo(ActorBaseTag tag, ulong val, bool state) { if (tag == ActorBaseTag.Diamond || tag == ActorBaseTag.BindDiamond || tag == ActorBaseTag.REALYUAN) { ShowMainPlayerInfo(); } }
void RefreshHp(ActorBaseTag tag, ulong val, bool state) { if (mobInfo != null && labHp != null) { labHp.text = mobInfo.CurHPText + "/" + mobInfo.MaxHPText; } }
void UpdataMonney(ActorBaseTag tag, ulong y, bool da) { if (tag == ActorBaseTag.BindCoin || tag == ActorBaseTag.UnBindCoin || tag == ActorBaseTag.CoinLimit) { RefreshMountInfo(); } }
void RereshWnd(ActorBaseTag tag, ulong value, bool _fromAbility) { if (tag == ActorBaseTag.Level) { ShowLevReward(); } }
public void RefreshRed(ActorBaseTag _a, ulong _b, bool _c) { skillList.Clear(); using (var e = skillDic.GetEnumerator()) { while (e.MoveNext()) { SkillInfo nextSkill = new SkillInfo(e.Current.Value.SkillID, e.Current.Value.SkillLv + 1); skillList.Add(nextSkill); } } for (int i = 0; i < skillList.Count; i++) { if (skillList[i].CoinEnough && skillList[i].ResEnough && skillList[i].LevEnough && !skillList[i].isFullLevel) { GameCenter.mainPlayerMng.SetFunctionRed(FunctionType.SKILLS, true); i = skillList.Count; continue; } if (i == skillList.Count - 1) { GameCenter.mainPlayerMng.SetFunctionRed(FunctionType.SKILLS, false); } } }
void SetDailyFirstRechargeOpen(ActorBaseTag tag, ulong value, bool _fromAbility) { if (tag == ActorBaseTag.Level) { SetDailyFirstRechargeOpen(); } }
protected void Refresh(ActorBaseTag tag, ulong val, bool flag) { if (tag == ActorBaseTag.Level) { Refresh(); } }
void RefreshCoin(ActorBaseTag _tag, ulong _val, bool _state) { if (_tag == ActorBaseTag.Diamond || _tag == ActorBaseTag.BindDiamond) { RefreshCoin(); } }
/// <summary> /// 刷新顶部数据 /// </summary> /// <param name="tag"></param> /// <param name="value"></param> protected void RefreshCount(ActorBaseTag tag, ulong value, bool _fromAbility) { if (Occupation != null) { Occupation.text = ConfigMng.Instance.GetPlayerConfig(curTargetInfo.Prof).name; } if (Name != null) { Name.text = curTargetInfo.Name; } if (Lev != null) { Lev.text = GameCenter.curMainPlayer.actorInfo.Level.ToString(); } if (fightVal != null) { fightVal.text = GameCenter.mainPlayerMng.MainPlayerInfo.FightValue.ToString(); } if (slaValue != null) { slaValue.text = GameCenter.mainPlayerMng.MainPlayerInfo.KillingValue.ToString(); } if (slaValueName != null) { slaValueName.text = GameCenter.mainPlayerMng.MainPlayerInfo.KillingValueName; } }
protected void RefreshTask(ActorBaseTag _tag,ulong val,bool state) { if(_tag == ActorBaseTag.Level) { RefreshTask(); } }
void RefreshDiamond(ActorBaseTag _tag, ulong _val, bool _from) { if (_tag == ActorBaseTag.Diamond) { RefreshDiamond(); } }
protected virtual void OnBaseUpdate(ActorBaseTag _tag, ulong _value, bool _fromAbility) { // Debug.Log("OnBaseUpdate:"+_tag+",value:"+_value+",ID:"+actorInfo.ServerInstanceID+",IsDead:"+isDead); if (isDead) { if (headTextCtrl != null) { // headTextCtrl.HideBlood(); } } if (_fromAbility || IsActor) { return; // || !MainPlayerFocus) return; 先去掉这个关注判断 现在自身复活血量没更新 by邓成 } switch (_tag) { case ActorBaseTag.CurHP: if (headTextCtrl != null) { // if (isDead) // { // headTextCtrl.HideBlood(); // } // else // { // headTextCtrl.SetBlood(actorInfo.MaxHP <= 0 ? 0 : actorInfo.CurHP / (float)actorInfo.MaxHP, IsFriend); // } } break; default: break; } }
protected void RefreshCoin(ActorBaseTag tag, ulong _value, bool flag) { if (tag == ActorBaseTag.UnBindCoin || tag == ActorBaseTag.BindCoin || tag == ActorBaseTag.Diamond || tag == ActorBaseTag.BindDiamond) { RefreshCoin(); } }
protected void UpdateAllItems(ActorBaseTag _tag, ulong val, bool _state) { if (_tag == ActorBaseTag.Level) { RefreshItems(); } }
/// <summary> /// 飞升红点 /// </summary> public void SetSoarRedMind(ActorBaseTag tag, ulong value, bool _fromAbility) { if (tag == ActorBaseTag.HighFlyUpRes || tag == ActorBaseTag.LowFlyUpRes) { if (data == null || data.stratNum >= ConfigMng.Instance.GetStyliteRefTable().Count - 1) { GameCenter.mainPlayerMng.SetFunctionRed(FunctionType.SOARING, false); return; } bool isRed = false; if ((70 * (data.stratNum / 70) + (data.stratNum / 70 - 1)) == data.stratNum && data.stratNum > 0) { FlyUpRef flyUpRef = ConfigMng.Instance.GetFlyUpRef((data.stratNum) / 70 + 1); if (flyUpRef != null) { if (GameCenter.mainPlayerMng.MainPlayerInfo.HighFlyUpRes >= flyUpRef.xianQi && GameCenter.mainPlayerMng.MainPlayerInfo.CurLevel >= flyUpRef.needLev) { isRed = true; } } } else { StyliteRef nextStyliteRef = ConfigMng.Instance.GetStyliteRefByStart(data.stratNum + 1); if (nextStyliteRef != null) { if (GameCenter.mainPlayerMng.MainPlayerInfo.LowFlyUpRes >= nextStyliteRef.lingqi) { isRed = true; } } } GameCenter.mainPlayerMng.SetFunctionRed(FunctionType.SOARING, isRed); } }
/// <summary> /// 切换场景改变公会名字显示,副本中不显示 by /// </summary> protected void BaseUpdate(ActorBaseTag _tag, int _sceneId) { switch (_tag) { case ActorBaseTag.CurHP: break; case ActorBaseTag.CurMP: break; case ActorBaseTag.Diamond: break; case ActorBaseTag.Level: if (fxCtrl != null) { fxCtrl.DoLevelUPEffect("lvlup_B02"); } break; case ActorBaseTag.Exp: break; case ActorBaseTag.TOTAL: break; default: break; } }
void Show(ActorBaseTag tag, ulong y, bool da) { if (tag == ActorBaseTag.HighFlyUpRes || tag == ActorBaseTag.LowFlyUpRes) { curData = GameCenter.practiceMng.data; if (curData == null) { return; } dustLab.text = curData.MainData.HighFlyUpRes.ToString(); reikiLab.text = curData.MainData.LowFlyUpRes.ToString(); if (yunGong.activeSelf) { master.IsGray = UISpriteEx.ColorGray.normal; fairy.IsGray = UISpriteEx.ColorGray.normal; coinLab.text = curData.CoinYG.ToString(); coinTime.text = curData.coinTime + "/" + 10; diamondLab.text = curData.DiamondYG.ToString(); if (curData.GetTenTimesYgDiamond() == 0) { tenTimesMoney.text = "0"; tenTimesEx.IsGray = UISpriteEx.ColorGray.Gray; } else { tenTimesMoney.text = curData.GetTenTimesYgDiamond().ToString(); tenTimesEx.IsGray = UISpriteEx.ColorGray.normal; } } } }
/// <summary> /// 外部元宝铜币发生变化时调用 /// </summary> public void SetWingRedPoint(ActorBaseTag tag, ulong value, bool _fromAbility) { if (tag == ActorBaseTag.BindCoin || tag == ActorBaseTag.UnBindCoin) { SetWingRedPoint(); } }
/// <summary> /// 属性作为资源 by 贺丰 别用这个接口拿经验和货币, by邓成 /// </summary> /// <param name="id"></param> /// <returns></returns> public int GetIDToResource(ActorBaseTag tag) { if (serverData.baseValueDic.ContainsKey(tag)) { return((int)serverData.baseValueDic[tag]); } return(0); }
/// <summary> /// 升级导致的刷新表现 /// </summary> /// <param name="tag"></param> /// <param name="value"></param> private void UpdateLvToSkill(ActorBaseTag tag, ulong value, bool _fromAbility) { if (tag == ActorBaseTag.Level) { RefreshSkill(); RefreshNeed(); } }
protected void OnNameColorUpdate(ActorBaseTag _tag, ulong _val, bool _state) { if (_tag == ActorBaseTag.CounterAttack) { if (headTextCtrl != null) { headTextCtrl.SetNameColorAlongInterActive(); } } }
protected void OnMainPlayerUpdateLevel(ActorBaseTag _tag, ulong _value, bool _fromAbility) { if (_tag == ActorBaseTag.Level) { if ((ulong)RefData.needLv < _value) { headTextCtrl.SetTitle(string.Empty); } } }
/// <summary> /// 坐骑红点提示 /// </summary> public void SetRedRemind(ActorBaseTag tag, ulong value, bool _fromAbility) { if (tag == ActorBaseTag.BindCoin || tag == ActorBaseTag.UnBindCoin || tag == ActorBaseTag.CoinLimit) { SetRedRemind(); } if (tag == ActorBaseTag.Diamond) { GameCenter.openServerRewardMng.SetTaroatRedRemind(); } }
//protected void RefreshNPC(NPCInfo _info) //{ // if (CurTargetName != null) // CurTargetName.text = _info.Name; // if (CurTargetIcon != null) // CurTargetIcon.spriteName = _info.IconName; // if (Creamobj != null) // Creamobj.SetActive(false); // if (go != null) // go.SetActive(false); //} private void RefreshHp(ActorBaseTag tag, ulong value, bool _bool) { switch (tag) { case ActorBaseTag.CurHP: RefreshLable(); break; default: break; } }
void OnBaseUpdate(ActorBaseTag tag, ulong val, bool state) { if (tag == ActorBaseTag.UnBindCoin || tag == ActorBaseTag.BindCoin) { ShowEquipConsume(); } if (tag == ActorBaseTag.Diamond) { ShowQuickCost(); ShowBatchQuickCost(); } }
private void RefreshState(ActorBaseTag _tag, ulong _value, bool _fromAbility) { switch (_tag) { case ActorBaseTag.CurMP: RefreshMane(); break; case ActorBaseTag.Level: RefreshCurSkill(); break; } }