Added: Tooltips; Changed: Cleaned up Button Layout, Made AnimationPreview's background match Control value;
This commit is contained in:
@@ -29,6 +29,7 @@ namespace AnimationEditor
|
|||||||
public Color HalfGridLineColor { get; set; }
|
public Color HalfGridLineColor { get; set; }
|
||||||
public Color PixelGridLineColor { get; set; }
|
public Color PixelGridLineColor { get; set; }
|
||||||
|
|
||||||
|
private Color background;
|
||||||
private Texture2D gridLine;
|
private Texture2D gridLine;
|
||||||
private bool hovering;
|
private bool hovering;
|
||||||
private bool dragging;
|
private bool dragging;
|
||||||
@@ -108,6 +109,7 @@ namespace AnimationEditor
|
|||||||
FullGridLineColor = new Color(145, 135, 120);
|
FullGridLineColor = new Color(145, 135, 120);
|
||||||
HalfGridLineColor = new Color(120, 117, 115);
|
HalfGridLineColor = new Color(120, 117, 115);
|
||||||
PixelGridLineColor = new Color(113, 110, 108);
|
PixelGridLineColor = new Color(113, 110, 108);
|
||||||
|
background = new Color(BackColor.R, BackColor.G, BackColor.B);
|
||||||
CameraLocation = new Vector3();
|
CameraLocation = new Vector3();
|
||||||
ZoomLevel = 1;
|
ZoomLevel = 1;
|
||||||
}
|
}
|
||||||
@@ -291,7 +293,7 @@ namespace AnimationEditor
|
|||||||
Matrix centerMatrix = Matrix.CreateTranslation(new Vector3(centerPoint, 0));
|
Matrix centerMatrix = Matrix.CreateTranslation(new Vector3(centerPoint, 0));
|
||||||
Matrix transformMatrix = cameraMatrix * zoomMatrix * centerMatrix;
|
Matrix transformMatrix = cameraMatrix * zoomMatrix * centerMatrix;
|
||||||
|
|
||||||
Editor.graphics.Clear(Color.DimGray);
|
Editor.graphics.Clear(background);
|
||||||
|
|
||||||
Editor.spriteBatch.Begin();
|
Editor.spriteBatch.Begin();
|
||||||
DrawGrid();
|
DrawGrid();
|
||||||
|
|||||||
Generated
+68
-30
@@ -28,9 +28,10 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
this.loadSpriteSheetDialog = new System.Windows.Forms.OpenFileDialog();
|
this.loadSpriteSheetDialog = new System.Windows.Forms.OpenFileDialog();
|
||||||
this.loadSpriteMapDialog = new System.Windows.Forms.OpenFileDialog();
|
this.loadSpriteMapDialog = new System.Windows.Forms.OpenFileDialog();
|
||||||
this.spriteListBox = new System.Windows.Forms.ListBox();
|
this.spriteMapListBox = new System.Windows.Forms.ListBox();
|
||||||
this.frameListBox = new System.Windows.Forms.ListBox();
|
this.frameListBox = new System.Windows.Forms.ListBox();
|
||||||
this.addSpriteToFrameListButton = new System.Windows.Forms.Button();
|
this.addSpriteToFrameListButton = new System.Windows.Forms.Button();
|
||||||
this.frameTrackBar = new System.Windows.Forms.TrackBar();
|
this.frameTrackBar = new System.Windows.Forms.TrackBar();
|
||||||
@@ -93,6 +94,7 @@
|
|||||||
this.animationLabel = new System.Windows.Forms.Label();
|
this.animationLabel = new System.Windows.Forms.Label();
|
||||||
this.animationPreview = new AnimationEditor.AnimationPreview();
|
this.animationPreview = new AnimationEditor.AnimationPreview();
|
||||||
this.loadAnimationSetDialog = new System.Windows.Forms.OpenFileDialog();
|
this.loadAnimationSetDialog = new System.Windows.Forms.OpenFileDialog();
|
||||||
|
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.frameTrackBar)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.frameTrackBar)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.delayInputBox)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.delayInputBox)).BeginInit();
|
||||||
this.mainMenuStrip.SuspendLayout();
|
this.mainMenuStrip.SuspendLayout();
|
||||||
@@ -118,17 +120,18 @@
|
|||||||
this.loadSpriteMapDialog.FileName = "openFileDialog1";
|
this.loadSpriteMapDialog.FileName = "openFileDialog1";
|
||||||
this.loadSpriteMapDialog.Filter = "QUROGames SpriteMap|*smap";
|
this.loadSpriteMapDialog.Filter = "QUROGames SpriteMap|*smap";
|
||||||
//
|
//
|
||||||
// spriteListBox
|
// spriteMapListBox
|
||||||
//
|
//
|
||||||
this.spriteListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.spriteMapListBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)));
|
| System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.spriteListBox.BackColor = System.Drawing.SystemColors.Window;
|
this.spriteMapListBox.BackColor = System.Drawing.SystemColors.Window;
|
||||||
this.spriteListBox.FormattingEnabled = true;
|
this.spriteMapListBox.FormattingEnabled = true;
|
||||||
this.spriteListBox.Location = new System.Drawing.Point(5, 62);
|
this.spriteMapListBox.Location = new System.Drawing.Point(5, 62);
|
||||||
this.spriteListBox.Name = "spriteListBox";
|
this.spriteMapListBox.Name = "spriteMapListBox";
|
||||||
this.spriteListBox.Size = new System.Drawing.Size(119, 277);
|
this.spriteMapListBox.Size = new System.Drawing.Size(119, 277);
|
||||||
this.spriteListBox.TabIndex = 3;
|
this.spriteMapListBox.TabIndex = 3;
|
||||||
this.spriteListBox.SelectedIndexChanged += new System.EventHandler(this.spriteListBox_SelectedIndexChanged);
|
this.toolTip.SetToolTip(this.spriteMapListBox, "Available Sprites from loaded SpriteMap");
|
||||||
|
this.spriteMapListBox.SelectedIndexChanged += new System.EventHandler(this.spriteListBox_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// frameListBox
|
// frameListBox
|
||||||
//
|
//
|
||||||
@@ -143,6 +146,7 @@
|
|||||||
this.frameListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
|
this.frameListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
|
||||||
this.frameListBox.Size = new System.Drawing.Size(120, 160);
|
this.frameListBox.Size = new System.Drawing.Size(120, 160);
|
||||||
this.frameListBox.TabIndex = 4;
|
this.frameListBox.TabIndex = 4;
|
||||||
|
this.toolTip.SetToolTip(this.frameListBox, "Frames in Current Animation");
|
||||||
this.frameListBox.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.frameListBox_DrawItem);
|
this.frameListBox.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.frameListBox_DrawItem);
|
||||||
this.frameListBox.SelectedIndexChanged += new System.EventHandler(this.frameListBox_SelectedIndexChanged);
|
this.frameListBox.SelectedIndexChanged += new System.EventHandler(this.frameListBox_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
@@ -150,11 +154,12 @@
|
|||||||
//
|
//
|
||||||
this.addSpriteToFrameListButton.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
this.addSpriteToFrameListButton.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||||
this.addSpriteToFrameListButton.Enabled = false;
|
this.addSpriteToFrameListButton.Enabled = false;
|
||||||
this.addSpriteToFrameListButton.Location = new System.Drawing.Point(130, 130);
|
this.addSpriteToFrameListButton.Location = new System.Drawing.Point(130, 62);
|
||||||
this.addSpriteToFrameListButton.Name = "addSpriteToFrameListButton";
|
this.addSpriteToFrameListButton.Name = "addSpriteToFrameListButton";
|
||||||
this.addSpriteToFrameListButton.Size = new System.Drawing.Size(27, 23);
|
this.addSpriteToFrameListButton.Size = new System.Drawing.Size(27, 23);
|
||||||
this.addSpriteToFrameListButton.TabIndex = 5;
|
this.addSpriteToFrameListButton.TabIndex = 5;
|
||||||
this.addSpriteToFrameListButton.Text = "→";
|
this.addSpriteToFrameListButton.Text = "→";
|
||||||
|
this.toolTip.SetToolTip(this.addSpriteToFrameListButton, "Add selected Sprite from SpriteMap as new Frame");
|
||||||
this.addSpriteToFrameListButton.UseVisualStyleBackColor = true;
|
this.addSpriteToFrameListButton.UseVisualStyleBackColor = true;
|
||||||
this.addSpriteToFrameListButton.Click += new System.EventHandler(this.addSpriteToFrameListButton_Click);
|
this.addSpriteToFrameListButton.Click += new System.EventHandler(this.addSpriteToFrameListButton_Click);
|
||||||
//
|
//
|
||||||
@@ -175,6 +180,8 @@
|
|||||||
this.delayInputBox.Name = "delayInputBox";
|
this.delayInputBox.Name = "delayInputBox";
|
||||||
this.delayInputBox.Size = new System.Drawing.Size(83, 20);
|
this.delayInputBox.Size = new System.Drawing.Size(83, 20);
|
||||||
this.delayInputBox.TabIndex = 8;
|
this.delayInputBox.TabIndex = 8;
|
||||||
|
this.toolTip.SetToolTip(this.delayInputBox, "Delay of selected Frames\r\nDelay determines how many additional \"game frames\" the " +
|
||||||
|
"current Frame will be shown for\r\nAssumes the game runs at 60fps");
|
||||||
this.delayInputBox.ValueChanged += new System.EventHandler(this.delayInputBox_ValueChanged);
|
this.delayInputBox.ValueChanged += new System.EventHandler(this.delayInputBox_ValueChanged);
|
||||||
//
|
//
|
||||||
// animationBox
|
// animationBox
|
||||||
@@ -182,9 +189,11 @@
|
|||||||
this.animationBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.animationBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.animationBox.FormattingEnabled = true;
|
this.animationBox.FormattingEnabled = true;
|
||||||
this.animationBox.Location = new System.Drawing.Point(72, 0);
|
this.animationBox.Location = new System.Drawing.Point(72, 0);
|
||||||
|
this.animationBox.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
|
||||||
this.animationBox.Name = "animationBox";
|
this.animationBox.Name = "animationBox";
|
||||||
this.animationBox.Size = new System.Drawing.Size(121, 21);
|
this.animationBox.Size = new System.Drawing.Size(121, 21);
|
||||||
this.animationBox.TabIndex = 9;
|
this.animationBox.TabIndex = 9;
|
||||||
|
this.toolTip.SetToolTip(this.animationBox, "Currently viewed Animation");
|
||||||
this.animationBox.SelectedIndexChanged += new System.EventHandler(this.animationBox_SelectedIndexChanged);
|
this.animationBox.SelectedIndexChanged += new System.EventHandler(this.animationBox_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// animationNameBox
|
// animationNameBox
|
||||||
@@ -193,6 +202,7 @@
|
|||||||
this.animationNameBox.Name = "animationNameBox";
|
this.animationNameBox.Name = "animationNameBox";
|
||||||
this.animationNameBox.Size = new System.Drawing.Size(100, 20);
|
this.animationNameBox.Size = new System.Drawing.Size(100, 20);
|
||||||
this.animationNameBox.TabIndex = 10;
|
this.animationNameBox.TabIndex = 10;
|
||||||
|
this.toolTip.SetToolTip(this.animationNameBox, "Name of current Animation");
|
||||||
this.animationNameBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.animationNameBox_KeyPress);
|
this.animationNameBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.animationNameBox_KeyPress);
|
||||||
this.animationNameBox.Leave += new System.EventHandler(this.animationNameBox_Leave);
|
this.animationNameBox.Leave += new System.EventHandler(this.animationNameBox_Leave);
|
||||||
//
|
//
|
||||||
@@ -205,37 +215,44 @@
|
|||||||
this.playAnimationButton.Size = new System.Drawing.Size(75, 23);
|
this.playAnimationButton.Size = new System.Drawing.Size(75, 23);
|
||||||
this.playAnimationButton.TabIndex = 11;
|
this.playAnimationButton.TabIndex = 11;
|
||||||
this.playAnimationButton.Text = "| | / ►";
|
this.playAnimationButton.Text = "| | / ►";
|
||||||
|
this.toolTip.SetToolTip(this.playAnimationButton, "Play/Pause Animation");
|
||||||
this.playAnimationButton.UseVisualStyleBackColor = true;
|
this.playAnimationButton.UseVisualStyleBackColor = true;
|
||||||
this.playAnimationButton.Click += new System.EventHandler(this.playAnimationButton_Click);
|
this.playAnimationButton.Click += new System.EventHandler(this.playAnimationButton_Click);
|
||||||
//
|
//
|
||||||
// removeFrameButton
|
// removeFrameButton
|
||||||
//
|
//
|
||||||
this.removeFrameButton.Location = new System.Drawing.Point(257, 18);
|
this.removeFrameButton.Location = new System.Drawing.Point(261, 18);
|
||||||
|
this.removeFrameButton.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||||
this.removeFrameButton.Name = "removeFrameButton";
|
this.removeFrameButton.Name = "removeFrameButton";
|
||||||
this.removeFrameButton.Size = new System.Drawing.Size(27, 23);
|
this.removeFrameButton.Size = new System.Drawing.Size(23, 23);
|
||||||
this.removeFrameButton.TabIndex = 12;
|
this.removeFrameButton.TabIndex = 12;
|
||||||
this.removeFrameButton.Text = "X";
|
this.removeFrameButton.Text = "X";
|
||||||
|
this.toolTip.SetToolTip(this.removeFrameButton, "Delete Frame");
|
||||||
this.removeFrameButton.UseVisualStyleBackColor = true;
|
this.removeFrameButton.UseVisualStyleBackColor = true;
|
||||||
this.removeFrameButton.Click += new System.EventHandler(this.removeFrameButton_Click);
|
this.removeFrameButton.Click += new System.EventHandler(this.removeFrameButton_Click);
|
||||||
//
|
//
|
||||||
// moveFrameUpButton
|
// moveFrameUpButton
|
||||||
//
|
//
|
||||||
this.moveFrameUpButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.moveFrameUpButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.moveFrameUpButton.Location = new System.Drawing.Point(226, 18);
|
this.moveFrameUpButton.Location = new System.Drawing.Point(238, 18);
|
||||||
|
this.moveFrameUpButton.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||||
this.moveFrameUpButton.Name = "moveFrameUpButton";
|
this.moveFrameUpButton.Name = "moveFrameUpButton";
|
||||||
this.moveFrameUpButton.Size = new System.Drawing.Size(27, 23);
|
this.moveFrameUpButton.Size = new System.Drawing.Size(23, 23);
|
||||||
this.moveFrameUpButton.TabIndex = 13;
|
this.moveFrameUpButton.TabIndex = 13;
|
||||||
this.moveFrameUpButton.Text = "↑";
|
this.moveFrameUpButton.Text = "↑";
|
||||||
|
this.toolTip.SetToolTip(this.moveFrameUpButton, "Move Frame Up");
|
||||||
this.moveFrameUpButton.UseVisualStyleBackColor = true;
|
this.moveFrameUpButton.UseVisualStyleBackColor = true;
|
||||||
this.moveFrameUpButton.Click += new System.EventHandler(this.moveFrameUpButton_Click);
|
this.moveFrameUpButton.Click += new System.EventHandler(this.moveFrameUpButton_Click);
|
||||||
//
|
//
|
||||||
// moveFrameDownButton
|
// moveFrameDownButton
|
||||||
//
|
//
|
||||||
this.moveFrameDownButton.Location = new System.Drawing.Point(194, 18);
|
this.moveFrameDownButton.Location = new System.Drawing.Point(215, 18);
|
||||||
|
this.moveFrameDownButton.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||||
this.moveFrameDownButton.Name = "moveFrameDownButton";
|
this.moveFrameDownButton.Name = "moveFrameDownButton";
|
||||||
this.moveFrameDownButton.Size = new System.Drawing.Size(27, 23);
|
this.moveFrameDownButton.Size = new System.Drawing.Size(23, 23);
|
||||||
this.moveFrameDownButton.TabIndex = 14;
|
this.moveFrameDownButton.TabIndex = 14;
|
||||||
this.moveFrameDownButton.Text = "↓";
|
this.moveFrameDownButton.Text = "↓";
|
||||||
|
this.toolTip.SetToolTip(this.moveFrameDownButton, "Move Frame Down");
|
||||||
this.moveFrameDownButton.UseVisualStyleBackColor = true;
|
this.moveFrameDownButton.UseVisualStyleBackColor = true;
|
||||||
this.moveFrameDownButton.Click += new System.EventHandler(this.moveFrameDownButton_Click);
|
this.moveFrameDownButton.Click += new System.EventHandler(this.moveFrameDownButton_Click);
|
||||||
//
|
//
|
||||||
@@ -366,6 +383,7 @@
|
|||||||
this.animationLoopCheckBox.Size = new System.Drawing.Size(50, 17);
|
this.animationLoopCheckBox.Size = new System.Drawing.Size(50, 17);
|
||||||
this.animationLoopCheckBox.TabIndex = 16;
|
this.animationLoopCheckBox.TabIndex = 16;
|
||||||
this.animationLoopCheckBox.Text = "Loop";
|
this.animationLoopCheckBox.Text = "Loop";
|
||||||
|
this.toolTip.SetToolTip(this.animationLoopCheckBox, "Does this Animation Loop?");
|
||||||
this.animationLoopCheckBox.UseVisualStyleBackColor = true;
|
this.animationLoopCheckBox.UseVisualStyleBackColor = true;
|
||||||
this.animationLoopCheckBox.CheckedChanged += new System.EventHandler(this.animationLoopCheckBox_CheckedChanged);
|
this.animationLoopCheckBox.CheckedChanged += new System.EventHandler(this.animationLoopCheckBox_CheckedChanged);
|
||||||
//
|
//
|
||||||
@@ -388,21 +406,25 @@
|
|||||||
// addAnimationButton
|
// addAnimationButton
|
||||||
//
|
//
|
||||||
this.addAnimationButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.addAnimationButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.addAnimationButton.Location = new System.Drawing.Point(200, -1);
|
this.addAnimationButton.Location = new System.Drawing.Point(194, -1);
|
||||||
|
this.addAnimationButton.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||||
this.addAnimationButton.Name = "addAnimationButton";
|
this.addAnimationButton.Name = "addAnimationButton";
|
||||||
this.addAnimationButton.Size = new System.Drawing.Size(27, 23);
|
this.addAnimationButton.Size = new System.Drawing.Size(27, 23);
|
||||||
this.addAnimationButton.TabIndex = 18;
|
this.addAnimationButton.TabIndex = 18;
|
||||||
this.addAnimationButton.Text = "+";
|
this.addAnimationButton.Text = "+";
|
||||||
|
this.toolTip.SetToolTip(this.addAnimationButton, "Add new Animation");
|
||||||
this.addAnimationButton.UseVisualStyleBackColor = true;
|
this.addAnimationButton.UseVisualStyleBackColor = true;
|
||||||
this.addAnimationButton.Click += new System.EventHandler(this.addAnimationButton_Click);
|
this.addAnimationButton.Click += new System.EventHandler(this.addAnimationButton_Click);
|
||||||
//
|
//
|
||||||
// removeAnimationButton
|
// removeAnimationButton
|
||||||
//
|
//
|
||||||
this.removeAnimationButton.Location = new System.Drawing.Point(233, -1);
|
this.removeAnimationButton.Location = new System.Drawing.Point(221, -1);
|
||||||
|
this.removeAnimationButton.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3);
|
||||||
this.removeAnimationButton.Name = "removeAnimationButton";
|
this.removeAnimationButton.Name = "removeAnimationButton";
|
||||||
this.removeAnimationButton.Size = new System.Drawing.Size(27, 23);
|
this.removeAnimationButton.Size = new System.Drawing.Size(27, 23);
|
||||||
this.removeAnimationButton.TabIndex = 17;
|
this.removeAnimationButton.TabIndex = 17;
|
||||||
this.removeAnimationButton.Text = "-";
|
this.removeAnimationButton.Text = "-";
|
||||||
|
this.toolTip.SetToolTip(this.removeAnimationButton, "Delete current Animation");
|
||||||
this.removeAnimationButton.UseVisualStyleBackColor = true;
|
this.removeAnimationButton.UseVisualStyleBackColor = true;
|
||||||
this.removeAnimationButton.Click += new System.EventHandler(this.removeAnimationButton_Click);
|
this.removeAnimationButton.Click += new System.EventHandler(this.removeAnimationButton_Click);
|
||||||
//
|
//
|
||||||
@@ -421,7 +443,7 @@
|
|||||||
this.frameEditorPanel.Controls.Add(this.frameBoxLabel);
|
this.frameEditorPanel.Controls.Add(this.frameBoxLabel);
|
||||||
this.frameEditorPanel.Controls.Add(this.spriteBoxLabel);
|
this.frameEditorPanel.Controls.Add(this.spriteBoxLabel);
|
||||||
this.frameEditorPanel.Controls.Add(this.frameListBox);
|
this.frameEditorPanel.Controls.Add(this.frameListBox);
|
||||||
this.frameEditorPanel.Controls.Add(this.spriteListBox);
|
this.frameEditorPanel.Controls.Add(this.spriteMapListBox);
|
||||||
this.frameEditorPanel.Controls.Add(this.addSpriteToFrameListButton);
|
this.frameEditorPanel.Controls.Add(this.addSpriteToFrameListButton);
|
||||||
this.frameEditorPanel.Controls.Add(this.spritePreview);
|
this.frameEditorPanel.Controls.Add(this.spritePreview);
|
||||||
this.frameEditorPanel.Controls.Add(this.moveFrameDownButton);
|
this.frameEditorPanel.Controls.Add(this.moveFrameDownButton);
|
||||||
@@ -443,6 +465,7 @@
|
|||||||
this.frameNameBox.Name = "frameNameBox";
|
this.frameNameBox.Name = "frameNameBox";
|
||||||
this.frameNameBox.Size = new System.Drawing.Size(83, 20);
|
this.frameNameBox.Size = new System.Drawing.Size(83, 20);
|
||||||
this.frameNameBox.TabIndex = 25;
|
this.frameNameBox.TabIndex = 25;
|
||||||
|
this.toolTip.SetToolTip(this.frameNameBox, "Name of selected Sprite(s)");
|
||||||
this.frameNameBox.TextChanged += new System.EventHandler(this.frameNameBox_TextChanged);
|
this.frameNameBox.TextChanged += new System.EventHandler(this.frameNameBox_TextChanged);
|
||||||
this.frameNameBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.frameNameBox_KeyPress);
|
this.frameNameBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.frameNameBox_KeyPress);
|
||||||
this.frameNameBox.Leave += new System.EventHandler(this.frameNameBox_Leave);
|
this.frameNameBox.Leave += new System.EventHandler(this.frameNameBox_Leave);
|
||||||
@@ -523,6 +546,7 @@
|
|||||||
this.spriteYPosBox.Name = "spriteYPosBox";
|
this.spriteYPosBox.Name = "spriteYPosBox";
|
||||||
this.spriteYPosBox.Size = new System.Drawing.Size(43, 20);
|
this.spriteYPosBox.Size = new System.Drawing.Size(43, 20);
|
||||||
this.spriteYPosBox.TabIndex = 8;
|
this.spriteYPosBox.TabIndex = 8;
|
||||||
|
this.toolTip.SetToolTip(this.spriteYPosBox, "Y Offset of selected Sprite in current Frame");
|
||||||
this.spriteYPosBox.ValueChanged += new System.EventHandler(this.spriteYPosBox_ValueChanged);
|
this.spriteYPosBox.ValueChanged += new System.EventHandler(this.spriteYPosBox_ValueChanged);
|
||||||
//
|
//
|
||||||
// spriteXPosBox
|
// spriteXPosBox
|
||||||
@@ -542,6 +566,7 @@
|
|||||||
this.spriteXPosBox.Name = "spriteXPosBox";
|
this.spriteXPosBox.Name = "spriteXPosBox";
|
||||||
this.spriteXPosBox.Size = new System.Drawing.Size(43, 20);
|
this.spriteXPosBox.Size = new System.Drawing.Size(43, 20);
|
||||||
this.spriteXPosBox.TabIndex = 8;
|
this.spriteXPosBox.TabIndex = 8;
|
||||||
|
this.toolTip.SetToolTip(this.spriteXPosBox, "X Offset of selected Sprite in current Frame");
|
||||||
this.spriteXPosBox.ValueChanged += new System.EventHandler(this.spriteXPosBox_ValueChanged);
|
this.spriteXPosBox.ValueChanged += new System.EventHandler(this.spriteXPosBox_ValueChanged);
|
||||||
//
|
//
|
||||||
// removeSpriteButton
|
// removeSpriteButton
|
||||||
@@ -553,6 +578,7 @@
|
|||||||
this.removeSpriteButton.Size = new System.Drawing.Size(23, 23);
|
this.removeSpriteButton.Size = new System.Drawing.Size(23, 23);
|
||||||
this.removeSpriteButton.TabIndex = 26;
|
this.removeSpriteButton.TabIndex = 26;
|
||||||
this.removeSpriteButton.Text = "X";
|
this.removeSpriteButton.Text = "X";
|
||||||
|
this.toolTip.SetToolTip(this.removeSpriteButton, "Delete Sprite");
|
||||||
this.removeSpriteButton.UseVisualStyleBackColor = true;
|
this.removeSpriteButton.UseVisualStyleBackColor = true;
|
||||||
this.removeSpriteButton.Click += new System.EventHandler(this.removeSpriteButton_Click);
|
this.removeSpriteButton.Click += new System.EventHandler(this.removeSpriteButton_Click);
|
||||||
//
|
//
|
||||||
@@ -565,6 +591,7 @@
|
|||||||
this.moveSpriteUpButton.Size = new System.Drawing.Size(23, 23);
|
this.moveSpriteUpButton.Size = new System.Drawing.Size(23, 23);
|
||||||
this.moveSpriteUpButton.TabIndex = 26;
|
this.moveSpriteUpButton.TabIndex = 26;
|
||||||
this.moveSpriteUpButton.Text = "↑";
|
this.moveSpriteUpButton.Text = "↑";
|
||||||
|
this.toolTip.SetToolTip(this.moveSpriteUpButton, "Move Sprite Up");
|
||||||
this.moveSpriteUpButton.UseVisualStyleBackColor = true;
|
this.moveSpriteUpButton.UseVisualStyleBackColor = true;
|
||||||
this.moveSpriteUpButton.Click += new System.EventHandler(this.moveSpriteUpButton_Click);
|
this.moveSpriteUpButton.Click += new System.EventHandler(this.moveSpriteUpButton_Click);
|
||||||
//
|
//
|
||||||
@@ -577,6 +604,7 @@
|
|||||||
this.moveSpriteDownButton.Size = new System.Drawing.Size(23, 23);
|
this.moveSpriteDownButton.Size = new System.Drawing.Size(23, 23);
|
||||||
this.moveSpriteDownButton.TabIndex = 26;
|
this.moveSpriteDownButton.TabIndex = 26;
|
||||||
this.moveSpriteDownButton.Text = "↓";
|
this.moveSpriteDownButton.Text = "↓";
|
||||||
|
this.toolTip.SetToolTip(this.moveSpriteDownButton, "Move Sprite Down");
|
||||||
this.moveSpriteDownButton.UseVisualStyleBackColor = true;
|
this.moveSpriteDownButton.UseVisualStyleBackColor = true;
|
||||||
this.moveSpriteDownButton.Click += new System.EventHandler(this.moveSpriteDownButton_Click);
|
this.moveSpriteDownButton.Click += new System.EventHandler(this.moveSpriteDownButton_Click);
|
||||||
//
|
//
|
||||||
@@ -589,6 +617,7 @@
|
|||||||
this.frameSpriteListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
|
this.frameSpriteListBox.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended;
|
||||||
this.frameSpriteListBox.Size = new System.Drawing.Size(120, 56);
|
this.frameSpriteListBox.Size = new System.Drawing.Size(120, 56);
|
||||||
this.frameSpriteListBox.TabIndex = 22;
|
this.frameSpriteListBox.TabIndex = 22;
|
||||||
|
this.toolTip.SetToolTip(this.frameSpriteListBox, "Sprites shown in Current Frame");
|
||||||
this.frameSpriteListBox.SelectedIndexChanged += new System.EventHandler(this.frameSpriteListBox_SelectedIndexChanged);
|
this.frameSpriteListBox.SelectedIndexChanged += new System.EventHandler(this.frameSpriteListBox_SelectedIndexChanged);
|
||||||
//
|
//
|
||||||
// frameSpriteListLabel
|
// frameSpriteListLabel
|
||||||
@@ -606,12 +635,13 @@
|
|||||||
//
|
//
|
||||||
this.replaceSpriteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.replaceSpriteButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.replaceSpriteButton.Enabled = false;
|
this.replaceSpriteButton.Enabled = false;
|
||||||
this.replaceSpriteButton.Location = new System.Drawing.Point(1, 56);
|
this.replaceSpriteButton.Location = new System.Drawing.Point(1, 45);
|
||||||
this.replaceSpriteButton.Name = "replaceSpriteButton";
|
this.replaceSpriteButton.Name = "replaceSpriteButton";
|
||||||
this.replaceSpriteButton.Size = new System.Drawing.Size(27, 23);
|
this.replaceSpriteButton.Size = new System.Drawing.Size(27, 23);
|
||||||
this.replaceSpriteButton.TabIndex = 5;
|
this.replaceSpriteButton.TabIndex = 5;
|
||||||
this.replaceSpriteButton.Text = "@";
|
this.replaceSpriteButton.Text = "@";
|
||||||
this.replaceSpriteButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
this.replaceSpriteButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
this.toolTip.SetToolTip(this.replaceSpriteButton, "Replace selected Sprite in Frame with selected Sprite from SpriteMap");
|
||||||
this.replaceSpriteButton.UseVisualStyleBackColor = true;
|
this.replaceSpriteButton.UseVisualStyleBackColor = true;
|
||||||
this.replaceSpriteButton.Click += new System.EventHandler(this.replaceSpriteButton_Click);
|
this.replaceSpriteButton.Click += new System.EventHandler(this.replaceSpriteButton_Click);
|
||||||
//
|
//
|
||||||
@@ -619,11 +649,12 @@
|
|||||||
//
|
//
|
||||||
this.addSpriteToFrameSpritesButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.addSpriteToFrameSpritesButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.addSpriteToFrameSpritesButton.Enabled = false;
|
this.addSpriteToFrameSpritesButton.Enabled = false;
|
||||||
this.addSpriteToFrameSpritesButton.Location = new System.Drawing.Point(1, 36);
|
this.addSpriteToFrameSpritesButton.Location = new System.Drawing.Point(1, 23);
|
||||||
this.addSpriteToFrameSpritesButton.Name = "addSpriteToFrameSpritesButton";
|
this.addSpriteToFrameSpritesButton.Name = "addSpriteToFrameSpritesButton";
|
||||||
this.addSpriteToFrameSpritesButton.Size = new System.Drawing.Size(27, 23);
|
this.addSpriteToFrameSpritesButton.Size = new System.Drawing.Size(27, 23);
|
||||||
this.addSpriteToFrameSpritesButton.TabIndex = 5;
|
this.addSpriteToFrameSpritesButton.TabIndex = 5;
|
||||||
this.addSpriteToFrameSpritesButton.Text = "→";
|
this.addSpriteToFrameSpritesButton.Text = "→";
|
||||||
|
this.toolTip.SetToolTip(this.addSpriteToFrameSpritesButton, "Add selected Sprite from SpriteMap to Current Frame\'s Sprites");
|
||||||
this.addSpriteToFrameSpritesButton.UseVisualStyleBackColor = true;
|
this.addSpriteToFrameSpritesButton.UseVisualStyleBackColor = true;
|
||||||
this.addSpriteToFrameSpritesButton.Click += new System.EventHandler(this.addSpriteToFrameSpritesButton_Click);
|
this.addSpriteToFrameSpritesButton.Click += new System.EventHandler(this.addSpriteToFrameSpritesButton_Click);
|
||||||
//
|
//
|
||||||
@@ -655,6 +686,8 @@
|
|||||||
this.importDelayBox.Name = "importDelayBox";
|
this.importDelayBox.Name = "importDelayBox";
|
||||||
this.importDelayBox.Size = new System.Drawing.Size(83, 20);
|
this.importDelayBox.Size = new System.Drawing.Size(83, 20);
|
||||||
this.importDelayBox.TabIndex = 19;
|
this.importDelayBox.TabIndex = 19;
|
||||||
|
this.toolTip.SetToolTip(this.importDelayBox, "Default delay for new Frames\r\nDelay determines how many additional \"game frames\" " +
|
||||||
|
"the current frame will be shown for\r\nAssumes the game runs at 60fps");
|
||||||
this.importDelayBox.ValueChanged += new System.EventHandler(this.importDelayBox_ValueChanged);
|
this.importDelayBox.ValueChanged += new System.EventHandler(this.importDelayBox_ValueChanged);
|
||||||
//
|
//
|
||||||
// frameNameLabel
|
// frameNameLabel
|
||||||
@@ -704,9 +737,9 @@
|
|||||||
this.spriteBoxLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.spriteBoxLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.spriteBoxLabel.Location = new System.Drawing.Point(3, 3);
|
this.spriteBoxLabel.Location = new System.Drawing.Point(3, 3);
|
||||||
this.spriteBoxLabel.Name = "spriteBoxLabel";
|
this.spriteBoxLabel.Name = "spriteBoxLabel";
|
||||||
this.spriteBoxLabel.Size = new System.Drawing.Size(97, 13);
|
this.spriteBoxLabel.Size = new System.Drawing.Size(64, 13);
|
||||||
this.spriteBoxLabel.TabIndex = 15;
|
this.spriteBoxLabel.TabIndex = 15;
|
||||||
this.spriteBoxLabel.Text = "Sprite Selection";
|
this.spriteBoxLabel.Text = "SpriteMap";
|
||||||
//
|
//
|
||||||
// spritePreview
|
// spritePreview
|
||||||
//
|
//
|
||||||
@@ -721,21 +754,25 @@
|
|||||||
//
|
//
|
||||||
// duplicateFrameButton
|
// duplicateFrameButton
|
||||||
//
|
//
|
||||||
this.duplicateFrameButton.Location = new System.Drawing.Point(130, 18);
|
this.duplicateFrameButton.Location = new System.Drawing.Point(192, 18);
|
||||||
|
this.duplicateFrameButton.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||||
this.duplicateFrameButton.Name = "duplicateFrameButton";
|
this.duplicateFrameButton.Name = "duplicateFrameButton";
|
||||||
this.duplicateFrameButton.Size = new System.Drawing.Size(27, 23);
|
this.duplicateFrameButton.Size = new System.Drawing.Size(23, 23);
|
||||||
this.duplicateFrameButton.TabIndex = 12;
|
this.duplicateFrameButton.TabIndex = 12;
|
||||||
this.duplicateFrameButton.Text = "++";
|
this.duplicateFrameButton.Text = "=";
|
||||||
|
this.toolTip.SetToolTip(this.duplicateFrameButton, "Duplicate Frame");
|
||||||
this.duplicateFrameButton.UseVisualStyleBackColor = true;
|
this.duplicateFrameButton.UseVisualStyleBackColor = true;
|
||||||
this.duplicateFrameButton.Click += new System.EventHandler(this.duplicateFrameButton_Click);
|
this.duplicateFrameButton.Click += new System.EventHandler(this.duplicateFrameButton_Click);
|
||||||
//
|
//
|
||||||
// addEmptyFrameButton
|
// addEmptyFrameButton
|
||||||
//
|
//
|
||||||
this.addEmptyFrameButton.Location = new System.Drawing.Point(162, 18);
|
this.addEmptyFrameButton.Location = new System.Drawing.Point(169, 18);
|
||||||
|
this.addEmptyFrameButton.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
|
||||||
this.addEmptyFrameButton.Name = "addEmptyFrameButton";
|
this.addEmptyFrameButton.Name = "addEmptyFrameButton";
|
||||||
this.addEmptyFrameButton.Size = new System.Drawing.Size(27, 23);
|
this.addEmptyFrameButton.Size = new System.Drawing.Size(23, 23);
|
||||||
this.addEmptyFrameButton.TabIndex = 12;
|
this.addEmptyFrameButton.TabIndex = 12;
|
||||||
this.addEmptyFrameButton.Text = "+";
|
this.addEmptyFrameButton.Text = "+";
|
||||||
|
this.toolTip.SetToolTip(this.addEmptyFrameButton, "Add Empty Frame");
|
||||||
this.addEmptyFrameButton.UseVisualStyleBackColor = true;
|
this.addEmptyFrameButton.UseVisualStyleBackColor = true;
|
||||||
this.addEmptyFrameButton.Click += new System.EventHandler(this.addEmptyFrameButton_Click);
|
this.addEmptyFrameButton.Click += new System.EventHandler(this.addEmptyFrameButton_Click);
|
||||||
//
|
//
|
||||||
@@ -843,7 +880,7 @@
|
|||||||
private AnimationPreview animationPreview;
|
private AnimationPreview animationPreview;
|
||||||
private System.Windows.Forms.OpenFileDialog loadSpriteSheetDialog;
|
private System.Windows.Forms.OpenFileDialog loadSpriteSheetDialog;
|
||||||
private System.Windows.Forms.OpenFileDialog loadSpriteMapDialog;
|
private System.Windows.Forms.OpenFileDialog loadSpriteMapDialog;
|
||||||
private System.Windows.Forms.ListBox spriteListBox;
|
private System.Windows.Forms.ListBox spriteMapListBox;
|
||||||
private System.Windows.Forms.ListBox frameListBox;
|
private System.Windows.Forms.ListBox frameListBox;
|
||||||
private System.Windows.Forms.Button addSpriteToFrameListButton;
|
private System.Windows.Forms.Button addSpriteToFrameListButton;
|
||||||
private System.Windows.Forms.PictureBox spritePreview;
|
private System.Windows.Forms.PictureBox spritePreview;
|
||||||
@@ -905,6 +942,7 @@
|
|||||||
private System.Windows.Forms.Panel spritePosPanel;
|
private System.Windows.Forms.Panel spritePosPanel;
|
||||||
private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolTip toolTip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+13
-13
@@ -36,7 +36,7 @@ namespace AnimationEditor
|
|||||||
}
|
}
|
||||||
private int frameRate;
|
private int frameRate;
|
||||||
|
|
||||||
private BindingList<Sprite> spriteSet;
|
private BindingList<Sprite> spriteMap;
|
||||||
private BindingList<Frame> frames;
|
private BindingList<Frame> frames;
|
||||||
private BindingList<Sprite> frameSprites;
|
private BindingList<Sprite> frameSprites;
|
||||||
private BindingList<Animation> animations;
|
private BindingList<Animation> animations;
|
||||||
@@ -112,9 +112,9 @@ namespace AnimationEditor
|
|||||||
|
|
||||||
private void addSpriteToFrameListButton_Click(object sender, EventArgs e)
|
private void addSpriteToFrameListButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (spriteListBox.SelectedItem != null)
|
if (spriteMapListBox.SelectedItem != null)
|
||||||
{
|
{
|
||||||
var spriteToAdd = spriteSet[spriteListBox.SelectedIndex].Clone();
|
var spriteToAdd = spriteMap[spriteMapListBox.SelectedIndex].Clone();
|
||||||
AddFrame(new Frame(spriteToAdd, importDelay));
|
AddFrame(new Frame(spriteToAdd, importDelay));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -178,7 +178,7 @@ namespace AnimationEditor
|
|||||||
|
|
||||||
//update per-sprite controls
|
//update per-sprite controls
|
||||||
spritePosPanel.Enabled = singleSpriteSelected;
|
spritePosPanel.Enabled = singleSpriteSelected;
|
||||||
replaceSpriteButton.Enabled = singleSpriteSelected && spriteSet != null;
|
replaceSpriteButton.Enabled = singleSpriteSelected && spriteMap != null;
|
||||||
moveSpriteDownButton.Enabled = singleSpriteSelected;
|
moveSpriteDownButton.Enabled = singleSpriteSelected;
|
||||||
moveSpriteUpButton.Enabled = singleSpriteSelected;
|
moveSpriteUpButton.Enabled = singleSpriteSelected;
|
||||||
removeSpriteButton.Enabled = singleSpriteSelected;
|
removeSpriteButton.Enabled = singleSpriteSelected;
|
||||||
@@ -211,9 +211,9 @@ namespace AnimationEditor
|
|||||||
|
|
||||||
private void spriteListBox_SelectedIndexChanged(object sender, EventArgs e)
|
private void spriteListBox_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (spriteListBox.SelectedItem != null)
|
if (spriteMapListBox.SelectedItem != null)
|
||||||
{
|
{
|
||||||
var currentSprite = (Sprite)spriteListBox.SelectedItem;
|
var currentSprite = (Sprite)spriteMapListBox.SelectedItem;
|
||||||
Stream texture2DToImageStream = new MemoryStream();
|
Stream texture2DToImageStream = new MemoryStream();
|
||||||
Texture2DRegionExtractor.GetTexture2DFromRegion(spriteSheet, spriteSheet.GraphicsDevice, currentSprite.Bounds)
|
Texture2DRegionExtractor.GetTexture2DFromRegion(spriteSheet, spriteSheet.GraphicsDevice, currentSprite.Bounds)
|
||||||
.SaveAsPng(texture2DToImageStream, currentSprite.Bounds.Width, currentSprite.Bounds.Height);
|
.SaveAsPng(texture2DToImageStream, currentSprite.Bounds.Width, currentSprite.Bounds.Height);
|
||||||
@@ -319,15 +319,15 @@ namespace AnimationEditor
|
|||||||
loadedSpriteMap = IntermediateSerializer.Deserialize<Dictionary<string, Sprite>>(xmlRead, null);
|
loadedSpriteMap = IntermediateSerializer.Deserialize<Dictionary<string, Sprite>>(xmlRead, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
spriteSet = new BindingList<Sprite>();
|
spriteMap = new BindingList<Sprite>();
|
||||||
foreach (KeyValuePair<string, Sprite> sprite in loadedSpriteMap)
|
foreach (KeyValuePair<string, Sprite> sprite in loadedSpriteMap)
|
||||||
{
|
{
|
||||||
spriteSet.Add(sprite.Value);
|
spriteMap.Add(sprite.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
spriteListBox.DataSource = spriteSet;
|
spriteMapListBox.DataSource = spriteMap;
|
||||||
spriteListBox.DisplayMember = "Name";
|
spriteMapListBox.DisplayMember = "Name";
|
||||||
spriteListBox.ValueMember = "Bounds";
|
spriteMapListBox.ValueMember = "Bounds";
|
||||||
|
|
||||||
//enable spriteMap-required controls
|
//enable spriteMap-required controls
|
||||||
addSpriteToFrameListButton.Enabled = true;
|
addSpriteToFrameListButton.Enabled = true;
|
||||||
@@ -662,7 +662,7 @@ namespace AnimationEditor
|
|||||||
|
|
||||||
private void addSpriteToFrameSpritesButton_Click(object sender, EventArgs e)
|
private void addSpriteToFrameSpritesButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var spriteToAdd = spriteSet[spriteListBox.SelectedIndex].Clone();
|
var spriteToAdd = spriteMap[spriteMapListBox.SelectedIndex].Clone();
|
||||||
|
|
||||||
DoModification(new AddSprite(frameSprites, frameSpriteListBox, currentFrame, spriteToAdd));
|
DoModification(new AddSprite(frameSprites, frameSpriteListBox, currentFrame, spriteToAdd));
|
||||||
}
|
}
|
||||||
@@ -735,7 +735,7 @@ namespace AnimationEditor
|
|||||||
|
|
||||||
private void replaceSpriteButton_Click(object sender, EventArgs e)
|
private void replaceSpriteButton_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
DoModification(new ReplaceSprite(frameSprites, frameSpriteListBox.SelectedIndex, spriteSet[spriteListBox.SelectedIndex]));
|
DoModification(new ReplaceSprite(frameSprites, frameSpriteListBox.SelectedIndex, spriteMap[spriteMapListBox.SelectedIndex]));
|
||||||
UpdateAnimation();
|
UpdateAnimation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -118,24 +118,30 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="loadSpriteSheetDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="loadSpriteSheetDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>107, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="loadSpriteMapDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="loadSpriteMapDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>190, 17</value>
|
<value>280, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="mainMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="mainMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>357, 17</value>
|
<value>447, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="saveAnimationDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="saveAnimationDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>492, 17</value>
|
<value>582, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="saveAnimationSetDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="saveAnimationSetDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>659, 17</value>
|
<value>749, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="loadAnimationDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="loadAnimationDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>843, 17</value>
|
<value>17, 56</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="loadAnimationSetDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="loadAnimationSetDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>1010, 17</value>
|
<value>184, 56</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
</root>
|
</root>
|
||||||
Reference in New Issue
Block a user