Show the current animation number

This commit is contained in:
Tim Young 2017-09-19 14:55:58 -05:00
parent 0389b3a759
commit 5fd16be792
2 changed files with 15 additions and 2 deletions

View File

@ -69,6 +69,7 @@
this.btnReset = new System.Windows.Forms.Button(); this.btnReset = new System.Windows.Forms.Button();
this.btnPreviewAnimFwd = new System.Windows.Forms.Button(); this.btnPreviewAnimFwd = new System.Windows.Forms.Button();
this.btnPreviewAnimBack = 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(); ((System.ComponentModel.ISupportInitialize)(this.pbImageField)).BeginInit();
this.TCTabPages.SuspendLayout(); this.TCTabPages.SuspendLayout();
this.tpFromImage.SuspendLayout(); this.tpFromImage.SuspendLayout();
@ -265,6 +266,7 @@
// //
// tpFromImage // tpFromImage
// //
this.tpFromImage.Controls.Add(this.lblAnimationNumber);
this.tpFromImage.Controls.Add(this.lblAnimationFwdBack); this.tpFromImage.Controls.Add(this.lblAnimationFwdBack);
this.tpFromImage.Controls.Add(this.btnAnimBack); this.tpFromImage.Controls.Add(this.btnAnimBack);
this.tpFromImage.Controls.Add(this.btnAnimFwd); this.tpFromImage.Controls.Add(this.btnAnimFwd);
@ -284,7 +286,7 @@
// lblAnimationFwdBack // lblAnimationFwdBack
// //
this.lblAnimationFwdBack.AutoSize = true; 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.Name = "lblAnimationFwdBack";
this.lblAnimationFwdBack.Size = new System.Drawing.Size(74, 17); this.lblAnimationFwdBack.Size = new System.Drawing.Size(74, 17);
this.lblAnimationFwdBack.TabIndex = 20; this.lblAnimationFwdBack.TabIndex = 20;
@ -293,7 +295,7 @@
// btnAnimBack // btnAnimBack
// //
this.btnAnimBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 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.Name = "btnAnimBack";
this.btnAnimBack.Size = new System.Drawing.Size(32, 23); this.btnAnimBack.Size = new System.Drawing.Size(32, 23);
this.btnAnimBack.TabIndex = 19; this.btnAnimBack.TabIndex = 19;
@ -484,6 +486,15 @@
this.btnPreviewAnimBack.UseVisualStyleBackColor = true; this.btnPreviewAnimBack.UseVisualStyleBackColor = true;
this.btnPreviewAnimBack.Click += new System.EventHandler(this.btnPreviewAnimBack_Click); 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 // SpriteEntryForm
// //
this.AcceptButton = this.btnApply; this.AcceptButton = this.btnApply;
@ -576,5 +587,6 @@
private System.Windows.Forms.Button btnReset; private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.Button btnPreviewAnimFwd; private System.Windows.Forms.Button btnPreviewAnimFwd;
private System.Windows.Forms.Button btnPreviewAnimBack; private System.Windows.Forms.Button btnPreviewAnimBack;
private System.Windows.Forms.Label lblAnimationNumber;
} }
} }

View File

@ -117,6 +117,7 @@ namespace SpriteLibrary
{ {
cbAnimation.Items.Add(i.ToString()); cbAnimation.Items.Add(i.ToString());
} }
lblAnimationNumber.Text = CurrentSIAnimation.ToString();
if (CurrentSIAnimation == 0) if (CurrentSIAnimation == 0)
{ {
rbFromImage.Checked = true; rbFromImage.Checked = true;