업적 및 first ing last (fil) 작업 중
This commit is contained in:
parent
5429f498bc
commit
154e589eb0
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -14,11 +14,34 @@ public class MissionCard : CardBase
|
||||||
public override void Set<T>(T _base)
|
public override void Set<T>(T _base)
|
||||||
{
|
{
|
||||||
base.Set(_base);
|
base.Set(_base);
|
||||||
var sdata = ServerInfo.Ins.m_ServerData;
|
|
||||||
m_Data = _base as MissionListTableData;
|
m_Data = _base as MissionListTableData;
|
||||||
var amount = sdata.Get_MissionCount(m_Data.n_MissionGroupId, m_Data.n_MissionIndex);
|
|
||||||
|
|
||||||
images[0].sprite = UIAtlasMgr.Ins.Get_Sprite(m_Data.n_RewardValue);
|
bool active = isProceesing();
|
||||||
|
|
||||||
|
if (active)
|
||||||
|
{
|
||||||
|
images[0].sprite = UIAtlasMgr.Ins.Get_Sprite(m_Data.n_RewardValue);
|
||||||
|
Set_Text();
|
||||||
|
Set_Proc();
|
||||||
|
Set_Complete();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
gameObject.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool isProceesing()
|
||||||
|
{
|
||||||
|
if (m_Data.e_LinkedQuestType == eLinkedQuestType.None) return true;
|
||||||
|
var sdata = ServerInfo.Ins.m_ServerData;
|
||||||
|
if (m_Data.e_LinkedQuestType == eLinkedQuestType.Last || m_Data.e_LinkedQuestType == eLinkedQuestType.Ing)
|
||||||
|
return sdata.Get_MissionLv(m_Data.n_MissionGroupId, m_Data.n_MissionIndex - 1) > 0;
|
||||||
|
if (m_Data.e_LinkedQuestType == eLinkedQuestType.First)
|
||||||
|
return sdata.Get_MissionLv(m_Data.n_MissionGroupId, m_Data.n_MissionIndex) == 0;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Set_Text()
|
||||||
|
{
|
||||||
switch (m_Data.e_MissionConditionType)
|
switch (m_Data.e_MissionConditionType)
|
||||||
{
|
{
|
||||||
case ePurpose.KILL_MONSTER:
|
case ePurpose.KILL_MONSTER:
|
||||||
|
|
@ -59,7 +82,7 @@ public class MissionCard : CardBase
|
||||||
// case 5: texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, table_localtext.Ins.Get_Text(1021)); break;
|
// case 5: texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, table_localtext.Ins.Get_Text(1021)); break;
|
||||||
// case 6: texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, table_localtext.Ins.Get_Text(1031)); break;
|
// case 6: texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, table_localtext.Ins.Get_Text(1031)); break;
|
||||||
//}
|
//}
|
||||||
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, m_Data.l_MissionConditionCount,
|
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, m_Data.l_MissionConditionCount,
|
||||||
(eBattleType)m_Data.n_MissionConditionValue);
|
(eBattleType)m_Data.n_MissionConditionValue);
|
||||||
break;
|
break;
|
||||||
case ePurpose.CLASS_OPEN_LIMIT:
|
case ePurpose.CLASS_OPEN_LIMIT:
|
||||||
|
|
@ -101,10 +124,15 @@ public class MissionCard : CardBase
|
||||||
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, m_Data.l_MissionConditionCount);
|
texts[0].text = DSUtil.Format(m_Data.n_MissionDesc, m_Data.l_MissionConditionCount);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Set_Proc()
|
||||||
|
{
|
||||||
|
var sdata = ServerInfo.Ins.m_ServerData;
|
||||||
|
var amount = sdata.Get_MissionCount(m_Data.n_MissionGroupId, m_Data.n_MissionIndex);
|
||||||
texts[1].text = m_Data.n_RewardCount.ToString();
|
texts[1].text = m_Data.n_RewardCount.ToString();
|
||||||
texts[2].text = $"{amount}/{m_Data.l_MissionConditionCount}";
|
texts[2].text = $"{amount}/{m_Data.l_MissionConditionCount}";
|
||||||
slider_proc.value = DSUtil.Get_SliderValue(amount / (float)m_Data.l_MissionConditionCount);
|
slider_proc.value = DSUtil.Get_SliderValue(amount / (float)m_Data.l_MissionConditionCount);
|
||||||
Set_Complete();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Set_Complete()
|
void Set_Complete()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue