Add missed GC clicks stat with preference, create a section header for misc stats
This commit is contained in:
11
src/Disp.js
11
src/Disp.js
@@ -872,6 +872,7 @@ CM.Disp.AddMenuPref = function(title) {
|
||||
|
||||
frag.appendChild(header('Statistics'));
|
||||
frag.appendChild(listing('Stats'));
|
||||
frag.appendChild(listing('MissedGCs'));
|
||||
frag.appendChild(listing('UpStats'));
|
||||
frag.appendChild(listing('SayTime'));
|
||||
|
||||
@@ -1199,6 +1200,16 @@ CM.Disp.AddMenuStats = function(title) {
|
||||
choEggTotal *= 0.05;
|
||||
stats.appendChild(listing(choEggTitleFrag, document.createTextNode(Beautify(choEggTotal))));
|
||||
}
|
||||
|
||||
var miscStatsNeeded = CM.Config.MissedGCs; //meaningless for now, only matters if extra misc stats are added
|
||||
if (miscStatsNeeded) {
|
||||
stats.appendChild(header('Misc Stats', 'Misc'));
|
||||
if (CM.Config.StatsPref.Misc) {
|
||||
if (CM.Config.MissedGCs) {
|
||||
stats.appendChild(listing('Missed Golden Cookies', document.createTextNode(Beautify(Game.missedGoldenClicks))));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user