From 5fd16be79286aa130ef0c864789ce0e7e582ca38 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Tue, 19 Sep 2017 14:55:58 -0500 Subject: [PATCH] Show the current animation number --- SpriteLibrary/SpriteEntryForm.Designer.cs | 16 ++++++++++++++-- SpriteLibrary/SpriteEntryForm.cs | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/SpriteLibrary/SpriteEntryForm.Designer.cs b/SpriteLibrary/SpriteEntryForm.Designer.cs index 40cd52a..4d2e0ec 100644 --- a/SpriteLibrary/SpriteEntryForm.Designer.cs +++ b/SpriteLibrary/SpriteEntryForm.Designer.cs @@ -69,6 +69,7 @@ this.btnReset = new System.Windows.Forms.Button(); this.btnPreviewAnimFwd = new System.Windows.Forms.Button(); this.btnPreviewAnimBack = new System.Windows.Forms.Button(); + this.lblAnimationNumber = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pbImageField)).BeginInit(); this.TCTabPages.SuspendLayout(); this.tpFromImage.SuspendLayout(); @@ -265,6 +266,7 @@ // // tpFromImage // + this.tpFromImage.Controls.Add(this.lblAnimationNumber); this.tpFromImage.Controls.Add(this.lblAnimationFwdBack); this.tpFromImage.Controls.Add(this.btnAnimBack); this.tpFromImage.Controls.Add(this.btnAnimFwd); @@ -284,7 +286,7 @@ // lblAnimationFwdBack // this.lblAnimationFwdBack.AutoSize = true; - this.lblAnimationFwdBack.Location = new System.Drawing.Point(109, 88); + this.lblAnimationFwdBack.Location = new System.Drawing.Point(69, 88); this.lblAnimationFwdBack.Name = "lblAnimationFwdBack"; this.lblAnimationFwdBack.Size = new System.Drawing.Size(74, 17); this.lblAnimationFwdBack.TabIndex = 20; @@ -293,7 +295,7 @@ // btnAnimBack // this.btnAnimBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.btnAnimBack.Location = new System.Drawing.Point(189, 85); + this.btnAnimBack.Location = new System.Drawing.Point(149, 85); this.btnAnimBack.Name = "btnAnimBack"; this.btnAnimBack.Size = new System.Drawing.Size(32, 23); this.btnAnimBack.TabIndex = 19; @@ -484,6 +486,15 @@ this.btnPreviewAnimBack.UseVisualStyleBackColor = true; this.btnPreviewAnimBack.Click += new System.EventHandler(this.btnPreviewAnimBack_Click); // + // lblAnimationNumber + // + this.lblAnimationNumber.AutoSize = true; + this.lblAnimationNumber.Location = new System.Drawing.Point(190, 91); + this.lblAnimationNumber.Name = "lblAnimationNumber"; + this.lblAnimationNumber.Size = new System.Drawing.Size(16, 17); + this.lblAnimationNumber.TabIndex = 21; + this.lblAnimationNumber.Text = "0"; + // // SpriteEntryForm // this.AcceptButton = this.btnApply; @@ -576,5 +587,6 @@ private System.Windows.Forms.Button btnReset; private System.Windows.Forms.Button btnPreviewAnimFwd; private System.Windows.Forms.Button btnPreviewAnimBack; + private System.Windows.Forms.Label lblAnimationNumber; } } \ No newline at end of file diff --git a/SpriteLibrary/SpriteEntryForm.cs b/SpriteLibrary/SpriteEntryForm.cs index 6f2b924..21cf804 100644 --- a/SpriteLibrary/SpriteEntryForm.cs +++ b/SpriteLibrary/SpriteEntryForm.cs @@ -117,6 +117,7 @@ namespace SpriteLibrary { cbAnimation.Items.Add(i.ToString()); } + lblAnimationNumber.Text = CurrentSIAnimation.ToString(); if (CurrentSIAnimation == 0) { rbFromImage.Checked = true;