-
Notifications
You must be signed in to change notification settings - Fork 7
/
StoreMenuItem.cs
54 lines (54 loc) · 1.25 KB
/
StoreMenuItem.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
namespace BF4_Private_By_Tejisav
{
internal class StoreMenuItem
{
public int Value;
public bool Enabled;
public string ItemName
{
get;
private set;
}
public bool SubItem
{
get;
private set;
}
public string[] ValueNames
{
get;
private set;
}
public ItemType itemtype
{
get;
private set;
}
public StoreMenuItem(bool value, string name, bool subItem)
{
Enabled = value;
ItemName = name;
SubItem = subItem;
itemtype = ItemType.Boolean;
}
public StoreMenuItem(int value, string[] valueNames, string name, bool subItem)
{
Value = value;
ValueNames = valueNames;
if (ValueNames == null)
{
ValueNames = new string[]
{
"Empty"
};
}
if (Value >= ValueNames.Length)
{
Value = 0;
}
ItemName = name;
SubItem = subItem;
itemtype = ItemType.Integer;
}
}
}