Move color picker remap indices into a chrome metric.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace OpenRA.Mods.RA.Widgets
|
|||||||
public class ColorPreviewManagerWidget : Widget
|
public class ColorPreviewManagerWidget : Widget
|
||||||
{
|
{
|
||||||
public readonly string Palette = "colorpicker";
|
public readonly string Palette = "colorpicker";
|
||||||
public readonly int[] RemapIndices = {};
|
public readonly int[] RemapIndices = ChromeMetrics.Get<int[]>("ColorPickerRemapIndices");
|
||||||
public readonly float Ramp = 0.05f;
|
public readonly float Ramp = 0.05f;
|
||||||
public HSLColor Color;
|
public HSLColor Color;
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ Container@SERVER_LOBBY:
|
|||||||
Height:535
|
Height:535
|
||||||
Children:
|
Children:
|
||||||
ColorPreviewManager@COLOR_MANAGER:
|
ColorPreviewManager@COLOR_MANAGER:
|
||||||
RemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
|
|
||||||
Label@SERVER_NAME:
|
Label@SERVER_NAME:
|
||||||
Width:740
|
Width:740
|
||||||
Y:0-25
|
Y:0-25
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ Container@SETTINGS_PANEL:
|
|||||||
Height:535
|
Height:535
|
||||||
Children:
|
Children:
|
||||||
ColorPreviewManager@COLOR_MANAGER:
|
ColorPreviewManager@COLOR_MANAGER:
|
||||||
RemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
|
|
||||||
Label@TITLE:
|
Label@TITLE:
|
||||||
Width:740
|
Width:740
|
||||||
Y:0-25
|
Y:0-25
|
||||||
|
|||||||
@@ -3,4 +3,5 @@
|
|||||||
Metrics:
|
Metrics:
|
||||||
ButtonDepth: 0
|
ButtonDepth: 0
|
||||||
ButtonFont: Bold
|
ButtonFont: Bold
|
||||||
CheckboxPressedState: true
|
CheckboxPressedState: true
|
||||||
|
ColorPickerRemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
|
||||||
@@ -6,7 +6,6 @@ Background@SERVER_LOBBY:
|
|||||||
Height:600
|
Height:600
|
||||||
Children:
|
Children:
|
||||||
ColorPreviewManager@COLOR_MANAGER:
|
ColorPreviewManager@COLOR_MANAGER:
|
||||||
RemapIndices: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240
|
|
||||||
Label@SERVER_NAME:
|
Label@SERVER_NAME:
|
||||||
X:0
|
X:0
|
||||||
Y:17
|
Y:17
|
||||||
|
|||||||
@@ -4,3 +4,4 @@ Metrics:
|
|||||||
ButtonDepth: 1
|
ButtonDepth: 1
|
||||||
ButtonFont: Regular
|
ButtonFont: Regular
|
||||||
CheckboxPressedState: false
|
CheckboxPressedState: false
|
||||||
|
ColorPickerRemapIndices: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ Background@SERVER_LOBBY:
|
|||||||
Height:600
|
Height:600
|
||||||
Children:
|
Children:
|
||||||
ColorPreviewManager@COLOR_MANAGER:
|
ColorPreviewManager@COLOR_MANAGER:
|
||||||
RemapIndices: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
|
|
||||||
Label@SERVER_NAME:
|
Label@SERVER_NAME:
|
||||||
X:0
|
X:0
|
||||||
Y:17
|
Y:17
|
||||||
|
|||||||
@@ -4,3 +4,4 @@ Metrics:
|
|||||||
ButtonDepth: 1
|
ButtonDepth: 1
|
||||||
ButtonFont: Regular
|
ButtonFont: Regular
|
||||||
CheckboxPressedState: false
|
CheckboxPressedState: false
|
||||||
|
ColorPickerRemapIndices: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
|
||||||
|
|||||||
Reference in New Issue
Block a user