Implement the new input config.
This commit is contained in:
@@ -1,19 +1,15 @@
|
||||
using Cryville.Common;
|
||||
using Cryville.Crtr.Ruleset;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Cryville.Crtr.Config.UI {
|
||||
public class InputConfigPanelEntry : MonoBehaviour {
|
||||
[SerializeField]
|
||||
Text m_key;
|
||||
|
||||
[SerializeField]
|
||||
Text m_value;
|
||||
|
||||
[SerializeField]
|
||||
Button m_button;
|
||||
internal class InputConfigPanelEntry : MonoBehaviour {
|
||||
[SerializeField] TextMeshProUGUI m_key;
|
||||
[SerializeField] TextMeshProUGUI m_value;
|
||||
[SerializeField] Button m_button;
|
||||
|
||||
public void SetKey(InputConfigPanel master, Identifier name) {
|
||||
m_key.text = (string)name.Name;
|
||||
@@ -39,7 +35,7 @@ namespace Cryville.Crtr.Config.UI {
|
||||
m_value.text = e.Proxy.Value.Handler.GetTypeName(e.Proxy.Value.Type);
|
||||
}
|
||||
}
|
||||
m_value.color = e.Required ? Color.yellow : Color.black;
|
||||
m_value.color = e.Required ? Color.yellow : Color.white;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user