From 815a9e7eddbc9a8b07d4aea8039e84461de454ea Mon Sep 17 00:00:00 2001 From: Ino Date: Tue, 4 Mar 2025 10:22:43 +0900 Subject: [PATCH] =?UTF-8?q?mypcinfo=20=EA=B0=B1=EC=8B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Ino_nerdnavis.txt | 3 -- Assets/Script/UI/Menu/BotMenuBase.cs | 6 ++++ Assets/Script/UI/Stage/MyInfoUI.cs | 47 +++++++++++++--------------- 3 files changed, 27 insertions(+), 29 deletions(-) diff --git a/Assets/Ino_nerdnavis.txt b/Assets/Ino_nerdnavis.txt index aa8640793..7d8f65d17 100644 --- a/Assets/Ino_nerdnavis.txt +++ b/Assets/Ino_nerdnavis.txt @@ -67,7 +67,4 @@ messageinfo 엄청 느린 버그 어드레서블 다운로드 눈속임 5그룹이라면 0~1 갈 때 0.2까지 쭉 올리고, 1~2 갈 때 0.4까지 쭉 올리고... 1까지 올리면 되지 않을까? 100%에서 다 되면 넘어가면 되지 -전직 후 mypcui 갱신 -각성 후 mypcinfo 갱신 - -- 둘다 메뉴에서 뒤로 나갈 때 무조건 갱신하면 되지 않을까? diff --git a/Assets/Script/UI/Menu/BotMenuBase.cs b/Assets/Script/UI/Menu/BotMenuBase.cs index 05866dbd3..742ea3556 100644 --- a/Assets/Script/UI/Menu/BotMenuBase.cs +++ b/Assets/Script/UI/Menu/BotMenuBase.cs @@ -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(); + } } \ No newline at end of file diff --git a/Assets/Script/UI/Stage/MyInfoUI.cs b/Assets/Script/UI/Stage/MyInfoUI.cs index b3827a5e8..9873e8349 100644 --- a/Assets/Script/UI/Stage/MyInfoUI.cs +++ b/Assets/Script/UI/Stage/MyInfoUI.cs @@ -18,6 +18,26 @@ public class MyInfoUI : MonoBehaviourSingletonuScrollViewArrMgr }; List list_buffindex = new List { 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 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(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(); } } \ No newline at end of file