-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditLightThingForm.cs
More file actions
42 lines (34 loc) · 885 Bytes
/
EditLightThingForm.cs
File metadata and controls
42 lines (34 loc) · 885 Bytes
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Controls;
using CodeImp.DoomBuilder.LightingMode;
namespace CodeImp.DoomBuilder.Plugins.Lighting
{
public partial class EditLightThingForm : Form
{
private LightingThing lightingthing;
public EditLightThingForm()
{
InitializeComponent();
}
public EditLightThingForm(LightingThing lt)
{
InitializeComponent();
this.isenabled.Checked = lt.Enabled;
lightingthing = lt;
brightness.Text = lt.Brightness.ToString();
}
private void acceptbutton_Click(object sender, EventArgs e)
{
lightingthing.Enabled = this.isenabled.Checked;
lightingthing.Brightness = brightness.GetResult(lightingthing.Brightness);
this.Close();
}
}
}