Fixed formatting and flickering of bottom bar #686
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js
vendored
2
dist/CookieMonster.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js.map
vendored
2
dist/CookieMonster.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -62,10 +62,10 @@ export default function CacheBuildingsPP() {
|
|||||||
let indexOfMin = 0;
|
let indexOfMin = 0;
|
||||||
if (CMOptions.PPOnlyConsiderBuyable) {
|
if (CMOptions.PPOnlyConsiderBuyable) {
|
||||||
while (CachePPArray[indexOfMin][1] > Game.cookies) {
|
while (CachePPArray[indexOfMin][1] > Game.cookies) {
|
||||||
if (CachePPArray.length === indexOfMin - 1) {
|
indexOfMin += 1;
|
||||||
|
if (CachePPArray.length === indexOfMin + 1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
indexOfMin += 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CacheMinPP = CachePPArray[CMOptions.PPExcludeTop][indexOfMin];
|
CacheMinPP = CachePPArray[CMOptions.PPExcludeTop][indexOfMin];
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export function UpdateBotBar() {
|
|||||||
].className = ColorTextPre + target[i].color;
|
].className = ColorTextPre + target[i].color;
|
||||||
l('CMBotBar').firstChild.firstChild.childNodes[2].childNodes[
|
l('CMBotBar').firstChild.firstChild.childNodes[2].childNodes[
|
||||||
count
|
count
|
||||||
].textContent = Beautify(target[i].pp, 2);
|
].textContent = Beautify(Math.round(target[i].pp), 2);
|
||||||
const timeColor = GetTimeColor(
|
const timeColor = GetTimeColor(
|
||||||
(Game.Objects[i].bulkPrice - (Game.cookies + GetWrinkConfigBank())) /
|
(Game.Objects[i].bulkPrice - (Game.cookies + GetWrinkConfigBank())) /
|
||||||
GetCPS(),
|
GetCPS(),
|
||||||
|
|||||||
@@ -86,8 +86,12 @@ export function CreateBotBarBuildingColumn(buildingName) {
|
|||||||
span.className = ColorTextPre + ColorBlue;
|
span.className = ColorTextPre + ColorBlue;
|
||||||
|
|
||||||
header.appendChild(document.createTextNode(')'));
|
header.appendChild(document.createTextNode(')'));
|
||||||
|
type.lastChild.style.paddingLeft = '8px';
|
||||||
bonus.appendChild(document.createElement('td'));
|
bonus.appendChild(document.createElement('td'));
|
||||||
|
bonus.lastChild.style.paddingLeft = '8px';
|
||||||
pp.appendChild(document.createElement('td'));
|
pp.appendChild(document.createElement('td'));
|
||||||
|
pp.lastChild.style.paddingLeft = '8px';
|
||||||
time.appendChild(document.createElement('td'));
|
time.appendChild(document.createElement('td'));
|
||||||
|
time.lastChild.style.paddingLeft = '2px';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user