mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 17:30:10 +00:00
[optimize][painter] add upper and top painter layer
This commit is contained in:
@@ -22,6 +22,7 @@ namespace XCharts.Editor
|
||||
PropertyField(prop, "m_MaxPainter");
|
||||
PropertyField(prop, "m_BasePainterMaterial");
|
||||
PropertyField(prop, "m_SeriePainterMaterial");
|
||||
PropertyField(prop, "m_UpperPainterMaterial");
|
||||
PropertyField(prop, "m_TopPainterMaterial");
|
||||
PropertyField(prop, "m_LineSmoothStyle");
|
||||
PropertyField(prop, "m_LineSmoothness");
|
||||
|
||||
@@ -4,8 +4,8 @@ using XCharts.Runtime;
|
||||
|
||||
namespace XCharts.Editor
|
||||
{
|
||||
[CustomPropertyDrawer(typeof(TextPadding), true)]
|
||||
public class TextPaddingDrawer : BasePropertyDrawer
|
||||
[CustomPropertyDrawer(typeof(Padding), true)]
|
||||
public class PaddingDrawer : BasePropertyDrawer
|
||||
{
|
||||
public override string ClassName { get { return "Padding"; } }
|
||||
public override void OnGUI(Rect pos, SerializedProperty prop, GUIContent label)
|
||||
@@ -22,4 +22,9 @@ namespace XCharts.Editor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[CustomPropertyDrawer(typeof(TextPadding), true)]
|
||||
public class TextPaddingDrawer : PaddingDrawer
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user