Refactor + render animation tweaks + updated frame properties + bug fixes

This commit is contained in:
2025-12-17 23:02:00 -05:00
parent b4b4fe3714
commit 119bbc4081
63 changed files with 1964 additions and 1701 deletions

View File

@@ -3,14 +3,13 @@
#include <format>
#include <vector>
#include "filesystem_.h"
#include "path_.h"
#include "strings.h"
#include "time_.h"
using namespace anm2ed::resource;
using namespace anm2ed::types;
using namespace anm2ed::util;
namespace filesystem = anm2ed::util::filesystem;
namespace anm2ed::imgui
{
@@ -88,7 +87,7 @@ namespace anm2ed::imgui
auto isRequested = i == manager.pendingSelected;
auto font = isDirty ? font::ITALICS : font::REGULAR;
auto filename = filesystem::path_to_utf8(document.filename_get());
auto filename = path::to_utf8(document.filename_get());
auto string =
isDirty ? std::vformat(localize.get(FORMAT_NOT_SAVED), std::make_format_args(filename)) : filename;
auto label = std::format("{}###Document{}", string, i);
@@ -105,7 +104,7 @@ namespace anm2ed::imgui
ImGui::EndTabItem();
}
auto pathUtf8 = filesystem::path_to_utf8(document.path);
auto pathUtf8 = path::to_utf8(document.path);
ImGui::SetItemTooltip("%s", pathUtf8.c_str());
ImGui::PopFont();
@@ -128,7 +127,7 @@ namespace anm2ed::imgui
{
auto& closeDocument = manager.documents[closeDocumentIndex];
auto filename = filesystem::path_to_utf8(closeDocument.filename_get());
auto filename = path::to_utf8(closeDocument.filename_get());
auto prompt = std::vformat(localize.get(LABEL_DOCUMENT_MODIFIED_PROMPT), std::make_format_args(filename));
ImGui::TextUnformatted(prompt.c_str());