aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Shifter.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-03-09 18:15:29 -0500
committerMichael <[email protected]>2017-03-09 18:15:29 -0500
commita9b08eb21676a6c59b0c8bb6046b40bd42e078d5 (patch)
tree35f405bed171ab9856c355708666eba23e0cdb1e /ShiftOS.WinForms/Applications/Shifter.cs
parentb4a5c854c8b597340cb349ba9d2fe59c2f4a652a (diff)
downloadshiftos_thereturn-a9b08eb21676a6c59b0c8bb6046b40bd42e078d5.tar.gz
shiftos_thereturn-a9b08eb21676a6c59b0c8bb6046b40bd42e078d5.tar.bz2
shiftos_thereturn-a9b08eb21676a6c59b0c8bb6046b40bd42e078d5.zip
FULLY COMPLETE TERMINAL COLORS
Diffstat (limited to 'ShiftOS.WinForms/Applications/Shifter.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Shifter.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Shifter.cs b/ShiftOS.WinForms/Applications/Shifter.cs
index 4d29cf8..1adc75a 100644
--- a/ShiftOS.WinForms/Applications/Shifter.cs
+++ b/ShiftOS.WinForms/Applications/Shifter.cs
@@ -446,6 +446,30 @@ namespace ShiftOS.WinForms.Applications
flbody.Controls.Add(color);
color.Show();
}
+ else if(c.Field.FieldType.IsEnum == true)
+ {
+ var cBox = new ComboBox();
+ cBox.Width = 150;
+ ControlManager.SetupControl(cBox);
+
+ foreach(var itm in Enum.GetNames(c.Field.FieldType))
+ {
+ cBox.Items.Add(itm);
+ }
+
+ cBox.Text = c.Field.GetValue(LoadedSkin).ToString();
+
+ cBox.SelectedIndexChanged += (o, a) =>
+ {
+ c.Field.SetValue(LoadedSkin, Enum.Parse(c.Field.FieldType, cBox.Text));
+ };
+
+ labelHeight = cBox.Height;
+
+ flbody.Controls.Add(cBox);
+ cBox.Show();
+ flbody.SetFlowBreak(cBox, true);
+ }
else if(c.Field.FieldType == typeof(int))
{
if (c.Field.HasShifterEnumMask())