-
Notifications
You must be signed in to change notification settings - Fork 0
/
ColorSettings.cs
59 lines (41 loc) · 1.17 KB
/
ColorSettings.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.Collections.Generic;
namespace RetroDevStudio.Types
{
public class ColorSettings
{
public int BackgroundColor = 0;
public int MultiColor1 = 0;
public int MultiColor2 = 0;
public int BGColor4 = 0;
public int ActivePalette = 0;
public List<Palette> Palettes = new List<Palette>();
public Palette Palette
{
get
{
return Palettes[ActivePalette];
}
set
{
Palettes[ActivePalette] = value;
}
}
public ColorSettings()
{
Palettes.Add( new Palette() );
}
public ColorSettings( ColorSettings OtherSettings )
{
BackgroundColor = OtherSettings.BackgroundColor;
MultiColor1 = OtherSettings.MultiColor1;
MultiColor2 = OtherSettings.MultiColor2;
BGColor4 = OtherSettings.BGColor4;
Palettes = new List<Palette>();
foreach ( var pal in OtherSettings.Palettes )
{
Palettes.Add( new Palette( pal ) );
}
ActivePalette = OtherSettings.ActivePalette;
}
}
}