Files
XCharts/Editor/MainComponents/TooltipEditor.cs

47 lines
1.7 KiB
C#
Raw Normal View History

2021-11-23 13:20:07 +08:00
using UnityEditor;
2022-02-19 22:37:57 +08:00
using XCharts.Runtime;
2021-11-23 13:20:07 +08:00
2021-12-24 13:33:09 +08:00
namespace XCharts.Editor
2021-11-23 13:20:07 +08:00
{
[ComponentEditor(typeof(Tooltip))]
public class TooltipEditor : MainComponentEditor<Tooltip>
{
public override void OnInspectorGUI()
{
++EditorGUI.indentLevel;
PropertyField("m_Type");
PropertyField("m_Trigger");
2022-08-26 07:50:48 +08:00
PropertyField("m_Position");
PropertyField("m_FixedX");
PropertyField("m_FixedY");
PropertyField("m_Offset");
2022-02-12 20:10:29 +08:00
PropertyField("m_ShowContent");
PropertyField("m_AlwayShowContent");
2021-11-23 13:20:07 +08:00
PropertyField("m_TitleFormatter");
PropertyField("m_ItemFormatter");
PropertyField("m_NumericFormatter");
2021-12-19 20:53:55 +08:00
PropertyFiledMore(() =>
{
2022-04-26 08:24:45 +08:00
PropertyField("m_TitleHeight");
PropertyField("m_ItemHeight");
2021-12-19 20:53:55 +08:00
PropertyField("m_Marker");
PropertyField("m_BorderWidth");
PropertyField("m_BorderColor");
PropertyField("m_PaddingLeftRight");
PropertyField("m_PaddingTopBottom");
PropertyField("m_BackgroundImage");
PropertyField("m_BackgroundType");
2021-12-19 20:53:55 +08:00
PropertyField("m_BackgroundColor");
PropertyField("m_FixedWidth");
PropertyField("m_FixedHeight");
PropertyField("m_MinWidth");
PropertyField("m_MinHeight");
PropertyField("m_IgnoreDataDefaultContent");
});
2021-11-23 13:20:07 +08:00
PropertyField("m_LineStyle");
2022-04-26 08:24:45 +08:00
PropertyField("m_TitleLabelStyle");
PropertyListField("m_ContentLabelStyles");
2021-11-23 13:20:07 +08:00
--EditorGUI.indentLevel;
}
}
}