코스튬 작업 중...

This commit is contained in:
Ino 2025-02-14 16:19:07 +09:00
parent b6095f4713
commit f0e00bcb7c
9 changed files with 600 additions and 1301 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -12,11 +12,11 @@ public class PCInfoUI : PCUIMenu
base.Set(); base.Set();
NewGameUI.Ins.m_PCUI.Set_Money(1, 2); NewGameUI.Ins.m_PCUI.Set_Money(1, 2);
m_PCInfoUI_Left.Set(); m_PCInfoUI_Left.Set();
Set_UI(true); Set_UI();
} }
public void Set_UI(bool enter) public void Set_UI()
{ {
m_PCInfoUI_List.Set(enter); // m_PCInfoUI_Center 는 여기서 세팅 m_PCInfoUI_List.Set(); // m_PCInfoUI_Center 는 여기서 세팅
} }
} }

View File

@ -66,6 +66,6 @@ public class PCInfoUI_Center : UI3DModel
if (!CanEquip()) return; if (!CanEquip()) return;
var sdata = ServerInfo.Ins.m_ServerData; var sdata = ServerInfo.Ins.m_ServerData;
sdata.Equip.Set_Equip(eItem.PCCostume, SelectCard.Get_IntData()); sdata.Equip.Set_Equip(eItem.PCCostume, SelectCard.Get_IntData());
PCInfoUI.Ins.Set_UI(false); PCInfoUI.Ins.Set_UI();
} }
} }

View File

@ -17,4 +17,9 @@ public class PCInfoUI_CollectionCard : CardBase
gos[0].SetActive(!data.IsCollection(sdata)); gos[0].SetActive(!data.IsCollection(sdata));
m_Scroll.Set(data.list_CostumeID); m_Scroll.Set(data.list_CostumeID);
} }
public void SelectCard_MyCostume()
{
m_Scroll.SelectCard_MyCostume(ServerInfo.Ins.m_ServerData.Get_EqiupmentEquip(eItem.PCCostume));
}
} }

View File

@ -11,6 +11,17 @@ public class PCInfoUI_CollectionCard_Scroll : uScrollViewMgr
for (int i = 0; i < lst.Count; i++) for (int i = 0; i < lst.Count; i++)
list_pc.Add(table_itemlist.Ins.Get_Data(lst[i])); list_pc.Add(table_itemlist.Ins.Get_Data(lst[i]));
Set_ScrollView(list_pc); Set_ScrollView(list_pc);
list_CardBase.ForEach(f => f.Set_CardType(eUICardType.NoTouch)); }
public void SelectCard_MyCostume(int id)
{
for (int i = 0; i < list_CardBase.Count; i++)
{
if (list_CardBase[i].Get_IntData() == id)
{
(list_CardBase[i] as PCInfoUI_PCListCard).OnClick_Costume();
break;
}
}
} }
} }

View File

@ -1,33 +1,42 @@
using System.Collections.Generic;
public class PCInfoUI_List : uScrollViewArrMgr public class PCInfoUI_List : uScrollViewArrMgr
{ {
int m_Index; public TabUIBase m_Tab;
public void Set(bool enter) List<TabUIData> list_TabData = new List<TabUIData>
{ {
if (m_Index == 0) new TabUIData{ n_btnName = 338, btnImg_on = "costume button 1", btnImg_off = "costume button 1", },
{ new TabUIData{ n_btnName = 339, btnImg_on = "costume button 2", btnImg_off = "costume button 2", },
var lst = table_itemlist.Ins.Get_DataList(eItem.PCCostume); new TabUIData{ n_btnName = 340, btnImg_on = "costume button 3", btnImg_off = "costume button 3", },
Set_ScrollView(m_Index, lst, true); };
var equipid = ServerInfo.Ins.m_ServerData.Get_EqiupmentEquip(eItem.PCCostume); public override void Set()
PCInfoUI_PCListCard equipcard = dic_cardbase[m_Index][0] as PCInfoUI_PCListCard; {
for (int i = 0; i < dic_cardbase[m_Index].Count; i++) for (int i = 0; i < list_TabData.Count; i++)
{ {
if (dic_cardbase[m_Index][i].Get_IntData() == equipid) list_TabData[i].onClick = OnClick_Type;
{
equipcard = dic_cardbase[m_Index][i] as PCInfoUI_PCListCard;
break;
}
}
PCInfoUI.Ins.m_PCInfoUI_Center.Set(enter, equipcard);
} }
else m_Tab.Set(list_TabData);
Set_ScrollView(m_Index, table_pccostumecollectionlist.Ins.Get_DataList(), true); OnClick_Type();
} }
public void OnClick_Type(int index) void Set_MyCostume()
{ {
m_Index = index; if (m_Tab.Get_Index() == 0)
Set(false); { // 착용 중인 코스튬 UI 설정
for (int i = 0; i < dic_cardbase[0].Count; i++)
(dic_cardbase[0][i] as PCInfoUI_CollectionCard).SelectCard_MyCostume();
}
}
public void OnClick_Type()
{
int index = m_Tab.Get_Index();
if (index == 0)
{
Set_ScrollView(index, table_pccostumecollectionlist.Ins.Get_DataList(), true);
Set_MyCostume();
}
} }
} }

View File

@ -31,20 +31,9 @@ public class PCInfoUI_PCListCard : CardBase
bool IsObtain() { return ServerInfo.Ins.m_ServerData.IsObtainItem(m_Data.n_ItemID); } bool IsObtain() { return ServerInfo.Ins.m_ServerData.IsObtainItem(m_Data.n_ItemID); }
public override int Get_IntData() { return m_Data.n_ItemID; } public override int Get_IntData() { return m_Data.n_ItemID; }
public override void Set_CardType(eUICardType _type)
{
base.Set_CardType(_type);
switch (_type)
{
case eUICardType.NoTouch:
gos[2].SetActive(false);
break;
}
}
public void OnClick_Costume() public void OnClick_Costume()
{ {
if (CardType != eUICardType.NoTouch) PCInfoUI.Ins.m_PCInfoUI_Center.Set(false, this);
PCInfoUI.Ins.m_PCInfoUI_Center.Set(false, this);
} }
} }