forked from Arecurius0/Stashie
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStashieSettings.cs
80 lines (66 loc) · 3.26 KB
/
StashieSettings.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
77
78
79
80
using System.Collections.Generic;
using System.Windows.Forms;
using ExileCore.Shared.Attributes;
using ExileCore.Shared.Interfaces;
using ExileCore.Shared.Nodes;
namespace Stashie
{
public class StashieSettings : ISettings
{
public List<string> AllStashNames = new List<string>();
public Dictionary<string, ListIndexNode> CustomFilterOptions;
public Dictionary<string, RangeNode<int>> CustomRefillOptions;
public StashieSettings()
{
Enable = new ToggleNode(false);
DropHotkey = Keys.F3;
SwitchFilterhotkey = Keys.F4;
ExtraDelay = new RangeNode<int>(0, 0, 2000);
HoverItemDelay = new RangeNode<int>(5, 0, 2000);
StashItemDelay = new RangeNode<int>(5, 0, 2000);
BlockInput = new ToggleNode(false);
AlwaysUseArrow = new ToggleNode(false);
RefillCurrency = new ToggleNode(false);
CurrencyStashTab = new ListIndexNode();
AllowHaveMore = new ToggleNode(false);
CustomFilterOptions = new Dictionary<string, ListIndexNode>();
CustomRefillOptions = new Dictionary<string, RangeNode<int>>();
VisitTabWhenDone = new ToggleNode(false);
TabToVisitWhenDone = new RangeNode<int>(0, 0, 40);
BackToOriginalTab = new ToggleNode(false);
}
[Menu("Stash Hotkey")]
public HotkeyNode DropHotkey { get; set; }
[Menu("Switch Filter Hotkey")]
public HotkeyNode SwitchFilterhotkey { get; set; }
[Menu("Extra Delay", "Delay to wait after each inventory clearing attempt(in ms).")]
public RangeNode<int> ExtraDelay { get; set; }
[Menu("HoverItem Delay", "Delay used to wait inbetween checks for the Hoveritem (in ms).")]
public RangeNode<int> HoverItemDelay { get; set; }
[Menu("StashItem Delay", "Delay used to wait after moving the mouse on an item to Stash until clicking it(in ms).")]
public RangeNode<int> StashItemDelay { get; set; }
[Menu("Block Input", "Block user input (except: Ctrl+Alt+Delete) when dropping items to stash.")]
public ToggleNode BlockInput { get; set; }
[Menu("When done, go to tab.",
"After Stashie has dropped all items to their respective tabs, then go to the set tab.")]
public ToggleNode VisitTabWhenDone { get; set; }
[Menu("tab (index)")]
public RangeNode<int> TabToVisitWhenDone { get; set; }
[Menu("Go back to the tab you were in prior to Stashing")]
public ToggleNode BackToOriginalTab { get; set; }
public ToggleNode RefillCurrency { get; set; }
public ListIndexNode CurrencyStashTab { get; set; }
public ToggleNode AllowHaveMore { get; set; }
[Menu("Force arrow key switching", "Always switch stash tabs via keyboard arrows")]
public ToggleNode AlwaysUseArrow { get; set; }
public ToggleNode Enable { get; set; }
public int[,] IgnoredCells { get; set; } =
{
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}
};
}
}