33 lines
813 B
C#
33 lines
813 B
C#
using System.Collections.Generic;
|
|
using TMPro;
|
|
|
|
public class TM_MonsterSet : uScrollViewMgr
|
|
{
|
|
public TabUIBase m_Tab;
|
|
public TMP_InputField IF_SpwandID;
|
|
|
|
List<TabUIData> tabUIDatas = new List<TabUIData>
|
|
{
|
|
new TabUIData{ btnName = "일반" },
|
|
new TabUIData{ btnName = "엘리트" },
|
|
new TabUIData{ btnName = "보스" },
|
|
};
|
|
|
|
public override void Set()
|
|
{
|
|
base.Set();
|
|
for (int i = 0; tabUIDatas.Count > i; i++)
|
|
{
|
|
tabUIDatas[i].onClick = OnClick_Tab;
|
|
}
|
|
m_Tab.Set(tabUIDatas);
|
|
OnClick_Tab();
|
|
}
|
|
|
|
private void OnClick_Tab()
|
|
{
|
|
Set_ScrollView(table_monsterlist.Ins.Get_DataList(eSubRol.None + m_Tab.Get_Index()));
|
|
}
|
|
|
|
public int Get_SpawnID() { return int.Parse(IF_SpwandID.text); }
|
|
} |