Files
JJBB/Assets/Project/Script/GUI/Obj_HeadUI/Obj_MainPlayerHeadUI.cs
2024-08-23 15:49:34 +08:00

31 lines
1.0 KiB
C#

using Games.ChatHistory;
using Games.GlobeDefine;
using Games.LogicObj;
using GCGame;
using GCGame.Table;
using UnityEngine;
using UnityEngine.UI;
public class Obj_MainPlayerHeadUI : Obj_PlayerHeadUI
{
public static UIPathData MainpathData
{
get { return UIInfo.PlayerHeadInfo; }
}
public override UIPathData uiPathData
{
get { return MainpathData; }
}
public override void UpdatePaoShangIcon(string title)
{
base.UpdatePaoShangIcon(title);
if(string.IsNullOrEmpty(title) && GameManager.gameManager.PlayerDataPool.IsHaveGuild())
{
m_LabelPaoShangBoard.gameObject.SetActive(string.IsNullOrEmpty(GameManager.gameManager.PlayerDataPool.GuildInfo.GuildName) == false);
m_LabelPaoShangBoard.text = string.Format("{0} {1}", GameManager.gameManager.PlayerDataPool.GuildInfo.GuildName, GCGame.Table.StrDictionary.GetClientDictionaryString(Guild.GuildJobName[GameManager.gameManager.PlayerDataPool.GuildInfo.GuildJob]));
}
}
}