Skip to content
Snippets Groups Projects
Commit cd127b92 authored by Heine, Eric R's avatar Heine, Eric R
Browse files

Missed a few things.

parent bc0b18ac
No related branches found
No related tags found
No related merge requests found
using System; using System;
using UnityEngine; using UnityEngine;
using UnityEngine.Events; using UnityEngine.Events;
using UnityEngine.UI; using TMPro;
using Shared.ScriptableVariables; using Shared.ScriptableVariables;
namespace Shared.SEUI { namespace Shared.SEUI {
...@@ -12,7 +12,7 @@ namespace Shared.SEUI { ...@@ -12,7 +12,7 @@ namespace Shared.SEUI {
public FloatVariable variable; public FloatVariable variable;
[Tooltip("The input UI to edit the variable's value with")] [Tooltip("The input UI to edit the variable's value with")]
public InputField input; public TMP_InputField input;
// Temporary callback to bridge value changes in the UI and the variable // Temporary callback to bridge value changes in the UI and the variable
private UnityAction<string> valueConverter; private UnityAction<string> valueConverter;
...@@ -20,7 +20,7 @@ namespace Shared.SEUI { ...@@ -20,7 +20,7 @@ namespace Shared.SEUI {
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Start() { void Start() {
// Make sure the input handles the right content type // Make sure the input handles the right content type
input.contentType = InputField.ContentType.DecimalNumber; input.contentType = TMP_InputField.ContentType.DecimalNumber;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
using System; using System;
using UnityEngine; using UnityEngine;
using UnityEngine.Events; using UnityEngine.Events;
using UnityEngine.UI; using TMPro;
using Shared.ScriptableVariables; using Shared.ScriptableVariables;
namespace Shared.SEUI { namespace Shared.SEUI {
...@@ -12,7 +12,7 @@ namespace Shared.SEUI { ...@@ -12,7 +12,7 @@ namespace Shared.SEUI {
public IntVariable variable; public IntVariable variable;
[Tooltip("The input UI to edit the variable's value with")] [Tooltip("The input UI to edit the variable's value with")]
public InputField input; public TMP_InputField input;
// Temporary callback to bridge value changes in the UI and the variable // Temporary callback to bridge value changes in the UI and the variable
private UnityAction<string> valueConverter; private UnityAction<string> valueConverter;
...@@ -20,7 +20,7 @@ namespace Shared.SEUI { ...@@ -20,7 +20,7 @@ namespace Shared.SEUI {
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void Start() { void Start() {
// Make sure the input handles the right content type // Make sure the input handles the right content type
input.contentType = InputField.ContentType.IntegerNumber; input.contentType = TMP_InputField.ContentType.IntegerNumber;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"GUID:6735fe1fe1dbd994a96eb9d888b81400", "GUID:6735fe1fe1dbd994a96eb9d888b81400",
"Unity.TextMeshPro" "Unity.TextMeshPro"
], ],
"optionalUnityReferences": [ "TestAssemblies" ], "optionalUnityReferences": [],
"includePlatforms": [], "includePlatforms": [],
"excludePlatforms": [], "excludePlatforms": [],
"allowUnsafeCode": false, "allowUnsafeCode": false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment