Refactor + render animation tweaks + updated frame properties + bug fixes
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user