f37369cdda
Co-authored-by: Cursor <cursoragent@cursor.com>
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using HSUI.Config;
|
|
using HSUI.Config.Attributes;
|
|
|
|
namespace HSUI.Interface.GeneralElements
|
|
{
|
|
[Exportable(false)]
|
|
[Section("Misc")]
|
|
[SubSection("Grid", 0)]
|
|
public class GridConfig : PluginConfigObject
|
|
{
|
|
public new static GridConfig DefaultConfig()
|
|
{
|
|
var config = new GridConfig();
|
|
config.Enabled = false;
|
|
|
|
return config;
|
|
}
|
|
|
|
[DragFloat("Background Alpha", min = 0, max = 1, velocity = .05f)]
|
|
[Order(10)]
|
|
public float BackgroundAlpha = 0.3f;
|
|
|
|
[Checkbox("Show Center Lines")]
|
|
[Order(15)]
|
|
public bool ShowCenterLines = true;
|
|
[Checkbox("Show Anchor Points")]
|
|
[Order(20)]
|
|
|
|
public bool ShowAnchorPoints = true;
|
|
[Checkbox("Grid Divisions", spacing = true)]
|
|
[Order(25)]
|
|
public bool ShowGrid = true;
|
|
|
|
[DragInt("Divisions Distance", min = 50, max = 500)]
|
|
[Order(30, collapseWith = nameof(ShowGrid))]
|
|
public int GridDivisionsDistance = 50;
|
|
|
|
[DragInt("Subdivision Count", min = 1, max = 10)]
|
|
[Order(35, collapseWith = nameof(ShowGrid))]
|
|
public int GridSubdivisionCount = 4;
|
|
}
|
|
}
|