Example #1
0
 public bool IsControlOn(long uuid)
 {
     if (uuid > 0L)
     {
         HeadInfoManager.HeadInfoData data = this.GetData(uuid);
         return(data != null && (data.isShowName || data.ShowBloodBar(true) || data.isShowTitle) && (data.isShowOfLogic && data.isShowOfAVC));
     }
     return(false);
 }
Example #2
0
 public void ShowBloodBarByScene(long uuid, bool isShow, HeadInfoManager.HeadInfoData data, HeadInfoUnit ui)
 {
     if (data == null)
     {
         return;
     }
     data.isBloodBarScene = isShow;
     if (ui != null)
     {
         ui.SetAndShowBloodBar(data.ShowBloodBar(false), data.bloodBarType);
     }
 }
Example #3
0
    public void SetBloodBarType(long uuid, int type)
    {
        HeadInfoManager.HeadInfoData data = this.GetData(uuid);
        if (data == null)
        {
            return;
        }
        data.bloodBarType = type;
        HeadInfoUnit uI = this.GetUI(uuid);

        if (uI != null)
        {
            uI.SetAndShowBloodBar(data.ShowBloodBar(false), data.bloodBarType);
        }
    }
Example #4
0
    public void ShowBloodBarByOff(long uuid, bool isShow)
    {
        HeadInfoManager.HeadInfoData data = this.GetData(uuid);
        if (data == null)
        {
            return;
        }
        data.isBloodBarOff = isShow;
        HeadInfoUnit uI = this.GetUI(uuid);

        if (uI != null)
        {
            uI.SetAndShowBloodBar(data.ShowBloodBar(false), data.bloodBarType);
        }
    }
Example #5
0
 public void RefreshAll()
 {
     HeadInfoManager.HeadInfoData data = HeadInfoManager.Instance.GetData(this.uuid);
     if (data == null)
     {
         return;
     }
     this.ShowName(data.Show(data.isShowName));
     this.SetAndShowTitle(data.Show(data.isShowTitle), data.titleId);
     this.SetAndShowGuildTitle(data.Show(data.isShowGuildTitle), data.guildTitle);
     this.SetAndShowCommonIcon(data.Show(data.isShowCommonIcon), data.commonIcon);
     this.SetAndShowBloodBar(data.ShowBloodBar(false), data.bloodBarType);
     this.SetName(data.name);
     this.SetBloodBar(data.bloodFillAmount);
     this.SetBloodBarSize(data.bloodBarSize);
 }
Example #6
0
    public void SetBloodBar(long uuid, float fillAmount, bool isLogicShow = true)
    {
        HeadInfoManager.HeadInfoData data = this.GetData(uuid);
        if (data == null)
        {
            return;
        }
        data.isBloodBarOff2  = isLogicShow;
        data.bloodFillAmount = fillAmount;
        HeadInfoUnit uI = this.GetUI(uuid);

        if (uI != null)
        {
            uI.SetBloodBar(fillAmount);
            uI.SetAndShowBloodBar(data.ShowBloodBar(false), data.bloodBarType);
        }
    }
Example #7
0
    private void UpdateShow(HeadInfoManager.HeadInfoData data, HeadInfoUnit ui)
    {
        if (data == null || ui == null)
        {
            return;
        }
        ui.ShowName(data.Show(data.isShowName));
        ui.SetAndShowTitle(data.Show(data.isShowTitle), data.titleId);
        ui.SetAndShowGuildTitle(data.Show(data.isShowGuildTitle), data.guildTitle);
        ui.ShowCommonIcon(data.Show(data.isShowCommonIcon), data.commonIcon);
        ui.SetAndShowBloodBar(data.ShowBloodBar(false), data.bloodBarType);
        HeadInfoControl control = this.GetControl(data.uuid);

        if (control != null)
        {
            control.UpdatePos();
        }
    }