Added: Tooltips; Changed: Cleaned up Button Layout, Made AnimationPreview's background match Control value;

This commit is contained in:
quinnvoker
2018-12-31 10:25:51 -08:00
parent 47a78bc9c1
commit 296e261135
4 changed files with 97 additions and 51 deletions
+3 -1
View File
@@ -29,6 +29,7 @@ namespace AnimationEditor
public Color HalfGridLineColor { get; set; }
public Color PixelGridLineColor { get; set; }
private Color background;
private Texture2D gridLine;
private bool hovering;
private bool dragging;
@@ -108,6 +109,7 @@ namespace AnimationEditor
FullGridLineColor = new Color(145, 135, 120);
HalfGridLineColor = new Color(120, 117, 115);
PixelGridLineColor = new Color(113, 110, 108);
background = new Color(BackColor.R, BackColor.G, BackColor.B);
CameraLocation = new Vector3();
ZoomLevel = 1;
}
@@ -291,7 +293,7 @@ namespace AnimationEditor
Matrix centerMatrix = Matrix.CreateTranslation(new Vector3(centerPoint, 0));
Matrix transformMatrix = cameraMatrix * zoomMatrix * centerMatrix;
Editor.graphics.Clear(Color.DimGray);
Editor.graphics.Clear(background);
Editor.spriteBatch.Begin();
DrawGrid();