Onionskin, input rebinding, alt icons, settings refactor

This commit is contained in:
2025-09-08 20:18:28 -04:00
parent 4d098f8f1c
commit 9ad464a74a
14 changed files with 1087 additions and 723 deletions

View File

@@ -54,8 +54,6 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, spritesheet] : self->spritesheets)
{
if (id == ID_NONE) continue;
XMLElement* spritesheetElement;
// Spritesheet
@@ -72,8 +70,6 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, layer] : self->layers)
{
if (id == ID_NONE) continue;
XMLElement* layerElement;
// Layer
@@ -92,8 +88,6 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, null] : self->nulls)
{
if (id == ID_NONE) continue;
XMLElement* nullElement;
// Null
@@ -101,9 +95,9 @@ bool anm2_serialize(Anm2* self, const std::string& path)
nullElement->SetAttribute(ANM2_ATTRIBUTE_STRINGS[ANM2_ATTRIBUTE_NAME], null.name.c_str()); // Name
nullElement->SetAttribute(ANM2_ATTRIBUTE_STRINGS[ANM2_ATTRIBUTE_ID], id); // ID
// special case; only serialize if this is true
if (null.isShowRect)
nullElement->SetAttribute(ANM2_ATTRIBUTE_STRINGS[ANM2_ATTRIBUTE_SHOW_RECT], null.isShowRect); // ShowRect
nullsElement->InsertEndChild(nullElement);
}
@@ -114,8 +108,6 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, event] : self->events)
{
if (id == ID_NONE) continue;
XMLElement* eventElement;
// Event
@@ -137,8 +129,6 @@ bool anm2_serialize(Anm2* self, const std::string& path)
for (auto& [id, animation] : self->animations)
{
if (id == ID_NONE) continue;
XMLElement* animationElement;
XMLElement* rootAnimationElement;
XMLElement* layerAnimationsElement;