mypcinfo 갱신
This commit is contained in:
parent
759b2f492e
commit
815a9e7edd
|
|
@ -67,7 +67,4 @@ messageinfo 엄청 느린 버그
|
|||
어드레서블 다운로드 눈속임
|
||||
5그룹이라면 0~1 갈 때 0.2까지 쭉 올리고, 1~2 갈 때 0.4까지 쭉 올리고... 1까지 올리면 되지 않을까? 100%에서 다 되면 넘어가면 되지
|
||||
|
||||
전직 후 mypcui 갱신
|
||||
각성 후 mypcinfo 갱신
|
||||
-- 둘다 메뉴에서 뒤로 나갈 때 무조건 갱신하면 되지 않을까?
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,10 @@ public class BotMenuBase : uScrollViewMgr
|
|||
for (int i = 0; i < moneyForms.Length; i++)
|
||||
moneyForms[i].Refresh();
|
||||
}
|
||||
|
||||
public override void OnClick_Back()
|
||||
{
|
||||
base.OnClick_Back();
|
||||
if (MyInfoUI.isIns) MyInfoUI.Ins.Set();
|
||||
}
|
||||
}
|
||||
|
|
@ -18,6 +18,26 @@ public class MyInfoUI : MonoBehaviourSingletonuScrollViewArrMgr<MyInfoUI>
|
|||
};
|
||||
List<int> list_buffindex = new List<int> { 0, 1, 2 };
|
||||
|
||||
public override void Set()
|
||||
{
|
||||
var sdata = ServerInfo.Ins.m_ServerData;
|
||||
var pcid = sdata.Get_EqiupmentEquip(eItem.PC);
|
||||
var classData = table_classconfig.Ins.Get_Data_orNull(pcid);
|
||||
// TODO 정인호 : 얼굴은 어디에 종속인 지 아직 모름
|
||||
//sprites[0].sprite = UIAtlasMgr.Ins.Get_Sprite(pcid);
|
||||
sprites[1].sprite = UIAtlasMgr.Ins.Get_MainStatSprite(classData.e_MainStatType, true);
|
||||
|
||||
labels[0].text = ServerInfo.Ins.UserName;
|
||||
labels[1].text = classData.Get_JobName();
|
||||
|
||||
slider_exp.value = sdata.PC.Get_ExpSliderValue();
|
||||
texts[2].text = DSUtil.Format("Lv.{0}", sdata.PC.Lv);
|
||||
texts[3].text = DSUtil.Format("{0}%", DSUtil.GetCommaText_N2(slider_exp.value * 100f));
|
||||
|
||||
Set_MainStats();
|
||||
Set_ScrollView(1, list_buffindex, false);
|
||||
}
|
||||
|
||||
public void Set_HP(double curHP, double maxHP)
|
||||
{
|
||||
slider_hp.value = DSUtil.Get_SliderValue((float)(curHP / maxHP));
|
||||
|
|
@ -41,31 +61,6 @@ public class MyInfoUI : MonoBehaviourSingletonuScrollViewArrMgr<MyInfoUI>
|
|||
|
||||
private void OnEnable()
|
||||
{
|
||||
var sdata = ServerInfo.Ins.m_ServerData;
|
||||
var pcid = sdata.Get_EqiupmentEquip(eItem.PC);
|
||||
var classData = table_classconfig.Ins.Get_Data_orNull(pcid);
|
||||
// TODO 정인호 : 얼굴은 어디에 종속인 지 아직 모름
|
||||
//sprites[0].sprite = UIAtlasMgr.Ins.Get_Sprite(pcid);
|
||||
sprites[1].sprite = UIAtlasMgr.Ins.Get_MainStatSprite(classData.e_MainStatType, true);
|
||||
|
||||
labels[0].text = ServerInfo.Ins.UserName;
|
||||
labels[1].text = classData.Get_JobName();
|
||||
|
||||
slider_exp.value = sdata.PC.Get_ExpSliderValue();
|
||||
texts[2].text = DSUtil.Format("Lv.{0}", sdata.PC.Lv);
|
||||
texts[3].text = DSUtil.Format("{0}%", DSUtil.GetCommaText_N2(slider_exp.value * 100f));
|
||||
|
||||
Set_MainStats();
|
||||
Set_ScrollView(1, list_buffindex, false);
|
||||
|
||||
//if (list_PotionStatusCard.Count == 0)
|
||||
//{
|
||||
// for (int i = 0; i < 4; i++)
|
||||
// list_PotionStatusCard.Add(DSUtil.Get_Clone<PotionStatusCard>(go_potioncard, m_Grid_Potion.transform));
|
||||
// m_Grid_Potion.repositionNow = true;
|
||||
//}
|
||||
|
||||
//for (int i = 0; i < list_PotionStatusCard.Count; i++)
|
||||
// list_PotionStatusCard[i].Set(i);
|
||||
Set();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue