mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 09:03:52 +00:00
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:
parent
a7e34ad102
commit
97da4c38f0
3 changed files with 35 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue