protected virtual void DrawChild(SerializedProperty parent, SerializedProperty child, Slices slices) { getDrawer(child).AddSlices(child, slices); }
private void DrawChildWithDecorators(SerializedProperty parent, SerializedProperty child, Slices slices, bool isLast) { space.Draw(child, slices); var childSlices = new SlicesImpl(); DrawChild(parent, child, childSlices); if (NeedDrawHeader(parent, child)) { header.Draw(child, childSlices); } slices.Add(childSlices); }
private void DrawChildWithDecorators(SerializedProperty parent, SerializedProperty child, Slices slices, bool isLast) { int count = slices.CountPayload; spaceDrawer.AddSlices(child, slices); DrawChild(parent, child, slices); if (NeedDrawHeader(parent, child)) { headerDrawer.AddSlices(slices.CountPayload - count, 0, child, slices, isLast); } }
public override void AddSlices(SerializedProperty property, Slices slices) { highlight.Draw(property, slices); DrawChildren(property, slices); tooltip.Draw(property, slices); }
public abstract void AddSlices(SerializedProperty property, Slices slices);
public override void AddSlices(SerializedProperty property, Slices slices) { throw new InvalidOperationException(); }
public override void AddSlices(SerializedProperty property, Slices slices) { DrawHighlight(property, slices, 0, 1); base.AddSlices(property, slices); }
public override void AddSlices(SerializedProperty property, Slices slices) { highlight.Draw(property, slices); slices.Add(new SliceImpl(GetWeight(property), GetFixedWidth(property), rect => Draw(rect, property.Copy()))); tooltip.Draw(property, slices); }