Example #1
0
 void Refresh(ActorBaseTag _tag, ulong _value, bool state)
 {
     if (_tag == ActorBaseTag.BindDiamond || _tag == ActorBaseTag.Diamond || _tag == ActorBaseTag.BindCoin || _tag == ActorBaseTag.UnBindCoin)
     {
         Refresh();
     }
 }
Example #2
0
 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();
     }
 }
Example #4
0
 public void OnBaseUpdateMap(ActorBaseTag _a, ulong _b, bool _c)
 {
     if (_a == ActorBaseTag.Level)
     {
         ShowMainItem();
     }
 }
Example #5
0
 void ShowMainPlayerInfo(ActorBaseTag tag, ulong val, bool state)
 {
     if (tag == ActorBaseTag.Diamond || tag == ActorBaseTag.BindDiamond || tag == ActorBaseTag.REALYUAN)
     {
         ShowMainPlayerInfo();
     }
 }
Example #6
0
 void RefreshHp(ActorBaseTag tag, ulong val, bool state)
 {
     if (mobInfo != null && labHp != null)
     {
         labHp.text = mobInfo.CurHPText + "/" + mobInfo.MaxHPText;
     }
 }
Example #7
0
 void UpdataMonney(ActorBaseTag tag, ulong y, bool da)
 {
     if (tag == ActorBaseTag.BindCoin || tag == ActorBaseTag.UnBindCoin || tag == ActorBaseTag.CoinLimit)
     {
         RefreshMountInfo();
     }
 }
Example #8
0
 void RereshWnd(ActorBaseTag tag, ulong value, bool _fromAbility)
 {
     if (tag == ActorBaseTag.Level)
     {
         ShowLevReward();
     }
 }
Example #9
0
 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);
         }
     }
 }
Example #10
0
 void SetDailyFirstRechargeOpen(ActorBaseTag tag, ulong value, bool _fromAbility)
 {
     if (tag == ActorBaseTag.Level)
     {
         SetDailyFirstRechargeOpen();
     }
 }
Example #11
0
 protected void Refresh(ActorBaseTag tag, ulong val, bool flag)
 {
     if (tag == ActorBaseTag.Level)
     {
         Refresh();
     }
 }
Example #12
0
 void RefreshCoin(ActorBaseTag _tag, ulong _val, bool _state)
 {
     if (_tag == ActorBaseTag.Diamond || _tag == ActorBaseTag.BindDiamond)
     {
         RefreshCoin();
     }
 }
Example #13
0
 /// <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;
     }
 }
Example #14
0
	protected void RefreshTask(ActorBaseTag _tag,ulong val,bool state)
	{
		if(_tag == ActorBaseTag.Level)
		{
			RefreshTask();
		}
	}
Example #15
0
 void RefreshDiamond(ActorBaseTag _tag, ulong _val, bool _from)
 {
     if (_tag == ActorBaseTag.Diamond)
     {
         RefreshDiamond();
     }
 }
Example #16
0
    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;
        }
    }
Example #17
0
 protected void RefreshCoin(ActorBaseTag tag, ulong _value, bool flag)
 {
     if (tag == ActorBaseTag.UnBindCoin || tag == ActorBaseTag.BindCoin || tag == ActorBaseTag.Diamond || tag == ActorBaseTag.BindDiamond)
     {
         RefreshCoin();
     }
 }
Example #18
0
 protected void UpdateAllItems(ActorBaseTag _tag, ulong val, bool _state)
 {
     if (_tag == ActorBaseTag.Level)
     {
         RefreshItems();
     }
 }
Example #19
0
 /// <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);
     }
 }
Example #20
0
    /// <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;
        }
    }
Example #21
0
 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;
             }
         }
     }
 }
Example #22
0
 /// <summary>
 /// 外部元宝铜币发生变化时调用
 /// </summary>
 public void SetWingRedPoint(ActorBaseTag tag, ulong value, bool _fromAbility)
 {
     if (tag == ActorBaseTag.BindCoin || tag == ActorBaseTag.UnBindCoin)
     {
         SetWingRedPoint();
     }
 }
Example #23
0
 /// <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);
 }
Example #24
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();
     }
 }
Example #25
0
 protected void OnNameColorUpdate(ActorBaseTag _tag, ulong _val, bool _state)
 {
     if (_tag == ActorBaseTag.CounterAttack)
     {
         if (headTextCtrl != null)
         {
             headTextCtrl.SetNameColorAlongInterActive();
         }
     }
 }
Example #26
0
 protected void OnMainPlayerUpdateLevel(ActorBaseTag _tag, ulong _value, bool _fromAbility)
 {
     if (_tag == ActorBaseTag.Level)
     {
         if ((ulong)RefData.needLv < _value)
         {
             headTextCtrl.SetTitle(string.Empty);
         }
     }
 }
Example #27
0
 /// <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();
     }
 }
Example #28
0
    //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;
        }
    }
Example #29
0
 void OnBaseUpdate(ActorBaseTag tag, ulong val, bool state)
 {
     if (tag == ActorBaseTag.UnBindCoin || tag == ActorBaseTag.BindCoin)
     {
         ShowEquipConsume();
     }
     if (tag == ActorBaseTag.Diamond)
     {
         ShowQuickCost();
         ShowBatchQuickCost();
     }
 }
Example #30
0
    private void RefreshState(ActorBaseTag _tag, ulong _value, bool _fromAbility)
    {
        switch (_tag)
        {
        case ActorBaseTag.CurMP:
            RefreshMane();
            break;

        case ActorBaseTag.Level:
            RefreshCurSkill();
            break;
        }
    }