You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/D2D_Scripts/UI/Editor/ButtonEditor.cs

32 lines
790 B
C#

3 months ago
using D2D.Utilities;
using UnityEditor;
namespace D2D.UI
{
[CustomEditor(typeof(DButton))]
public class ButtonEditor : SuperEditor
{
public override void OnInspectorGUI()
{
BeginSerialization();
ShowProperty("Clicked");
var button = (DButton) target;
if (button.needShowAdvancedProperties)
{
ShowProperty("PointerDown");
ShowProperty("PointerUp");
ShowProperty("MouseEnter");
ShowProperty("MouseExit");
Space();
ShowProperty("_disabledAlpha");
ShowProperty("_clickIsPointerDown");
}
EndSerialization();
}
}
}