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 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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
Metrics:
|
||||
ButtonDepth: 0
|
||||
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
|
||||
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user