[SerializeField] private UISprite _MeSprite; // 내 케릭터다. //=================================================================================== // // Variable // //=================================================================================== //=================================================================================== // // Default Method // //=================================================================================== //=================================================================================== // // Method // //=================================================================================== public void Init(CGuildRaidUserRankInfo info) { if (CDATA_CREATURE_NEWVER.GetCount() < 1) { CDATA_CREATURE_NEWVER.Load(); } if (CDATA_VIP.GetCount() < 1) { CDATA_VIP.Load(); } _RankLabel.text = string.Format(StringTableManager.GetData(3412), info.kUserRank); DATA_CREATURE_NEWVER CreatureTable = CDATA_CREATURE_NEWVER.Get(info.kCreatureID); _LeaderCreatureSprite.sprite2D = UIResourceMgr.CreateSprite(BUNDLELIST.TEXTURE_ICON_CREATUREHEAD, CreatureTable.m_szIcon); _VipRankSprite.spriteName = CDATA_VIP.Get(info.kCharVIPLevel).szGradeImg; _VipRankLabel.text = string.Format(StringTableManager.GetData(4984), (int)info.kCharVIPLevel); _LevelLabel.text = string.Format("{0}{1}", StringTableManager.GetData(12), (int)info.kCharLevel); _NameLabel.text = info.kCharName; _EnterCountLabel.text = info.kGuildRaidPlayCount.ToString(); _guildRaidScore.text = info.kGuildRaidScore.ToString(); _MeSprite.gameObject.SetActive(string.Equals(info.kCharName, UserInfo.Instance.NickName)); }
//=================================================================================== // // Default Method // //=================================================================================== //=================================================================================== // // Method // //=================================================================================== public void Init(CFriend friendInfo, DATA_CREATURE_NEWVER pCreatureData) { m_FriendInfo = friendInfo; _vCharNo UsedFriendKeyList = UserInfo.Instance.DispatchInfoAck.vUsedFriendKey; bDispatching = false; m_CoolTimeObj.SetActive(false); for (int i = 0; i < UsedFriendKeyList.Count; ++i) { if (friendInfo.kFriendCharNo == UsedFriendKeyList[i]) { // 쿨타임 표시. bDispatching = true; m_CoolTimeObj.SetActive(true); break; } } m_CreatureIcon.SetIcon(friendInfo.kCreatureID, enCreatureIcon_Type.Dispatch); //m_CreatureIcon.m_OnClickEvent += evt; m_CreatureIcon.m_IsNew = false; //icon.m_kCreatureKey = kCreatureKey; m_CreatureIcon.m_iGrade = pCreatureData.m_iGrade; m_CreatureIcon.m_szName = StringTableManager.GetData(pCreatureData.iCreatureName); //icon.m_Reinforce = pMy.GetForceCount(); m_CreatureIcon.m_iCreatureTID = pCreatureData.m_iCreatureTID; m_CreatureIcon.m_szIcon = pCreatureData.m_szIcon; //icon.m_iLevel = pMy.GetItemLV(); m_CreatureIcon.m_enCreatureArmy = pCreatureData.m_enCreatureArmy; //병과 m_CreatureIcon.m_SellCheck = false; m_CreatureIcon.m_iSellCost = pCreatureData.m_iSellCost; m_CreatureIcon.m_kLock = 0; // vip정보 셋팅. { if (CDATA_VIP.GetCount() < 1) { CDATA_VIP.Load(); } DATA_VIP vipData = CDATA_VIP.Get(friendInfo.kVIPLevel); if (vipData == null) { return; } m_VipSprite.spriteName = vipData.szGradeImg; m_VipLabel.text = string.Format(StringTableManager.GetData(4984), (int)friendInfo.kVIPLevel); } // 친구 레벨, 아이디 셋팅. { m_UserLevelLabel.text = string.Format("{0}{1}", StringTableManager.GetData(12), friendInfo.kCharLevel); m_UserNameLabel.text = friendInfo.kCharName; } // 접속시간 셋팅. { if (friendInfo.kFriendState == _enFriendState.eFriendState_OnLine) { m_LastLoginTimeLabel.text = StringTableManager.GetData(3473); } else if (friendInfo.kFriendState == _enFriendState.eFriendState_OffLine) { TimeSpan ts = TimeManager.Instance.GetServerTime() - friendInfo.kGameLastLogonTime.GetDateTime(); int iDay = ts.Days; int iHour = ts.Hours; int iMin = ts.Minutes; if (iDay > 0) { m_LastLoginTimeLabel.text = string.Format(StringTableManager.GetData(3470), iDay, StringTableManager.GetData(3472), StringTableManager.GetData(3483)); } else if (iHour > 0) { m_LastLoginTimeLabel.text = string.Format(StringTableManager.GetData(3470), iHour, StringTableManager.GetData(3471), StringTableManager.GetData(3483)); } else if (iMin > 0) { m_LastLoginTimeLabel.text = string.Format(StringTableManager.GetData(3470), iMin, StringTableManager.GetData(3482), StringTableManager.GetData(3483)); } else { // 1분전접속. m_LastLoginTimeLabel.text = string.Format(StringTableManager.GetData(3470), 1, StringTableManager.GetData(3482), StringTableManager.GetData(3483)); } } //TimeSpan ts = TimeManager.Instance.GetServerTime() - friendInfo.kGameLastLogonTime.GetDateTime(); //int iDay = ts.Days; //int iHour = ts.Hours; //int iMin = ts.Minutes; //if (iDay > 0) // m_LastLoginTimeLabel.text = string.Format(StringTableManager.GetData(3470), iDay, StringTableManager.GetData(3472), StringTableManager.GetData(3483)); //else if (iHour > 0) // m_LastLoginTimeLabel.text = string.Format(StringTableManager.GetData(3470), iHour, StringTableManager.GetData(3471), StringTableManager.GetData(3483)); //else if (iMin > 0) // m_LastLoginTimeLabel.text = string.Format(StringTableManager.GetData(3470), iMin, StringTableManager.GetData(3482), StringTableManager.GetData(3483)); //else //{ // m_LastLoginTimeLabel.text = StringTableManager.GetData(3473); //} } SetActiveSelect(false); }