예제 #1
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);
 }
예제 #2
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();
        }
    }
예제 #3
0
 public void ShowCommonIcon(long uuid, bool isShow, HeadInfoManager.HeadInfoData data, HeadInfoUnit ui)
 {
     if (data == null)
     {
         return;
     }
     data.isShowCommonIcon = isShow;
     if (ui != null)
     {
         ui.SetAndShowCommonIcon(data.Show(data.isShowCommonIcon), data.commonIcon);
     }
 }
예제 #4
0
 public void ShowGuildTitle(long uuid, bool isShow, HeadInfoManager.HeadInfoData data, HeadInfoUnit ui)
 {
     if (data == null)
     {
         return;
     }
     data.isShowGuildTitle = isShow;
     if (ui != null)
     {
         ui.SetAndShowGuildTitle(data.Show(data.isShowGuildTitle), data.guildTitle);
     }
 }
예제 #5
0
 public void ShowName(long uuid, bool isShow, HeadInfoManager.HeadInfoData data, HeadInfoUnit ui)
 {
     if (data == null)
     {
         return;
     }
     data.isShowName = isShow;
     if (ui != null)
     {
         ui.ShowName(data.Show(data.isShowName));
     }
 }
예제 #6
0
    public void SetCommonIcon(long uuid, int iconId)
    {
        HeadInfoManager.HeadInfoData data = this.GetData(uuid);
        if (data == null)
        {
            return;
        }
        data.commonIcon = iconId;
        HeadInfoUnit uI = this.GetUI(uuid);

        if (uI != null)
        {
            uI.SetAndShowCommonIcon(data.Show(data.isShowCommonIcon), iconId);
        }
    }
예제 #7
0
    public void SetGuildTitle(long uuid, string guildTitle)
    {
        HeadInfoManager.HeadInfoData data = this.GetData(uuid);
        if (data == null)
        {
            return;
        }
        data.guildTitle = guildTitle;
        HeadInfoUnit uI = this.GetUI(uuid);

        if (uI != null)
        {
            uI.SetAndShowGuildTitle(data.Show(data.isShowGuildTitle), guildTitle);
        }
    }
예제 #8
0
    public void SetTitle(long uuid, int titleId)
    {
        HeadInfoManager.HeadInfoData data = this.GetData(uuid);
        if (data == null)
        {
            return;
        }
        data.titleId = titleId;
        HeadInfoUnit uI = this.GetUI(uuid);

        if (uI != null)
        {
            uI.SetAndShowTitle(data.Show(data.isShowTitle), titleId);
        }
    }