edit autosave a bit

This commit is contained in:
lunarcleint
2024-03-22 17:16:07 -07:00
parent 64b7b6b297
commit 6ae7ed7aad
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -675,7 +675,7 @@ class Charter extends UIState {
if (autoSaveTimer < Options.charterAutoSaveWarningTime && !autoSaveNotif.cancelled && !autoSaveNotif.showedAnimation) {
if (Options.charterAutoSavesSeperateFolder)
__autoSaveLocation = DateTools.format(Date.now(), "%Y-%m-%d_%H-%M");
__autoSaveLocation = __diff.toLowerCase() + DateTools.format(Date.now(), "%m-%d_%H-%M");
autoSaveNotif.startAutoSave(autoSaveTimer,
!Options.charterAutoSavesSeperateFolder ? 'Saved chart at ${__diff.toLowerCase()}.json!' :
'Saved chart at $__autoSaveLocation.json!'
@@ -46,7 +46,8 @@ class CharterAutoSaveUI extends UISliceSprite {
icon.animation.curAnim.curFrame = 2;
(new FlxTimer()).start(1, (_) -> {disappearAnimation(true);});
autosavingText.text += "(Canceled!)"; cancelButton.visible = false;
for (member in [this, progressBar, progressBarBack, autosavingText]) member.color = 0xFFB94848;
for (member in [this, autosavingText]) member.color = 0xFFB62C2C;
for (member in [progressBar, progressBarBack]) member.color = 0xFFE53D3D;
}, 24, 14);
cancelButton.frames = Paths.getFrames("editors/ui/grayscale-button");
cancelButton.color = 0xFFAC3D3D; cancelButton.alpha = 0.2;