58 lines
1.4 KiB
C#
58 lines
1.4 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Menu_Book : MenuBase
|
|
{
|
|
public WitchMiniInfo m_WitchMiniInfo;
|
|
public List<BookTabCard> list_BookTabCard;
|
|
public Content_Book m_Content_Book;
|
|
|
|
public static Dictionary<int, List<int>> dic_newBookPage = new Dictionary<int, List<int>>();
|
|
public static bool ExistNewBookPage()
|
|
{
|
|
if (dic_newBookPage.Count > 0)
|
|
{
|
|
foreach (var kvp in dic_newBookPage)
|
|
if (kvp.Value.Count > 0)
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public void Set_UI()
|
|
{
|
|
m_WitchMiniInfo.Set(ServerInfo.Ins.UserName, ServerInfo.Ins.m_ServerData);
|
|
|
|
var books = table_book.Ins.Get_DataList();
|
|
for (int i = 0; i < books.Count; i++)
|
|
list_BookTabCard[i].Set(books[i]);
|
|
|
|
m_Content_Book.Set(CurTab + 1);
|
|
|
|
NewGameUI.Ins.m_GuideQuestUI.Add_GuideQuest(ePurpose.LookBook);
|
|
}
|
|
|
|
protected override void Set_Tab()
|
|
{
|
|
base.Set_Tab();
|
|
Set_UI();
|
|
}
|
|
|
|
public override void OnClick_Tab(GameObject _go)
|
|
{
|
|
CurTab = _go.GetComponent<BookTabCard>().Get_ID() - 1;
|
|
Set_Tab();
|
|
}
|
|
|
|
public override void OnClick_Back()
|
|
{
|
|
base.OnClick_Back();
|
|
dic_newBookPage.Clear();
|
|
GameUI.Ins.LobbyUI.Set_Noti();
|
|
}
|
|
|
|
protected override void Set_Contents()
|
|
{
|
|
}
|
|
} |