diff --git a/Assets/Prefabs/AAA/Panel_Start.prefab b/Assets/Prefabs/AAA/Panel_Start.prefab index c43a27e1..8b8139c1 100644 --- a/Assets/Prefabs/AAA/Panel_Start.prefab +++ b/Assets/Prefabs/AAA/Panel_Start.prefab @@ -1568,7 +1568,7 @@ MonoBehaviour: m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 - m_fontStyle: 2 + m_fontStyle: 0 m_HorizontalAlignment: 1 m_VerticalAlignment: 512 m_textAlignment: 65535 @@ -3143,7 +3143,7 @@ MonoBehaviour: m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 - m_fontStyle: 2 + m_fontStyle: 0 m_HorizontalAlignment: 1 m_VerticalAlignment: 512 m_textAlignment: 65535 @@ -6654,7 +6654,7 @@ MonoBehaviour: m_enableAutoSizing: 0 m_fontSizeMin: 18 m_fontSizeMax: 72 - m_fontStyle: 2 + m_fontStyle: 0 m_HorizontalAlignment: 1 m_VerticalAlignment: 512 m_textAlignment: 65535 diff --git a/Assets/Scripts/Studio/UI/Panel/Panel_Start.cs b/Assets/Scripts/Studio/UI/Panel/Panel_Start.cs index 7f81ba63..7b2c64ad 100644 --- a/Assets/Scripts/Studio/UI/Panel/Panel_Start.cs +++ b/Assets/Scripts/Studio/UI/Panel/Panel_Start.cs @@ -1,4 +1,5 @@ using System; +using TMPro; using UnityEngine; using UnityEngine.UI; using XRLib.UI; @@ -26,8 +27,13 @@ namespace Studio.UI { var newProjectButtonImage = Button_NewProject.transform.GetChild(0).GetComponent(); newProjectButtonImage.gameObject.SetActive(true); + var newProjectButtonText = Button_NewProject.transform.GetComponentInChildren(); + newProjectButtonText.color = Color.white; + var openProjectButtonImage = Button_OpenProject.transform.GetChild(0).GetComponent(); openProjectButtonImage.gameObject.SetActive(false); + var openProjectButtonText = Button_OpenProject.transform.GetComponentInChildren(); + openProjectButtonText.color = Color.black; onClickNewProject?.Invoke(); } @@ -36,8 +42,13 @@ namespace Studio.UI { var newProjectButtonImage = Button_NewProject.transform.GetChild(0).GetComponent(); newProjectButtonImage.gameObject.SetActive(false); + var newProjectButtonText = Button_NewProject.transform.GetComponentInChildren(); + newProjectButtonText.color = Color.black; + var openProjectButtonImage = Button_OpenProject.transform.GetChild(0).GetComponent(); openProjectButtonImage.gameObject.SetActive(true); + var openProjectButtonText = Button_OpenProject.transform.GetComponentInChildren(); + openProjectButtonText.color = Color.white; onClickOpenProject?.Invoke(); }