mirror of
https://git.wetfence.xyz/RandyTheSilly/Civic-Segments.git
synced 2026-09-04 10:07:13 -04:00
Make hot/empty cold/full colors configurable
This commit is contained in:
@@ -108,6 +108,22 @@ module.exports = [
|
||||
"label": "Bar midground color",
|
||||
"sunlight": false,
|
||||
},
|
||||
{
|
||||
"id": "custom_color_cool_bars",
|
||||
"type": "color",
|
||||
"messageKey": "CLAY_BAR_COOL_COLOR",
|
||||
"defaultValue": "0000aa",
|
||||
"label": "Bar cold/full color",
|
||||
"sunlight": false,
|
||||
},
|
||||
{
|
||||
"id": "custom_color_hot_bars",
|
||||
"type": "color",
|
||||
"messageKey": "CLAY_BAR_HOT_COLOR",
|
||||
"defaultValue": "ff0000",
|
||||
"label": "Bar hot/empty color",
|
||||
"sunlight": false,
|
||||
},
|
||||
{
|
||||
"id": "custom_color_mg_time",
|
||||
"type": "color",
|
||||
|
||||
@@ -11,6 +11,8 @@ module.exports = function (minified) {
|
||||
clayConfig.getItemById('custom_color_led').set('ff0000');
|
||||
clayConfig.getItemById('custom_color_bg').set('000000');
|
||||
clayConfig.getItemById('custom_color_mg_bars').set('555555');
|
||||
clayConfig.getItemById('custom_color_cool_bars').set('0000aa');
|
||||
clayConfig.getItemById('custom_color_hot_bars').set('ff0000');
|
||||
clayConfig.getItemById('custom_color_mg_time').set('555555');
|
||||
clayConfig.getItemById('custom_color_fg').set('ff0000');
|
||||
clayConfig.getItemById('custom_color_low_fuel').set('ffaa00');
|
||||
@@ -19,8 +21,11 @@ module.exports = function (minified) {
|
||||
clayConfig.getItemById('custom_color_led').set('ffffff');
|
||||
clayConfig.getItemById('custom_color_bg').set('0000ff');
|
||||
clayConfig.getItemById('custom_color_mg_bars').set('555555');
|
||||
clayConfig.getItemById('custom_color_cool_bars').set('0000aa');
|
||||
clayConfig.getItemById('custom_color_hot_bars').set('ff0000');
|
||||
clayConfig.getItemById('custom_color_mg_time').set('555555');
|
||||
clayConfig.getItemById('custom_color_fg').set('ffffff');
|
||||
clayConfig.getItemById('custom_color_low_fuel').set('ffaa00');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +36,8 @@ module.exports = function (minified) {
|
||||
clayConfig.getItemById('custom_color_led').show();
|
||||
clayConfig.getItemById('custom_color_bg').show();
|
||||
clayConfig.getItemById('custom_color_mg_bars').show();
|
||||
clayConfig.getItemById('custom_color_cool_bars').show();
|
||||
clayConfig.getItemById('custom_color_hot_bars').show();
|
||||
clayConfig.getItemById('custom_color_mg_time').show();
|
||||
clayConfig.getItemById('custom_color_fg').show();
|
||||
clayConfig.getItemById('custom_color_low_fuel').show();
|
||||
@@ -40,6 +47,8 @@ module.exports = function (minified) {
|
||||
clayConfig.getItemById('custom_color_led').hide();
|
||||
clayConfig.getItemById('custom_color_bg').hide();
|
||||
clayConfig.getItemById('custom_color_mg_bars').hide();
|
||||
clayConfig.getItemById('custom_color_cool_bars').hide();
|
||||
clayConfig.getItemById('custom_color_hot_bars').hide();
|
||||
clayConfig.getItemById('custom_color_mg_time').hide();
|
||||
clayConfig.getItemById('custom_color_fg').hide();
|
||||
clayConfig.getItemById('custom_color_low_fuel').hide();
|
||||
|
||||
Reference in New Issue
Block a user