Move most UI metrics to common.

This reduces the odds that a third-party mod will crash due to missing
one of them. Eliminates ra2#291.
This commit is contained in:
Alexis Hunt
2016-09-05 09:17:34 -04:00
parent c9474a857a
commit ef8b672f51
7 changed files with 44 additions and 128 deletions

View File

@@ -3,26 +3,6 @@
Metrics: Metrics:
ButtonDepth: 0 ButtonDepth: 0
ButtonFont: Bold ButtonFont: Bold
ButtonTextColor: FFFFFF
ButtonTextColorDisabled: 808080
ButtonTextContrast: false
ButtonTextShadow: false
ButtonTextContrastColorDark: 000000
ButtonTextContrastColorLight: 7F7F7F
ButtonBaseLine: 0
CheckboxPressedState: true CheckboxPressedState: true
HotkeyFont: Regular
HotkeyColor: FFFFFF
HotkeyColorDisabled: 808080
TextfieldFont: Regular
TextfieldColor: FFFFFF
TextfieldColorDisabled: 808080
TextfieldColorInvalid: FFC0C0
TextFont: Regular
TextColor: FFFFFF
TextContrast: false
TextShadow: false
TextContrastColorDark: 000000
TextContrastColorLight: 7F7F7F
ColorPickerRemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
ColorPickerActorType: ^fact.colorpicker ColorPickerActorType: ^fact.colorpicker
ColorPickerRemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190

View File

@@ -1,19 +1,42 @@
Metrics: Metrics:
SpawnFont: TinyBold ButtonBaseLine: 0
SpawnColor: FFFFFF ButtonDepth: 1
SpawnContrastColor: 000000 ButtonFont: Regular
SpawnLabelOffset: 0,1 ButtonTextColor: FFFFFF
IncompatibleVersionColor: FF0000 ButtonTextColorDisabled: 808080
IncompatibleGameColor: A9A9A9 ButtonTextContrast: false
ProtectedGameColor: FF0000 ButtonTextContrastColorDark: 000000
IncompatibleProtectedGameColor: 8B0000 ButtonTextContrastColorLight: 7F7F7F
WaitingGameColor: 00FF00 ButtonTextShadow: false
IncompatibleWaitingGameColor: 32CD32 CheckboxPressedState: false
GameStartedColor: FFA500 GameStartedColor: FFA500
IncompatibleGameStartedColor: D2691E
GlobalChatTextColor: FFFFFF
GlobalChatNotificationColor: D3D3D3 GlobalChatNotificationColor: D3D3D3
PlayerStanceColorSelf: 32CD32 GlobalChatTextColor: FFFFFF
HotkeyColor: FFFFFF
HotkeyColorDisabled: 808080
HotkeyFont: Regular
IncompatibleGameColor: A9A9A9
IncompatibleGameStartedColor: D2691E
IncompatibleProtectedGameColor: 8B0000
IncompatibleVersionColor: FF0000
IncompatibleWaitingGameColor: 32CD32
PlayerStanceColorAllies: FFFF00 PlayerStanceColorAllies: FFFF00
PlayerStanceColorEnemies: FF0000 PlayerStanceColorEnemies: FF0000
PlayerStanceColorNeutrals: D2B48C PlayerStanceColorNeutrals: D2B48C
PlayerStanceColorSelf: 32CD32
ProtectedGameColor: FF0000
SpawnColor: FFFFFF
SpawnContrastColor: 000000
SpawnFont: TinyBold
SpawnLabelOffset: 0,1
TextColor: FFFFFF
TextContrast: false
TextContrastColorDark: 000000
TextContrastColorLight: 7F7F7F
TextFont: Regular
TextShadow: false
TextfieldColor: FFFFFF
TextfieldColorDisabled: 808080
TextfieldColorInvalid: FFC0C0
TextfieldFont: Regular
WaitingGameColor: 00FF00

View File

@@ -1,27 +1,4 @@
# General dumping-ground for UI element sizes, etc. # General dumping-ground for UI element sizes, etc.
Metrics: Metrics:
ButtonDepth: 1
ButtonFont: Regular
ButtonTextColor: FFFFFF
ButtonTextColorDisabled: 808080
ButtonTextContrast: false
ButtonTextShadow: false
ButtonTextContrastColorDark: 000000
ButtonTextContrastColorLight: 7F7F7F
ButtonBaseLine: 0
CheckboxPressedState: false
HotkeyFont: Regular
HotkeyColor: FFFFFF
HotkeyColorDisabled: 808080
TextfieldFont: Regular
TextfieldColor: FFFFFF
TextfieldColorDisabled: 808080
TextfieldColorInvalid: FFC0C0
TextFont: Regular
TextColor: FFFFFF
TextContrast: false
TextShadow: false
TextContrastColorDark: 000000
TextContrastColorLight: 7F7F7F
ColorPickerRemapIndices: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240
ColorPickerActorType: ^carryall.colorpicker ColorPickerActorType: ^carryall.colorpicker
ColorPickerRemapIndices: 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240

