Move color picker remap indices into a chrome metric.

This commit is contained in:
Paul Chote
2013-06-29 13:00:43 +12:00
parent fd660c7fa0
commit 528198977a
8 changed files with 5 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ namespace OpenRA.Mods.RA.Widgets
public class ColorPreviewManagerWidget : Widget
{
public readonly string Palette = "colorpicker";
public readonly int[] RemapIndices = {};
public readonly int[] RemapIndices = ChromeMetrics.Get<int[]>("ColorPickerRemapIndices");
public readonly float Ramp = 0.05f;
public HSLColor Color;

View File

@@ -6,7 +6,6 @@ Container@SERVER_LOBBY:
Height:535
Children:
ColorPreviewManager@COLOR_MANAGER:
RemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
Label@SERVER_NAME:
Width:740
Y:0-25

View File

@@ -6,7 +6,6 @@ Container@SETTINGS_PANEL:
Height:535
Children:
ColorPreviewManager@COLOR_MANAGER:
RemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
Label@TITLE:
Width:740
Y:0-25

View File

@@ -4,3 +4,4 @@ Metrics:
ButtonDepth: 0
ButtonFont: Bold
CheckboxPressedState: true
ColorPickerRemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190

View File

@@ -6,7 +6,6 @@ Background@SERVER_LOBBY:
Height:600
Children:
ColorPreviewManager@COLOR_MANAGER:
RemapIndices: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240
Label@SERVER_NAME:
X:0
Y:17

View File

@@ -4,3 +4,4 @@ Metrics:
ButtonDepth: 1
ButtonFont: Regular
CheckboxPressedState: false
ColorPickerRemapIndices: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240

View File

@@ -6,7 +6,6 @@ Background@SERVER_LOBBY:
Height:600
Children:
ColorPreviewManager@COLOR_MANAGER:
RemapIndices: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
Label@SERVER_NAME:
X:0
Y:17

View File

@@ -4,3 +4,4 @@ Metrics:
ButtonDepth: 1
ButtonFont: Regular
CheckboxPressedState: false
ColorPickerRemapIndices: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95