-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreatureVisualizerPreferences.cs
More file actions
119 lines (90 loc) · 2.22 KB
/
CreatureVisualizerPreferences.cs
File metadata and controls
119 lines (90 loc) · 2.22 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
using System;
namespace creaturevisualizer
{
/// <summary>
/// Preferences per Electron toolset plugin interface.
/// @note Prefs are stored at
/// C:\Users\User\AppData\Local\NWN2 Toolset\Plugins\CreatureVisualizer.xml
/// </summary>
[Serializable]
public class CreatureVisualizerPreferences
{
#region Properties (static)
static CreatureVisualizerPreferences _that;
public static CreatureVisualizerPreferences that
{
get
{
if (_that == null)
_that = new CreatureVisualizerPreferences();
return _that;
}
set { _that = value; }
}
#endregion Properties (static)
#region Properties
public int x
{ get; set; }
public int y
{ get; set; }
public int w
{ get; set; }
public int h
{ get; set; }
public bool StayOnTop
{ get; set; }
public int RefreshProtocol
{ get; set; }
public int ControlPanelDirection
{ get; set; }
public bool ShowControlPanel
{ get; set; }
public bool ShowMiniPanel
{ get; set; }
public int TabPageCurrent
{ get; set; }
public float LightIntensity
{ get; set; }
public float CameraBaseHeight
{ get; set; }
public int x_ColorDialog
{ get; set; }
public int y_ColorDialog
{ get; set; }
public string LastSaveDirectory
{ get; set; }
public bool ProcessEquipped_body
{ get; set; }
public bool ProcessEquipped_held
{ get; set; }
public bool ProcessInventory
{ get; set; }
#endregion Properties
#region cTor
/// <summary>
/// cTor. Sets default values for the CreatureVisualizer's preferences.
/// @note CreVisF..cTor will quickly override these values with values
/// in the user's prefs-file (if it exists).
/// </summary>
CreatureVisualizerPreferences()
{
x = y =
w = h = Int32.MinValue;
StayOnTop = true;
RefreshProtocol = (int)RefreshType.foc | (int)RefreshType.oac;
ControlPanelDirection = (int)CpDir.e;
ShowControlPanel = false;
ShowMiniPanel = true;
TabPageCurrent = 0;
LightIntensity = 0.75F;
CameraBaseHeight = 1.00F;
x_ColorDialog =
y_ColorDialog = Int32.MinValue;
LastSaveDirectory = String.Empty;
ProcessEquipped_body =
ProcessEquipped_held =
ProcessInventory = true;
}
#endregion cTor
}
}