View File

@@ -1,27 +1,8 @@
# General dumping-ground for UI element sizes, etc. # General dumping-ground for UI element sizes, etc.
Metrics: Metrics:
ButtonBaseLine: 2
ButtonDepth: 0 ButtonDepth: 0
ButtonFont: Bold ButtonFont: Bold
ButtonTextColor: FFFFFF
ButtonTextColorDisabled: 808080
ButtonTextContrast: false
ButtonTextShadow: false
ButtonTextContrastColorDark: 000000
ButtonTextContrastColorLight: 7F7F7F
ButtonBaseLine: 2
CheckboxPressedState: true CheckboxPressedState: true
HotkeyFont: Regular
HotkeyColor: FFFFFF
HotkeyColorDisabled: 808080
TextfieldFont: Regular
TextfieldColor: FFFFFF
TextfieldColorDisabled: 808080
TextfieldColorInvalid: FFC0C0
TextFont: Regular
TextColor: FFFFFF
TextContrast: false
TextShadow: false
TextContrastColorDark: 000000
TextContrastColorLight: 7F7F7F
ColorPickerRemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190 ColorPickerRemapIndices: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190

View File

@@ -31,6 +31,7 @@ LoadScreen: ModChooserLoadScreen
Image: ./mods/modchooser/chrome.png Image: ./mods/modchooser/chrome.png
ChromeMetrics: ChromeMetrics:
common|metrics.yaml
modchooser|metrics.yaml modchooser|metrics.yaml
Fonts: Fonts:

View File

@@ -1,37 +1,14 @@
# General dumping-ground for UI element sizes, etc. # General dumping-ground for UI element sizes, etc.
Metrics: Metrics:
ButtonDepth: 1
ButtonFont: Regular
ButtonTextColor: FFFFFF
ButtonTextColorDisabled: 808080
ButtonTextContrast: false
ButtonTextShadow: false
ButtonTextContrastColorDark: 000000
ButtonTextContrastColorLight: 7F7F7F
ButtonBaseLine: 0
CheckboxPressedState: false
HotkeyFont: Regular
HotkeyColor: FFFFFF
HotkeyColorDisabled: 808080
TextfieldFont: Regular
TextfieldColor: FFFFFF
TextfieldColorDisabled: 808080
TextfieldColorInvalid: FFC0C0
TextFont: Regular
TextColor: FFFFFF
TextContrast: false
TextShadow: false
TextContrastColorDark: 000000
TextContrastColorLight: 7F7F7F
ColorPickerRemapIndices: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
ColorPickerActorType: ^fact.colorpicker ColorPickerActorType: ^fact.colorpicker
ColorPickerRemapIndices: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
FactionSuffix-allies: allies FactionSuffix-allies: allies
FactionSuffix-england: allies FactionSuffix-england: allies
FactionSuffix-france: allies FactionSuffix-france: allies
FactionSuffix-germany: allies FactionSuffix-germany: allies
FactionSuffix-soviet: soviet
FactionSuffix-russia: soviet FactionSuffix-russia: soviet
FactionSuffix-soviet: soviet
FactionSuffix-ukraine: soviet FactionSuffix-ukraine: soviet
IncompatibleVersionColor: D3D3D3
IncompatibleProtectedGameColor: B22222 IncompatibleProtectedGameColor: B22222
IncompatibleVersionColor: D3D3D3

View File

@@ -1,27 +1,4 @@
# General dumping-ground for UI element sizes, etc. # General dumping-ground for UI element sizes, etc.
Metrics: Metrics:
ButtonDepth: 1
ButtonFont: Regular
ButtonTextColor: FFFFFF
ButtonTextColorDisabled: 808080
ButtonTextContrast: false
ButtonTextShadow: false
ButtonTextContrastColorDark: 000000
ButtonTextContrastColorLight: 7F7F7F
ButtonBaseLine: 0
CheckboxPressedState: false
HotkeyFont: Regular
HotkeyColor: FFFFFF
HotkeyColorDisabled: 808080
TextfieldFont: Regular
TextfieldColor: FFFFFF
TextfieldColorDisabled: 808080
TextfieldColorInvalid: FFC0C0
TextFont: Regular
TextColor: FFFFFF
TextContrast: false
TextShadow: false
TextContrastColorDark: 000000
TextContrastColorLight: 7F7F7F
ColorPickerRemapIndices: 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
ColorPickerActorType: ^mmch.colorpicker ColorPickerActorType: ^mmch.colorpicker
ColorPickerRemapIndices: 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31