30 lines
870 B
C#
30 lines
870 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class ChapterQuestCard : CardBase
|
||
|
|
{
|
||
|
|
public UISprite sprite_bg;
|
||
|
|
public UILabel[] labels;
|
||
|
|
public GameObject go_clear;
|
||
|
|
|
||
|
|
ChapterQuestTableData m_Data;
|
||
|
|
|
||
|
|
public override void Set<T>(T _base)
|
||
|
|
{
|
||
|
|
base.Set(_base);
|
||
|
|
m_Data = _base as ChapterQuestTableData;
|
||
|
|
|
||
|
|
sprite_bg.color = m_Data.ID % 2 == 0 ? Color.black : new Color32(21, 34, 49, 255);
|
||
|
|
labels[0].text = m_Data.Title;
|
||
|
|
labels[1].text = DSUtil.Format(m_Data.PurposeText, 0);
|
||
|
|
|
||
|
|
var s_data = ServerInfo.Ins.m_ServerData.ChapterQuest.Find(f=>f.Chapter == m_Data.Chapter).list_QuestClear[m_Data.ID - 1];
|
||
|
|
go_clear.SetActive(s_data > 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void OnClick_MoreInfo()
|
||
|
|
{
|
||
|
|
GameUI.Ins.LobbyUI.Get_LobbyChapterQuest().Set_ShowUseData(m_Data);
|
||
|
|
}
|
||
|
|
}
|