32 lines
1002 B
C#
32 lines
1002 B
C#
|
|
using AlicizaX.Editor;
|
||
|
|
using AlicizaX.UI.Extension;
|
||
|
|
using UnityEditor;
|
||
|
|
|
||
|
|
namespace UnityEngine.UI
|
||
|
|
{
|
||
|
|
[CanEditMultipleObjects]
|
||
|
|
[CustomEditor(typeof(UXHotkeyButton), true)]
|
||
|
|
internal class UXHotkeyButtonEditor : UXButtonEditor
|
||
|
|
{
|
||
|
|
private SerializedProperty _hotKeyRefrence;
|
||
|
|
private SerializedProperty _hotkeyPressType;
|
||
|
|
|
||
|
|
protected override void OnEnable()
|
||
|
|
{
|
||
|
|
base.OnEnable();
|
||
|
|
_hotKeyRefrence = serializedObject.FindProperty("_hotKeyRefrence");
|
||
|
|
_hotkeyPressType = serializedObject.FindProperty("_hotkeyPressType");
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void DrawEventTab()
|
||
|
|
{
|
||
|
|
base.DrawEventTab();
|
||
|
|
using (new EditorGUILayout.VerticalScope(EditorStyles.helpBox))
|
||
|
|
{
|
||
|
|
EditorGUILayout.PropertyField(_hotKeyRefrence, new GUIContent("InputAction"));
|
||
|
|
EditorGUILayout.PropertyField(_hotkeyPressType, new GUIContent("PressType"));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|