-
Notifications
You must be signed in to change notification settings - Fork 13
/
RadarSettings.cs
76 lines (66 loc) · 3.7 KB
/
RadarSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using ExileCore.Shared.Attributes;
using ExileCore.Shared.Interfaces;
using ExileCore.Shared.Nodes;
using Newtonsoft.Json;
using SharpDX;
namespace Radar;
[Submenu]
public class DebugSettings
{
public ToggleNode DrawHeightMap { get; set; } = new ToggleNode(false);
public ToggleNode DisableHeightAdjust { get; set; } = new ToggleNode(false);
public ToggleNode SkipNeighborFill { get; set; } = new ToggleNode(false);
public ToggleNode SkipEdgeDetector { get; set; } = new ToggleNode(false);
public ToggleNode SkipRecoloring { get; set; } = new ToggleNode(false);
public ToggleNode DisableDrawRegionLimiting { get; set; } = new ToggleNode(false);
public ToggleNode IgnoreFullscreenPanels { get; set; } = new ToggleNode(false);
public ToggleNode IgnoreLargePanels { get; set; } = new ToggleNode(false);
public RangeNode<int> MapCenterOffsetX { get; set; } = new RangeNode<int>(0, -1000, 1000);
public RangeNode<int> MapCenterOffsetY { get; set; } = new RangeNode<int>(0, -1000, 1000);
}
[Submenu]
public class WorldPathSettings
{
public ToggleNode ShowPathsToTargets { get; set; } = new ToggleNode(true);
public ToggleNode ShowPathsToTargetsOnlyWithClosedMap { get; set; } = new ToggleNode(true);
public ToggleNode UseRainbowColorsForPaths { get; set; } = new ToggleNode(true);
public ColorNode DefaultPathColor { get; set; } = new ColorNode(Color.Red);
public ToggleNode OffsetPaths { get; set; } = new ToggleNode(true);
public RangeNode<float> PathThickness { get; set; } = new RangeNode<float>(1, 1, 20);
public RangeNode<int> DrawEveryNthSegment { get; set; } = new RangeNode<int>(1, 1, 10);
}
[Submenu]
public class PathfindingSettings
{
[Menu(null, "For debugging only")]
[JsonIgnore]
public TextNode CurrentZoneName { get; set; } = new TextNode("<unknown>");
[Menu(null, "For debugging only")]
[JsonIgnore]
public TextNode TargetNameFilter { get; set; } = new TextNode("");
public ToggleNode ShowPathsToTargetsOnMap { get; set; } = new ToggleNode(true);
public ColorNode DefaultMapPathColor { get; set; } = new ColorNode(Color.Green);
public ToggleNode UseRainbowColorsForMapPaths { get; set; } = new ToggleNode(true);
public ToggleNode ShowAllTargets { get; set; } = new ToggleNode(false);
[Menu(null, "Do not show targets that occur more than X times per zone")]
[ConditionalDisplay(nameof(ShowAllTargets))]
public RangeNode<int> MaxTargetNameCount { get; set; } = new RangeNode<int>(10, 1, 100);
public ToggleNode IncludeTilePathsAsTargets { get; set; } = new ToggleNode(true);
public ToggleNode ShowSelectedTargets { get; set; } = new ToggleNode(true);
public ToggleNode EnableTargetNameBackground { get; set; } = new ToggleNode(true);
public ColorNode TargetNameColor { get; set; } = new ColorNode(Color.Violet);
public WorldPathSettings WorldPathSettings { get; set; } = new WorldPathSettings();
}
public class RadarSettings : ISettings
{
[JsonIgnore]
public ButtonNode Reload { get; set; } = new ButtonNode();
public ToggleNode Enable { get; set; } = new ToggleNode(true);
public RangeNode<float> CustomScale { get; set; } = new RangeNode<float>(1, 0.1f, 10);
public ToggleNode DrawWalkableMap { get; set; } = new ToggleNode(true);
public ColorNode TerrainColor { get; set; } = new ColorNode(new Color(new Vector3(150f) / byte.MaxValue));
public RangeNode<int> MaximumMapTextureDimension { get; set; } = new RangeNode<int>(4096, 100, 4096);
public RangeNode<int> MaximumPathCount { get; set; } = new RangeNode<int>(1000, 0, 1000);
public PathfindingSettings PathfindingSettings { get; set; } = new PathfindingSettings();
public DebugSettings Debug { get; set; } = new DebugSettings();
}