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); }
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(); } }
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); } }
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); } }
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)); } }
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); } }
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); } }
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); } }