Changed PP colour coding #683

This commit is contained in:
Daniël van Noord
2021-03-16 22:28:54 +01:00
parent e3d3f649c3
commit 6caee4d8fb
11 changed files with 106 additions and 158 deletions

View File

@@ -1,4 +1,3 @@
import CachePP from '../Cache/PP/PP';
import CheckNotificationPermissions from '../Config/CheckNotificationPermissions';
import { ToggleTimerBar, ToggleTimerBarPos } from '../Config/SpecificToggles';
import ToggleBotBar from '../Config/Toggles/ToggleBotBar';
@@ -68,7 +67,11 @@ const Config = {
SortBuildings: new SettingStandard(
'bool',
'BarsColors',
['Sort Buildings: Default', 'Sort Buildings: PP'],
[
'Sort Buildings: Default',
'Sort Buildings: PP of x1 purchase',
'Sort Buildings: PP of selected bulk mode',
],
'Sort the display of buildings in either default order or by PP',
false,
function () {
@@ -95,19 +98,6 @@ const Config = {
UpdateBuildings();
},
),
BulkBuildColor: new SettingStandard(
'bool',
'BarsColors',
[
'Bulk Building Colors (Single Building Color)',
'Bulk Building Colors (Calculated Bulk Color)',
],
'Color code bulk buildings based on single buildings color or calculated bulk value color',
false,
function () {
UpdateBuildings();
},
),
UpBarColor: new SettingStandard(
'bool',
'BarsColors',
@@ -127,17 +117,17 @@ const Config = {
'BarsColors',
{
Blue:
'Color Blue. Used to show better than best PP building, for Click Frenzy bar, and for various labels',
'Color Blue. Used to show upgrades better than best PP building, for Click Frenzy bar, and for various labels',
Green:
'Color Green. Used to show best PP building, for Blood Frenzy bar, and for various labels',
Yellow:
'Color Yellow. Used to show between best and worst PP buildings closer to best, for Frenzy bar, and for various labels',
'Color Yellow. Used to show buildings within the top 10 of PP, for Frenzy bar, and for various labels',
Orange:
'Color Orange. Used to show between best and worst PP buildings closer to worst, for Next Reindeer bar, and for various labels',
'Color Orange. Used to show buildings within the top 20 of PP, for Next Reindeer bar, and for various labels',
Red:
'Color Red. Used to show worst PP building, for Clot bar, and for various labels',
'Color Red. Used to show buildings within the top 30 of PP, for Clot bar, and for various labels',
Purple:
'Color Purple. Used to show worse than worst PP building, for Next Cookie bar, and for various labels',
'Color Purple. Used to show buildings outside of the top 30 of PP, for Next Cookie bar, and for various labels',
Gray:
'Color Gray. Used to show negative or infinity PP, and for Next Cookie/Next Reindeer bar',
Pink: 'Color Pink. Used for Dragonflight bar',
@@ -206,16 +196,6 @@ const Config = {
'How much time average Cookie Clicks should consider',
false,
),
ColorPPBulkMode: new SettingStandard(
'bool',
'Calculation',
['Color of PP (Compared to Single)', 'Color of PP (Compared to Bulk)'],
'Color PP-values based on comparison with single purchase or with selected bulk-buy mode',
false,
function () {
CachePP();
},
),
PPExcludeTop: new SettingStandard(
'bool',
'Calculation',

View File

@@ -5,18 +5,16 @@ const ConfigDefault = {
TimerBarPos: 0,
TimerBarOverlay: 2,
BuildColor: 1,
BulkBuildColor: 0,
UpBarColor: 1,
UpgradeBarFixedPos: 1,
CalcWrink: 0,
CPSMode: 1,
AvgCPSHist: 3,
AvgClicksHist: 0,
ColorPPBulkMode: 1,
PPExcludeTop: 0,
PPSecondsLowerLimit: 0,
PPOnlyConsiderBuyable: 0,
ToolWarnBon: 0,
ToolWarnBon: 1,
Title: 1,
GeneralSound: 1,
GCNotification: 0,