forked from exApiTools/AutoOpen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.cs
More file actions
30 lines (24 loc) · 938 Bytes
/
Settings.cs
File metadata and controls
30 lines (24 loc) · 938 Bytes
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
using System.Windows.Forms;
using ExileCore.Shared.Attributes;
using ExileCore.Shared.Interfaces;
using ExileCore.Shared.Nodes;
namespace AutoOpen;
public class Settings : ISettings
{
public ToggleNode Enable { get; set; } = new(false);
[Menu("Blacklist|Whitelist Key")]
public HotkeyNode ToggleEntityKey { get; set; } = new(Keys.V);
public ToggleNode BlockInputWhenClicking { get; set; } = new(true);
public RangeNode<int> ClickDelay { get; set; } = new(1, 0, 100);
public TypeSettings DoorSettings { get; set; } = new();
[Menu("Switches/Levers")]
public TypeSettings SwitchSettings { get; set; } = new();
public TypeSettings ChestSettings { get; set; } = new();
public TypeSettings ShrineSettings { get; set; } = new();
}
[Submenu]
public class TypeSettings
{
public ToggleNode Open { get; set; } = new(true);
public RangeNode<int> MaxDistance { get; set; } = new(150, 0, 300);
}