21 lines
1.1 KiB
C#
21 lines
1.1 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Content_Book : ScrollViewMgr
|
|
{
|
|
public UILabel[] labels; // 0 이름, 1 설명, 2 드랍챕터, 3 완성 효과, 4 페이지당 효과
|
|
|
|
public override void Set(int _curtab)
|
|
{
|
|
var book = table_book.Ins.Get_Data(_curtab);
|
|
labels[0].text = book.Name;
|
|
labels[1].text = book.Desc;
|
|
labels[2].text = DSUtil.Format("페이지 드랍 챕터 : {0} ~ {1}", book.ChapterMin, book.ChapterMax);
|
|
labels[3].text = DSUtil.Format("완성 시 {0} {1}", MyText.Get_StatName(book.Stat), MyText.Get_StatValueText(book.Stat, book.Complete));
|
|
labels[4].text = DSUtil.Format("페이지당 {0} {1} ({2})", MyText.Get_StatName(book.Stat), MyText.Get_StatValueText(book.Stat, book.StatPerPage),
|
|
MyText.Get_StatValueText(book.Stat, ServerInfo.Ins.m_ServerData.Get_BookSumPage(book.ID) * book.StatPerPage));
|
|
|
|
Set_ScrollView(table_bookpage.Ins.Get_DataList(_curtab), true);
|
|
}
|
|
} |