33 lines
851 B
C#
33 lines
851 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
|
|
namespace JD.Serialization
|
|
{
|
|
public partial class MaterialGraphicClip
|
|
{
|
|
partial void OnLayerIdxChanging(ref uint value)
|
|
{
|
|
value = (value > 3) ? 3 : value;
|
|
}
|
|
|
|
[Category("Material")]
|
|
[DisplayName("Layer Index")]
|
|
[Description("Layer to modify (between 1 and 4)")]
|
|
[Browsable(true)]
|
|
public uint LayerIndex
|
|
{
|
|
get { return LayerIdx + 1; }
|
|
set
|
|
{
|
|
LayerIdx = (value - 1);
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public override CollisionArea GetCollisionArea(ObjectPath actor, BezierCurveType curveType)
|
|
{
|
|
return new MaterialEffectCollisionArea(actor, curveType, GetType(), this);
|
|
}
|
|
}
|
|
}
|