2024-12-15 01:39:39 +00:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class TitleCard : CardBase
|
|
|
|
|
{
|
|
|
|
|
public GameObject go_equip, go_select, go_new, go_bg, go_guidearrow;
|
|
|
|
|
public UILabel label_title;
|
|
|
|
|
|
|
|
|
|
TitleTableData m_TitleTableData;
|
|
|
|
|
|
|
|
|
|
public override void Set<T>(T _base)
|
|
|
|
|
{
|
|
|
|
|
base.Set(_base);
|
|
|
|
|
m_TitleTableData = _base as TitleTableData;
|
|
|
|
|
var sdata = ServerInfo.Ins.m_ServerData;
|
|
|
|
|
|
|
|
|
|
label_title.text = m_TitleTableData.Name;
|
|
|
|
|
label_title.color = sdata.IsObtainItem(m_TitleTableData.ID) ? Color.white : new Color32(21, 34, 49, 255);
|
|
|
|
|
go_equip.SetActive(sdata.Get_Common(eCommon.Title) == m_TitleTableData.ID);
|
|
|
|
|
go_new.SetActive(TitleGetUI.list_gettitle.Find(f => f == m_TitleTableData.ID) == m_TitleTableData.ID);
|
|
|
|
|
go_bg.SetActive(m_TitleTableData.ID % 2 == 0);
|
|
|
|
|
UnSelect();
|
|
|
|
|
|
2025-03-17 00:08:46 +00:00
|
|
|
//go_guidearrow.SetActive(m_TitleTableData.ID == 94 && NewGameUI.Ins.m_GuideQuestUI.Get_Purpose() == ePurpose.ChangeTitle && ServerInfo.Ins.m_ServerData.Get_Common(eCommon.GuideClear) == 0);
|
2024-12-15 01:39:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TitleTableData Get_Data() { return m_TitleTableData; }
|
|
|
|
|
|
|
|
|
|
public void UnSelect()
|
|
|
|
|
{
|
|
|
|
|
go_select.SetActive(false);
|
2025-03-17 00:08:46 +00:00
|
|
|
//go_guidearrow.SetActive(m_TitleTableData.ID == 94 && NewGameUI.Ins.m_GuideQuestUI.Get_Purpose() == ePurpose.ChangeTitle && ServerInfo.Ins.m_ServerData.Get_Common(eCommon.GuideClear) == 0);
|
2024-12-15 01:39:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnClick_Select()
|
|
|
|
|
{
|
|
|
|
|
go_select.SetActive(true);
|
|
|
|
|
GameUI.Ins.LobbyUI.Get_TitleUI().SelectTitle(this);
|
|
|
|
|
go_guidearrow.SetActive(false);
|
|
|
|
|
}
|
|
|
|
|
}
|