Fixed warning tooltips not disappearing (#344)
This commit is contained in:
@@ -2762,10 +2762,9 @@ CM.Disp.UpdateTooltip = function() {
|
|||||||
l('CMDispTooltipWarnLuckyFrenzyText').textContent = Beautify(limitLuckyFrenzy - amount) + ' (' + CM.Disp.FormatTime((limitLuckyFrenzy - amount) / CM.Disp.GetCPS()) + ')';
|
l('CMDispTooltipWarnLuckyFrenzyText').textContent = Beautify(limitLuckyFrenzy - amount) + ' (' + CM.Disp.FormatTime((limitLuckyFrenzy - amount) / CM.Disp.GetCPS()) + ')';
|
||||||
l('CMDispTooltipWarnLucky').style.display = 'none';
|
l('CMDispTooltipWarnLucky').style.display = 'none';
|
||||||
}
|
}
|
||||||
else {
|
} else {
|
||||||
l('CMDispTooltipWarnLucky').style.display = 'none';
|
l('CMDispTooltipWarnLucky').style.display = 'none';
|
||||||
l('CMDispTooltipWarnLuckyFrenzy').style.display = 'none';
|
l('CMDispTooltipWarnLuckyFrenzy').style.display = 'none';
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -2786,6 +2785,8 @@ CM.Disp.UpdateTooltip = function() {
|
|||||||
if ((amount < limitConjure) && (CM.Disp.tooltipType != 'b' || Game.buyMode == 1)) {
|
if ((amount < limitConjure) && (CM.Disp.tooltipType != 'b' || Game.buyMode == 1)) {
|
||||||
l('CMDispTooltipWarnConjure').style.display = '';
|
l('CMDispTooltipWarnConjure').style.display = '';
|
||||||
l('CMDispTooltipWarnConjureText').textContent = Beautify(limitConjure - amount) + ' (' + CM.Disp.FormatTime((limitConjure - amount) / CM.Disp.GetCPS()) + ')';
|
l('CMDispTooltipWarnConjureText').textContent = Beautify(limitConjure - amount) + ' (' + CM.Disp.FormatTime((limitConjure - amount) / CM.Disp.GetCPS()) + ')';
|
||||||
|
} else {
|
||||||
|
l('CMDispTooltipWarnConjure').style.display = 'none';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -2090,10 +2090,9 @@ CM.Disp.UpdateTooltip = function() {
|
|||||||
l('CMDispTooltipWarnLuckyFrenzyText').textContent = Beautify(limitLuckyFrenzy - amount) + ' (' + CM.Disp.FormatTime((limitLuckyFrenzy - amount) / CM.Disp.GetCPS()) + ')';
|
l('CMDispTooltipWarnLuckyFrenzyText').textContent = Beautify(limitLuckyFrenzy - amount) + ' (' + CM.Disp.FormatTime((limitLuckyFrenzy - amount) / CM.Disp.GetCPS()) + ')';
|
||||||
l('CMDispTooltipWarnLucky').style.display = 'none';
|
l('CMDispTooltipWarnLucky').style.display = 'none';
|
||||||
}
|
}
|
||||||
else {
|
} else {
|
||||||
l('CMDispTooltipWarnLucky').style.display = 'none';
|
l('CMDispTooltipWarnLucky').style.display = 'none';
|
||||||
l('CMDispTooltipWarnLuckyFrenzy').style.display = 'none';
|
l('CMDispTooltipWarnLuckyFrenzy').style.display = 'none';
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -2114,6 +2113,8 @@ CM.Disp.UpdateTooltip = function() {
|
|||||||
if ((amount < limitConjure) && (CM.Disp.tooltipType != 'b' || Game.buyMode == 1)) {
|
if ((amount < limitConjure) && (CM.Disp.tooltipType != 'b' || Game.buyMode == 1)) {
|
||||||
l('CMDispTooltipWarnConjure').style.display = '';
|
l('CMDispTooltipWarnConjure').style.display = '';
|
||||||
l('CMDispTooltipWarnConjureText').textContent = Beautify(limitConjure - amount) + ' (' + CM.Disp.FormatTime((limitConjure - amount) / CM.Disp.GetCPS()) + ')';
|
l('CMDispTooltipWarnConjureText').textContent = Beautify(limitConjure - amount) + ' (' + CM.Disp.FormatTime((limitConjure - amount) / CM.Disp.GetCPS()) + ')';
|
||||||
|
} else {
|
||||||
|
l('CMDispTooltipWarnConjure').style.display = 'none';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user