-
Notifications
You must be signed in to change notification settings - Fork 1
/
ConfigWindow.cs
59 lines (55 loc) · 1.67 KB
/
ConfigWindow.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HUNT
{
public partial class ConfigWindow : Form
{
bool radar, relation, route, health;
int radarSize;
public ConfigWindow()
{
InitializeComponent();
}
public bool getRadar() => radar;
public bool getRelation() => relation;
public bool getRoute() => route;
public bool getHealth() => health;
public int getRadarSize() => radarSize;
private void buttonStart_Click(object sender, EventArgs e)
{
radar = radioButtonRadarYes.Checked;
relation = radioButtonRelationYes.Checked;
route = radioButtonRouteYes.Checked;
health = radioButtonHealthYes.Checked;
radarSize = trackBarRadar.Value;
}
private void trackBarRadar_Scroll(object sender, EventArgs e)
{
labelRadarSize.Text = "RADIO: " + trackBarRadar.Value + " PIXELES";
}
private void buttonCancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void radioButtonRadarYes_CheckedChanged(object sender, EventArgs e)
{
if (radioButtonRadarYes.Checked == true)
{
trackBarRadar.Enabled = true;
labelRadarSize.Enabled = true;
}
else
{
trackBarRadar.Enabled = false;
labelRadarSize.Enabled = false;
}
}
}
}