add #include format
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "toast.hpp"
|
||||
|
||||
#include <format>
|
||||
|
||||
#include "log.hpp"
|
||||
#include <imgui/imgui.h>
|
||||
|
||||
|
||||
@@ -780,9 +780,11 @@ namespace anm2ed::imgui
|
||||
|
||||
for (auto& id : animation->layerOrder)
|
||||
{
|
||||
if (!animation->layerAnimations.contains(id)) continue;
|
||||
auto& layerAnimation = animation->layerAnimations[id];
|
||||
if (!layerAnimation.isVisible) continue;
|
||||
|
||||
if (!anm2.content.layers.contains(id)) continue;
|
||||
auto& layer = anm2.content.layers.at(id);
|
||||
|
||||
auto spritesheet = anm2.spritesheet_get(layer.spritesheetID);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "events.hpp"
|
||||
|
||||
#include <format>
|
||||
#include <ranges>
|
||||
|
||||
#include "log.hpp"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "layers.hpp"
|
||||
|
||||
#include <format>
|
||||
#include <ranges>
|
||||
|
||||
#include "log.hpp"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "nulls.hpp"
|
||||
|
||||
#include <format>
|
||||
#include <ranges>
|
||||
|
||||
#include "log.hpp"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "sounds.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <format>
|
||||
#include <ranges>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -595,7 +595,7 @@ namespace anm2ed::imgui
|
||||
mergePopup.close();
|
||||
};
|
||||
|
||||
auto optionsSize = child_size_get(5);
|
||||
auto optionsSize = child_size_get(6);
|
||||
if (ImGui::BeginChild("##Merge Spritesheets Options", optionsSize, ImGuiChildFlags_Borders))
|
||||
{
|
||||
ImGui::SeparatorText(localize.get(LABEL_REGION_PROPERTIES_ORIGIN));
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <format>
|
||||
|
||||
#include <imgui_internal.h>
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "welcome.hpp"
|
||||
|
||||
#include <format>
|
||||
#include <ranges>
|
||||
|
||||
#include "path_.hpp"
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#include "configure.hpp"
|
||||
|
||||
#include "imgui_.hpp"
|
||||
#include "log.hpp"
|
||||
#include "path_.hpp"
|
||||
#include "sdl.hpp"
|
||||
|
||||
using namespace anm2ed::types;
|
||||
|
||||
@@ -180,6 +183,7 @@ namespace anm2ed::imgui::wizard
|
||||
shortcut(manager.chords[SHORTCUT_CONFIRM]);
|
||||
if (ImGui::Button(localize.get(BASIC_SAVE), widgetSize))
|
||||
{
|
||||
auto settingsPath = util::sdl::preferences_directory_get() / "settings.ini";
|
||||
settings = temporary;
|
||||
|
||||
ImGui::GetIO().KeyRepeatDelay = settings.keyboardRepeatDelay;
|
||||
@@ -193,6 +197,8 @@ namespace anm2ed::imgui::wizard
|
||||
for (auto& document : manager.documents)
|
||||
document.snapshots.apply_limit();
|
||||
|
||||
settings.save(settingsPath, ImGui::SaveIniSettingsToMemory(nullptr));
|
||||
|
||||
isSet = true;
|
||||
}
|
||||
ImGui::SetItemTooltip("%s", localize.get(TOOLTIP_SETTINGS_SAVE));
|
||||
|
||||
Reference in New Issue
Block a user