diff --git a/Assets/Scenes/PlayMenu.unity b/Assets/Scenes/PlayMenu.unity index cd07337..656105a 100644 --- a/Assets/Scenes/PlayMenu.unity +++ b/Assets/Scenes/PlayMenu.unity @@ -1478,15 +1478,15 @@ MonoBehaviour: m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 9 + m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 - m_KeyboardType: 0 + m_KeyboardType: 2 m_LineType: 0 m_HideMobileInput: 0 m_HideSoftKeyboard: 0 - m_CharacterValidation: 6 - m_RegexValue: ^[0-9.]*$ + m_CharacterValidation: 2 + m_RegexValue: m_GlobalPointSize: 24 m_CharacterLimit: 0 m_OnEndEdit: @@ -1767,15 +1767,15 @@ MonoBehaviour: m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 9 + m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 - m_KeyboardType: 0 + m_KeyboardType: 2 m_LineType: 0 m_HideMobileInput: 0 m_HideSoftKeyboard: 0 - m_CharacterValidation: 6 - m_RegexValue: ^[0-9.]*$ + m_CharacterValidation: 2 + m_RegexValue: m_GlobalPointSize: 24 m_CharacterLimit: 0 m_OnEndEdit: @@ -2210,15 +2210,15 @@ MonoBehaviour: m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 9 + m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 - m_KeyboardType: 0 + m_KeyboardType: 2 m_LineType: 0 m_HideMobileInput: 0 m_HideSoftKeyboard: 0 - m_CharacterValidation: 6 - m_RegexValue: ^[0-9.]*$ + m_CharacterValidation: 2 + m_RegexValue: m_GlobalPointSize: 24 m_CharacterLimit: 0 m_OnEndEdit: @@ -3017,15 +3017,15 @@ MonoBehaviour: m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 9 + m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 - m_KeyboardType: 0 + m_KeyboardType: 2 m_LineType: 0 m_HideMobileInput: 0 m_HideSoftKeyboard: 0 - m_CharacterValidation: 6 - m_RegexValue: ^[0-9.]*$ + m_CharacterValidation: 2 + m_RegexValue: m_GlobalPointSize: 24 m_CharacterLimit: 0 m_OnEndEdit: @@ -4098,15 +4098,15 @@ MonoBehaviour: m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 9 + m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 - m_KeyboardType: 0 + m_KeyboardType: 2 m_LineType: 0 m_HideMobileInput: 0 m_HideSoftKeyboard: 0 - m_CharacterValidation: 6 - m_RegexValue: ^[0-9.]*$ + m_CharacterValidation: 2 + m_RegexValue: m_GlobalPointSize: 24 m_CharacterLimit: 0 m_OnEndEdit: @@ -5711,15 +5711,15 @@ MonoBehaviour: m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 9 + m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 - m_KeyboardType: 0 + m_KeyboardType: 2 m_LineType: 0 m_HideMobileInput: 0 m_HideSoftKeyboard: 0 - m_CharacterValidation: 6 - m_RegexValue: ^[0-9.]*$ + m_CharacterValidation: 2 + m_RegexValue: m_GlobalPointSize: 24 m_CharacterLimit: 0 m_OnEndEdit: @@ -6299,15 +6299,15 @@ MonoBehaviour: m_VerticalScrollbarEventHandler: {fileID: 0} m_LayoutGroup: {fileID: 0} m_ScrollSensitivity: 1 - m_ContentType: 9 + m_ContentType: 2 m_InputType: 0 m_AsteriskChar: 42 - m_KeyboardType: 0 + m_KeyboardType: 2 m_LineType: 0 m_HideMobileInput: 0 m_HideSoftKeyboard: 0 - m_CharacterValidation: 6 - m_RegexValue: ^[0-9.]*$ + m_CharacterValidation: 2 + m_RegexValue: m_GlobalPointSize: 24 m_CharacterLimit: 0 m_OnEndEdit: diff --git a/Assets/Scripts/PlayMenu.cs b/Assets/Scripts/PlayMenu.cs index d24b036..ad7be0b 100644 --- a/Assets/Scripts/PlayMenu.cs +++ b/Assets/Scripts/PlayMenu.cs @@ -88,6 +88,7 @@ public class PlayMenu : MonoBehaviour customBackButton.interactable = false; customPlayButton.interactable = false; poisonBerryChance.text = value.Replace("%", ""); + poisonBerryChance.stringPosition = poisonBerryChance.text.Length; }); poisonBerryChance.onDeselect.AddListener((value) => { @@ -105,6 +106,7 @@ public class PlayMenu : MonoBehaviour customBackButton.interactable = false; customPlayButton.interactable = false; slowBerryChance.text = value.Replace("%", ""); + slowBerryChance.stringPosition = slowBerryChance.text.Length; }); slowBerryChance.onDeselect.AddListener((value) => { @@ -122,6 +124,7 @@ public class PlayMenu : MonoBehaviour customBackButton.interactable = false; customPlayButton.interactable = false; ultraBerryChance.text = value.Replace("%", ""); + ultraBerryChance.stringPosition = ultraBerryChance.text.Length; }); ultraBerryChance.onDeselect.AddListener((value) => { @@ -139,6 +142,7 @@ public class PlayMenu : MonoBehaviour customBackButton.interactable = false; customPlayButton.interactable = false; speedyBerryChance.text = value.Replace("%", ""); + speedyBerryChance.stringPosition = speedyBerryChance.text.Length; }); speedyBerryChance.onDeselect.AddListener((value) => { @@ -156,6 +160,7 @@ public class PlayMenu : MonoBehaviour customBackButton.interactable = false; customPlayButton.interactable = false; randomBerryChance.text = value.Replace("%", ""); + randomBerryChance.stringPosition = randomBerryChance.text.Length; }); randomBerryChance.onDeselect.AddListener((value) => { @@ -173,6 +178,7 @@ public class PlayMenu : MonoBehaviour customBackButton.interactable = false; customPlayButton.interactable = false; antiBerryChance.text = value.Replace("%", ""); + antiBerryChance.stringPosition = antiBerryChance.text.Length; }); antiBerryChance.onDeselect.AddListener((value) => {