Changed Done! for new timer format (Issue #85)

This commit is contained in:
Aktanusa committed 2016-05-02 22:58:44 -04:00
1 parent eea4656094
commit 76cc63e510
2 files changed
+10

No files matched your search

+5
View File
@@ -567,8 +567,13 @@ CM.Disp.GetTimeColor = function(price, bank, cps) {
var text;
if (bank >= price) {
color = CM.Disp.colorGreen;
if (CM.Config.TimeFormat) {
text = '00:00:00:00:00';
}
else {
text = 'Done!';
}
}
else {
var time = (price - bank) / cps;
text = CM.Disp.FormatTime(time);
+5
View File
@@ -60,8 +60,13 @@ CM.Disp.GetTimeColor = function(price, bank, cps) {
var text;
if (bank >= price) {
color = CM.Disp.colorGreen;
if (CM.Config.TimeFormat) {
text = '00:00:00:00:00';
}
else {
text = 'Done!';
}
}
else {
var time = (price - bank) / cps;
text = CM.Disp.FormatTime(time);