feat(editor): auto-save settings UI, multi-tile zone.json, toast notify

- Auto-save toast notification when auto-save fires
- Edit > Auto-Save Settings: enable/disable toggle, interval slider
  (60-900s), countdown timer display
- Zone manifest now scans output directory for all exported ADT tiles
  and includes them in zone.json (adjacent tiles no longer orphaned)
- Auto-save interval and enabled state exposed via EditorApp accessors
This commit is contained in:
Kelsi 2026-05-05 13:58:07 -07:00
parent a7e34ad102
commit 97da4c38f0
3 changed files with 35 additions and 0 deletions

View file

@ -149,6 +149,11 @@ public:
void showToast(const std::string& msg, float duration = 3.0f);
const std::vector<Toast>& getToasts() const { return toasts_; }
const std::vector<RecentZone>& getRecentZones() const { return recentZones_; }
bool isAutoSaveEnabled() const { return autoSaveEnabled_; }
void setAutoSaveEnabled(bool v) { autoSaveEnabled_ = v; }
float getAutoSaveInterval() const { return autoSaveInterval_; }
void setAutoSaveInterval(float s) { autoSaveInterval_ = std::clamp(s, 60.0f, 900.0f); }
float getAutoSaveTimeRemaining() const { return autoSaveInterval_ - autoSaveTimer_; }
void updateToasts(float dt);
private:
size_t lastObjCount_ = 0;