You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
515 B
20 lines
515 B
using System; |
|
|
|
namespace NaughtyAttributes |
|
{ |
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)] |
|
public class HorizontalLineAttribute : DrawerAttribute |
|
{ |
|
public const float DefaultHeight = 2.0f; |
|
public const EColor DefaultColor = EColor.Gray; |
|
|
|
public float Height { get; private set; } |
|
public EColor Color { get; private set; } |
|
|
|
public HorizontalLineAttribute(float height = DefaultHeight, EColor color = DefaultColor) |
|
{ |
|
Height = height; |
|
Color = color; |
|
} |
|
} |
|
}
|
|
|