Auto spritesheet reload; operator symbols on Change All Frame Properties buttons

- Settings > File > Auto Spritesheet Reload (on by default, every 2 s):
  spritesheets whose files change on disk are reloaded as one undoable
  edit; ones with unsaved pixel edits are left alone, and the editor's own
  saves don't trigger a reload. Document::spritesheets_reload is shared
  with the Reload action.
- Change buttons read "= Adjust", "+ Add", "- Subtract", "× Multiply",
  "÷ Divide".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 20:55:05 -04:00
1 parent d8ab5ff018
commit 993957decf
10 files changed
+76 -25

No files matched your search

+3
View File
@@ -58,6 +58,7 @@ namespace anm2ed
std::unordered_map<int, uint64_t> spritesheetHashes{};
std::unordered_map<int, uint64_t> spritesheetSaveHashes{};
std::unordered_map<int, std::filesystem::path> texturePaths{};
std::unordered_map<int, std::filesystem::file_time_type> textureWriteTimes{};
std::unordered_map<int, std::filesystem::path> soundPaths{};
std::map<int, std::filesystem::path> shaderVertexPaths{};
std::map<int, std::filesystem::path> shaderFragmentPaths{};
@@ -144,6 +145,8 @@ namespace anm2ed
bool spritesheet_is_dirty(int);
bool spritesheet_any_dirty();
void spritesheet_hashes_sync();
std::set<int> spritesheets_changed_get();
void spritesheets_reload(const std::set<int>&);
Reference reference_get() const;
void reference_set(Reference);
std::set<Reference> selected_get(SelectionKind) const;