Skip to content

Commit

Permalink
Set default animation frame delay to 120ms, #301
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagamia committed Dec 30, 2024
1 parent 95380c5 commit 4b1f8b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WzComparerR2.Common/Animation/Frame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static Frame CreateFromNode(Wz_Node frameNode, GraphicsDevice graphicsDev

if (frame.Delay == 0)
{
frame.Delay = 100;//给予默认delay
frame.Delay = 120;//给予默认delay
}
return frame;
}
Expand Down
2 changes: 1 addition & 1 deletion WzComparerR2.Common/Gif.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public static GifFrame CreateFrameFromNode(Wz_Node frameNode, GlobalFindNodeFunc
}
if (gifFrame.Delay == 0)
{
gifFrame.Delay = 100;//给予默认delay
gifFrame.Delay = 120;//给予默认delay
}
return gifFrame;
}
Expand Down
2 changes: 1 addition & 1 deletion WzComparerR2.MapRender/ResourceLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ private Frame LoadFrame(Wz_Node node)
Texture = atlas.Texture,
AtlasRect = atlas.SrcRect,
Z = node.Nodes["z"].GetValueEx(0),
Delay = node.Nodes["delay"].GetValueEx(100),
Delay = node.Nodes["delay"].GetValueEx(120),
Blend = node.Nodes["blend"].GetValueEx(0) != 0,
Origin = (node.Nodes["origin"]?.Value as Wz_Vector)?.ToPoint() ?? Point.Zero
};
Expand Down

0 comments on commit 4b1f8b9

Please sign in to comment.