Skip to content

Commit

Permalink
scale info
Browse files Browse the repository at this point in the history
  • Loading branch information
lastbattle committed Jul 13, 2020
1 parent 213d2be commit 688a1e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions HaCreator/MapSimulator/MapObjects/FieldObject/BackgroundItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ namespace HaCreator.MapSimulator.Objects.FieldObject
{
public class BackgroundItem : BaseDXDrawableItem
{
private int rx;
private int ry;
private int cx;
private int cy;
private readonly int rx;
private readonly int ry;
private readonly int cx;
private readonly int cy;
private BackgroundType type;
private int a;
private readonly int a;
private Color color;
private bool front;
private int screenMode;
private readonly bool front;
private readonly int screenMode;

private double bgMoveShiftX = 0;
private double bgMoveShiftY = 0;
Expand Down
6 changes: 3 additions & 3 deletions HaRepacker/GUI/Panels/ImageAnimationPreviewWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ protected override void Draw(GameTime gameTime)
if (dxDrawableItem.LastFrameDrawn != null)
{
IDXObject lastFrameDrawn = dxDrawableItem.LastFrameDrawn;
string imageRenderInfoText = string.Format("[Origin: x = {0}, y = {1}]{5}[Dimension: W = {2}, H = {3}]{6}[Delay: {4}]",
lastFrameDrawn.X, lastFrameDrawn.Y, lastFrameDrawn.Width, lastFrameDrawn.Height, lastFrameDrawn.Delay,
Environment.NewLine, Environment.NewLine);
string imageRenderInfoText = string.Format("[Origin: x = {0}, y = {1}]{6}[Dimension: W = {2}, H = {3}]{7}[Delay: {4}]{8}[Scale: {5}x]",
lastFrameDrawn.X, lastFrameDrawn.Y, lastFrameDrawn.Width, lastFrameDrawn.Height, lastFrameDrawn.Delay, Math.Round(renderAnimationScaling, 2),
Environment.NewLine, Environment.NewLine, Environment.NewLine);

spriteBatch.DrawString(font_DebugValues, imageRenderInfoText, new Vector2((RENDER_WIDTH /2) - 100, RENDER_HEIGHT - 100), Color.White);
}
Expand Down

0 comments on commit 688a1e0

Please sign in to comment.