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.
32 lines
790 B
C#
32 lines
790 B
C#
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();
|
|
}
|
|
}
|
|
} |