Update beta JS with 1 fix

This commit is contained in:
Aktanusa
2015-12-26 21:30:52 -05:00
parent aeee5a2e9c
commit 47437ce496

View File

@@ -755,15 +755,6 @@ CM.Disp.UpdateTimerBar = function() {
} }
CM.Disp.UpdateBotTimerBarDisplay = function() { CM.Disp.UpdateBotTimerBarDisplay = function() {
if (Game.OnAscend) {
l('game').style.bottom = '0px';
CM.Disp.BotBar.style.display = 'none';
CM.Disp.TimerBar.style.display = 'none';
CM.Disp.GCTimer.style.display = 'none';
}
else {
CM.Disp.BotBar.style.display = '';
CM.Disp.TimerBar.style.display = '';
if (CM.Config.BotBar == 1 && CM.Config.TimerBar == 1 && CM.Config.TimerBarPos == 1) { if (CM.Config.BotBar == 1 && CM.Config.TimerBar == 1 && CM.Config.TimerBarPos == 1) {
CM.Disp.BotBar.style.bottom = '48px'; CM.Disp.BotBar.style.bottom = '48px';
l('game').style.bottom = '104px'; l('game').style.bottom = '104px';
@@ -778,7 +769,6 @@ CM.Disp.UpdateBotTimerBarDisplay = function() {
else { // No bars else { // No bars
l('game').style.bottom = '0px'; l('game').style.bottom = '0px';
} }
}
if (CM.Config.TimerBar == 1 && CM.Config.TimerBarPos == 0) { if (CM.Config.TimerBar == 1 && CM.Config.TimerBarPos == 0) {
l('sectionLeft').style.top = '48px'; l('sectionLeft').style.top = '48px';
@@ -1910,6 +1900,20 @@ CM.Disp.UpdateWrinklerTooltip = function() {
} }
} }
CM.Disp.UpdateAscendState = function() {
if (Game.OnAscend) {
l('game').style.bottom = '0px';
if (CM.Config.BotBar == 1) CM.Disp.BotBar.style.display = 'none';
if (CM.Config.TimerBar == 1) CM.Disp.TimerBar.style.display = 'none';
}
else {
CM.Disp.ToggleBotBar();
CM.Disp.ToggleTimerBar();
}
CM.Disp.UpdateBackground();
}
CM.Disp.ToggleSayTime = function() { CM.Disp.ToggleSayTime = function() {
if (CM.Config.SayTime == 1) { if (CM.Config.SayTime == 1) {
Game.sayTime = CM.Disp.sayTime; Game.sayTime = CM.Disp.sayTime;
@@ -2029,7 +2033,7 @@ CM.ReplaceNative = function() {
CM.Loop = function() { CM.Loop = function() {
if (CM.Disp.lastAscendState != Game.OnAscend) { if (CM.Disp.lastAscendState != Game.OnAscend) {
CM.Disp.lastAscendState = Game.OnAscend; CM.Disp.lastAscendState = Game.OnAscend;
CM.Disp.UpdateBotTimerBarDisplay(); CM.Disp.UpdateAscendState();
} }
if (!Game.OnAscend && Game.AscendTimer == 0) { if (!Game.OnAscend && Game.AscendTimer == 0) {
if (CM.Sim.DoSims) { if (CM.Sim.DoSims) {
@@ -2058,15 +2062,15 @@ CM.Loop = function() {
CM.Disp.CheckWrinklerTooltip(); CM.Disp.CheckWrinklerTooltip();
CM.Disp.UpdateWrinklerTooltip(); CM.Disp.UpdateWrinklerTooltip();
// Check Golden Cookies
CM.Disp.CheckGoldenCookie();
// Update Title // Update Title
CM.Disp.UpdateTitle(); CM.Disp.UpdateTitle();
// Change menu refresh interval // Change menu refresh interval
CM.Disp.RefreshMenu(); CM.Disp.RefreshMenu();
} }
// Check Golden Cookies
CM.Disp.CheckGoldenCookie();
} }
CM.Init = function() { CM.Init = function() {