Fixed formatting and flickering of bottom bar #686

This commit is contained in:
Daniël van Noord
2021-03-16 22:55:02 +01:00
parent 6caee4d8fb
commit f6b2e70f9b
6 changed files with 10 additions and 6 deletions

View File

@@ -96,7 +96,7 @@ export function UpdateBotBar() {
].className = ColorTextPre + target[i].color;
l('CMBotBar').firstChild.firstChild.childNodes[2].childNodes[
count
].textContent = Beautify(target[i].pp, 2);
].textContent = Beautify(Math.round(target[i].pp), 2);
const timeColor = GetTimeColor(
(Game.Objects[i].bulkPrice - (Game.cookies + GetWrinkConfigBank())) /
GetCPS(),

View File

@@ -86,8 +86,12 @@ export function CreateBotBarBuildingColumn(buildingName) {
span.className = ColorTextPre + ColorBlue;
header.appendChild(document.createTextNode(')'));
type.lastChild.style.paddingLeft = '8px';
bonus.appendChild(document.createElement('td'));
bonus.lastChild.style.paddingLeft = '8px';
pp.appendChild(document.createElement('td'));
pp.lastChild.style.paddingLeft = '8px';
time.appendChild(document.createElement('td'));
time.lastChild.style.paddingLeft = '2px';
}
}