Merge pull request #860 from tsr488/shiny
Fix Pop All Normal wrinkler tooltip
This commit is contained in:
2
dist/CookieMonsterDev.js
vendored
2
dist/CookieMonsterDev.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonsterDev.js.map
vendored
2
dist/CookieMonsterDev.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -18,7 +18,7 @@ export default function CreateWrinklerButtons() {
|
|||||||
};
|
};
|
||||||
popAllA.onmouseover = function () {
|
popAllA.onmouseover = function () {
|
||||||
Game.tooltip.dynamic = 1;
|
Game.tooltip.dynamic = 1;
|
||||||
Game.tooltip.draw(this, () => CreateTooltip('wb', 'PopAll'), 'this');
|
Game.tooltip.draw(this, () => CreateTooltip('wb', 'PopAllNormal'), 'this');
|
||||||
Game.tooltip.wobble();
|
Game.tooltip.wobble();
|
||||||
};
|
};
|
||||||
l('sectionLeftExtra').children[0].append(popAllA);
|
l('sectionLeftExtra').children[0].append(popAllA);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { CacheWrinklersFattest, CacheWrinklersTotal } from '../../../Cache/VariablesAndData';
|
import { CacheWrinklersFattest, CacheWrinklersNormal } from '../../../Cache/VariablesAndData';
|
||||||
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
import Beautify from '../../BeautifyAndFormatting/Beautify';
|
||||||
import { TooltipName } from '../../VariablesAndData';
|
import { TooltipName } from '../../VariablesAndData';
|
||||||
import * as Create from '../CreateTooltip';
|
import * as Create from '../CreateTooltip';
|
||||||
@@ -13,8 +13,8 @@ export default function WrinklerButton() {
|
|||||||
|
|
||||||
const WrinklerReward = document.createElement('div');
|
const WrinklerReward = document.createElement('div');
|
||||||
WrinklerReward.id = 'CMWrinklerReward';
|
WrinklerReward.id = 'CMWrinklerReward';
|
||||||
if (TooltipName === 'PopAll') {
|
if (TooltipName === 'PopAllNormal') {
|
||||||
WrinklerReward.textContent = Beautify(CacheWrinklersTotal);
|
WrinklerReward.textContent = Beautify(CacheWrinklersNormal);
|
||||||
} else if (TooltipName === 'PopFattest') {
|
} else if (TooltipName === 'PopFattest') {
|
||||||
WrinklerReward.textContent = Beautify(CacheWrinklersFattest[0]);
|
WrinklerReward.textContent = Beautify(CacheWrinklersFattest[0]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user