1.重构UXButton 2.主Transition有UXSeletable负责 ,同时兼具导航 3.新增UXSlider 支持平滑过渡 适配手柄 4.优化部分逻辑bug
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"));
|
|
}
|
|
}
|
|
}
|
|
}
|