forked from IlliumIv/Tradie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Settings.cs
94 lines (78 loc) · 3.75 KB
/
Settings.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
using System.Configuration;
using ExileCore.Shared.Attributes;
using ExileCore.Shared.Interfaces;
using ExileCore.Shared.Nodes;
using SharpDX;
namespace Tradie
{
public class Settings : ISettings
{
public Settings()
{
ImageSize = new RangeNode<int>(32, 1, 78);
TextSize = new RangeNode<int>(20, 1, 60);
Spacing = new RangeNode<int>(3, 0, 20);
YourItemStartingLocationX = new RangeNode<int>(966, 0, 2560);
YourItemStartingLocationY = new RangeNode<int>(863, 0, 2560);
YourItemsAscending = new ToggleNode(true);
UseCoreNPCTrade = new ToggleNode(true);
UseCoreYourItems = new ToggleNode(true);
YourItemTextColor = Color.LightBlue;
YourItemBackgroundColor = Color.Black;
YourItemsImageLeftOrRight = new ToggleNode(true);
TheirItemStartingLocationX = new RangeNode<int>(966, 0, 2560);
TheirItemStartingLocationY = new RangeNode<int>(863, 0, 2560);
TheirItemsAscending = new ToggleNode(false);
TheirItemTextColor = Color.Red;
TheirItemBackgroundColor = Color.Black;
TheirItemsImageLeftOrRight = new ToggleNode(false);
}
//[Menu("Auto Search")]
//public ButtonNode AutoSearch { get; set; } = new ButtonNode();
[Menu("NPC Trade Window Index #")]
public RangeNode<int> NPCTradeIndex { get; set; } = new RangeNode<int>(93, 0, 400);
[Menu("Use core NPC Trade Window")]
public ToggleNode UseCoreNPCTrade { get; set; } = new ToggleNode(true);
[Menu("Player Trade Window Index #")]
public RangeNode<int> PlayerTradeIndex { get; set; } = new RangeNode<int>(94, 0, 400);
[Menu("Use core Player Trade Window")]
public ToggleNode UseCoreYourItems { get; set; } = new ToggleNode(true);
[Menu("Image Size")]
public RangeNode<int> ImageSize { get; set; }
[Menu("Text Size")]
public RangeNode<int> TextSize { get; set; }
[Menu("Spacing", "Spacing between image and text")]
public RangeNode<int> Spacing { get; set; }
[Menu("Use horizontal view")]
public ToggleNode UseHorizon { get; set; } = new ToggleNode(true);
[Menu("Your Trade Items", 1001)]
public EmptyNode Blank1 { get; set; }
[Menu("X", 10011, 1001)]
public RangeNode<int> YourItemStartingLocationX { get; set; }
[Menu("Y", 10012, 1001)]
public RangeNode<int> YourItemStartingLocationY { get; set; }
[Menu("Ascending Order", 10013, 1001)]
public ToggleNode YourItemsAscending { get; set; }
[Menu("Currency Before Or After", 10014, 1001)]
public ToggleNode YourItemsImageLeftOrRight { get; set; }
[Menu("Text Color", 10015, 1001)]
public ColorNode YourItemTextColor { get; set; }
[Menu("Background Color", 10016, 1001)]
public ColorNode YourItemBackgroundColor { get; set; }
[Menu("Their Trade Items", 2001)]
public EmptyNode Blank2 { get; set; }
[Menu("X", 20011, 2001)]
public RangeNode<int> TheirItemStartingLocationX { get; set; }
[Menu("Y", 20012, 2001)]
public RangeNode<int> TheirItemStartingLocationY { get; set; }
[Menu("Ascending Order", 20013, 2001)]
public ToggleNode TheirItemsAscending { get; set; }
[Menu("Currency Before Or After", 20014, 2001)]
public ToggleNode TheirItemsImageLeftOrRight { get; set; }
[Menu("Text Color", 20015, 2001)]
public ColorNode TheirItemTextColor { get; set; }
[Menu("Background Color", 20016, 2001)]
public ColorNode TheirItemBackgroundColor { get; set; }
public ToggleNode Enable { get; set; } = new ToggleNode(true);
}
}