45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
|
|
public class CollectionEquipmentUI : PCUIMenu
|
|
{
|
|
public static CollectionEquipmentUI Ins;
|
|
|
|
public TabUIBase m_Tab;
|
|
public CollectionEquipmentUI_Scroll m_CollectionEquipmentUI_Scroll;
|
|
public CollectionEquipmentUI_Info m_CollectionEquipmentUI_Info;
|
|
|
|
List<TabUIData> list_tabData = new List<TabUIData>
|
|
{
|
|
new TabUIData{ n_btnName = 290 }, new TabUIData{ n_btnName = 291 }, new TabUIData{ n_btnName = 292 }
|
|
};
|
|
CollectionEquipmentCard m_SelectCard;
|
|
|
|
public override void Set()
|
|
{
|
|
Ins = this;
|
|
base.Set();
|
|
for (int i = 0; i < list_tabData.Count; i++)
|
|
{
|
|
list_tabData[i].onClick = Set_UI;
|
|
list_tabData[i].btnImg_off = "tab menu unselected 2";
|
|
list_tabData[i].btnImg_on = "tab menu selected 2";
|
|
}
|
|
m_Tab.Set(list_tabData);
|
|
Set_UI();
|
|
}
|
|
|
|
public void Set_UI()
|
|
{
|
|
m_CollectionEquipmentUI_Scroll.Set(m_Tab.Get_Index());
|
|
if (DSUtil.CheckNull(m_SelectCard))
|
|
Set_SelectCard(m_CollectionEquipmentUI_Scroll.Get_FirstCard());
|
|
else
|
|
Set_SelectCard(m_SelectCard);
|
|
}
|
|
|
|
public void Set_SelectCard(CollectionEquipmentCard card)
|
|
{
|
|
m_SelectCard = card;
|
|
m_CollectionEquipmentUI_Info.Set(m_SelectCard);
|
|
}
|
|
} |