-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameDataUC.cs
More file actions
64 lines (48 loc) · 1.95 KB
/
Copy pathGameDataUC.cs
File metadata and controls
64 lines (48 loc) · 1.95 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
namespace SetMouseForGames;
public partial class GameDataUC : UserControl
{
public Form1 Form1;
public GameDataUC()
{
InitializeComponent();
}
private void PasteValueToFirstPersonAimPx_Click(object sender, EventArgs e)
{
if (Form1.mainLogic.GamesManager.isSelectedGameNull()) return;
Form1.mainLogic.GamesManager.SelectedGameAimSettings.FirstPersonAimPx = Form1.mainLogic.SpinValue;
UpdateGameValues();
}
private void PasteValueToInGameCursorPx_Click(object sender, EventArgs e)
{
if (Form1.mainLogic.GamesManager.isSelectedGameNull()) return;
Form1.mainLogic.GamesManager.SelectedGameAimSettings.InGameCursorPx = Form1.mainLogic.SpinValue;
UpdateGameValues();
}
private void CopyFromInGameCursorPx_Click(object sender, EventArgs e)
{
if (Form1.mainLogic.GamesManager.isSelectedGameNull()) return;
Form1.mainLogic.SpinValue = Form1.mainLogic.GamesManager.SelectedGameAimSettings.InGameCursorPx;
UpdateMainValueHolder();
}
private void CopyFromFirstPersonAimPx_Click(object sender, EventArgs e)
{
if (Form1.mainLogic.GamesManager.isSelectedGameNull()) return;
Form1.mainLogic.SpinValue = Form1.mainLogic.GamesManager.SelectedGameAimSettings.FirstPersonAimPx;
UpdateMainValueHolder();
}
internal void UpdateMainValueHolder()
{
MainSpinValueHolder.Text = Form1.mainLogic.SpinValue.ToString();
}
internal void UpdateGameValues()
{
if (Form1.mainLogic.GamesManager.SelectedGameAimSettings is null) return;
FirstPersonAimPx.Text = Form1.mainLogic.GamesManager.SelectedGameAimSettings.FirstPersonAimPx.ToString();
InGameCursorPx.Text = Form1.mainLogic.GamesManager.SelectedGameAimSettings.InGameCursorPx.ToString();
}
private void button1_Click(object sender, EventArgs e)
{
Form1.mainLogic.SpinValue = 0;
UpdateMainValueHolder();
}
}