예제 #1
0
 private void InitializeComponent()
 {
     this.lblUnit = new Label();
     this.nudMain = new PyxNumericUpDown();
     this.txtMain = new MaskedTextBox();
     this.nudMain.BeginInit();
     this.SuspendLayout();
     this.lblUnit.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
     this.lblUnit.BackColor     = SystemColors.Window;
     this.lblUnit.Location      = new Point(11, 3);
     this.lblUnit.Margin        = new Padding(0);
     this.lblUnit.Name          = "lblUnit";
     this.lblUnit.Size          = new Size(79, 13);
     this.lblUnit.TabIndex      = 2;
     this.lblUnit.Text          = "Unit";
     this.lblUnit.Click        += new EventHandler(this.lblUnit_Click);
     this.nudMain.Anchor        = AnchorStyles.Right;
     this.nudMain.Font          = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
     this.nudMain.IgnoreHeight  = false;
     this.nudMain.Location      = new Point(90, 0);
     this.nudMain.Name          = "nudMain";
     this.nudMain.Size          = new Size(17, 20);
     this.nudMain.TabIndex      = 1;
     this.nudMain.TabStop       = false;
     this.nudMain.ToolTipText   = "";
     this.nudMain.ToolTipTitle  = "";
     this.nudMain.ValueChanged += new EventHandler(this.nudMain_ValueChanged);
     this.txtMain.BackColor     = SystemColors.Window;
     this.txtMain.Location      = new Point(0, 0);
     this.txtMain.Name          = "txtMain";
     this.txtMain.Size          = new Size(100, 20);
     this.txtMain.TabIndex      = 0;
     this.txtMain.TextChanged  += new EventHandler(this.txtMain_TextChanged);
     this.txtMain.KeyDown      += new KeyEventHandler(this.txtMain_KeyDown);
     this.txtMain.Leave        += new EventHandler(this.txtMain_Leave);
     this.txtMain.MouseUp      += new MouseEventHandler(this.txtMain_MouseUp);
     this.AutoScaleDimensions   = new SizeF(6f, 13f);
     this.AutoScaleMode         = AutoScaleMode.Font;
     this.BackColor             = SystemColors.Window;
     this.Controls.Add((Control)this.nudMain);
     this.Controls.Add((Control)this.lblUnit);
     this.Controls.Add((Control)this.txtMain);
     this.Name         = "PyxUnitNumericUpDown";
     this.Size         = new Size(107, 20);
     this.SizeChanged += new EventHandler(this.PyxUnitUpDown_SizeChanged);
     this.Enter       += new EventHandler(this.PyxUnitNumericUpDown_Enter);
     this.nudMain.EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
예제 #2
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(TilesetRefactorForm));

            this.lblMagnify     = new Label();
            this.pnlMagnify     = new Panel();
            this.trkMagnify     = new PyxTrackBar();
            this.butCancel      = new PyxButton();
            this.butOk          = new PyxButton();
            this.nudRows        = new PyxNumericUpDown();
            this.nudColumns     = new PyxNumericUpDown();
            this.lblTileX       = new Label();
            this.lblTileY       = new Label();
            this.butGrid        = new PyxButton();
            this.butRedo        = new PyxButton();
            this.butUndo        = new PyxButton();
            this.ssMain         = new StatusStrip();
            this.lblTileCount   = new ToolStripStatusLabel();
            this.lblTilesetSize = new ToolStripStatusLabel();
            this.pnlTileset     = new GMareTilesetRefactorEditor();
            this.nudRows.BeginInit();
            this.nudColumns.BeginInit();
            this.ssMain.SuspendLayout();
            this.SuspendLayout();
            this.lblMagnify.AutoSize              = true;
            this.lblMagnify.Location              = new Point(400, 10);
            this.lblMagnify.Name                  = "lblMagnify";
            this.lblMagnify.Size                  = new Size(33, 13);
            this.lblMagnify.TabIndex              = 9;
            this.lblMagnify.Text                  = "100%";
            this.pnlMagnify.BackgroundImage       = (Image)Resources.magnifier;
            this.pnlMagnify.BackgroundImageLayout = ImageLayout.Center;
            this.pnlMagnify.Location              = new Point(280, 4);
            this.pnlMagnify.Name                  = "pnlMagnify";
            this.pnlMagnify.Size                  = new Size(24, 24);
            this.pnlMagnify.TabIndex              = 7;
            this.trkMagnify.BackColor             = Color.Transparent;
            this.trkMagnify.LargeChange           = 1;
            this.trkMagnify.Location              = new Point(304, 6);
            this.trkMagnify.Maximum               = 5;
            this.trkMagnify.Minimum               = 1;
            this.trkMagnify.Name                  = "trkMagnify";
            this.trkMagnify.Size                  = new Size(104, 20);
            this.trkMagnify.TabIndex              = 8;
            this.trkMagnify.TabStop               = true;
            this.trkMagnify.TickStyle             = TickStyle.None;
            this.trkMagnify.ToolTipText           = "Slide to set the magnification level of the graphic";
            this.trkMagnify.ToolTipTitle          = "Image Magnification";
            this.trkMagnify.Value                 = 1;
            this.trkMagnify.ValueChanged         += new EventHandler(this.trkMagnify_ValueChanged);
            this.butCancel.ButtonType             = PyxButton.ButtonModeType.Button;
            this.butCancel.Checked                = false;
            this.butCancel.FlatStyled             = false;
            this.butCancel.Font                    = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.butCancel.ImageXOffset            = 0;
            this.butCancel.ImageYOffset            = 0;
            this.butCancel.Location                = new Point(572, 552);
            this.butCancel.Name                    = "butCancel";
            this.butCancel.PushButtonImage         = (Bitmap)null;
            this.butCancel.Size                    = new Size(76, 24);
            this.butCancel.TabIndex                = 12;
            this.butCancel.Text                    = "Cancel";
            this.butCancel.TextXOffset             = 0;
            this.butCancel.TextYOffset             = 0;
            this.butCancel.ToolTipText             = "";
            this.butCancel.ToolTipTitle            = "";
            this.butCancel.UseDropShadow           = true;
            this.butCancel.UseVisualStyleBackColor = true;
            this.butCancel.Click                  += new EventHandler(this.butCancel_Click);
            this.butOk.ButtonType                  = PyxButton.ButtonModeType.Button;
            this.butOk.Checked                 = false;
            this.butOk.FlatStyled              = false;
            this.butOk.Font                    = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.butOk.ImageXOffset            = 0;
            this.butOk.ImageYOffset            = 0;
            this.butOk.Location                = new Point(492, 552);
            this.butOk.Name                    = "butOk";
            this.butOk.PushButtonImage         = (Bitmap)null;
            this.butOk.Size                    = new Size(76, 24);
            this.butOk.TabIndex                = 11;
            this.butOk.Text                    = "OK";
            this.butOk.TextXOffset             = 0;
            this.butOk.TextYOffset             = 0;
            this.butOk.ToolTipText             = "";
            this.butOk.ToolTipTitle            = "";
            this.butOk.UseDropShadow           = true;
            this.butOk.UseVisualStyleBackColor = true;
            this.butOk.Click                  += new EventHandler(this.butOk_Click);
            this.nudRows.IgnoreHeight          = true;
            this.nudRows.Location              = new Point(228, 7);
            this.nudRows.Maximum               = new Decimal(new int[4]
            {
                9999,
                0,
                0,
                0
            });
            this.nudRows.Minimum = new Decimal(new int[4]
            {
                1,
                0,
                0,
                0
            });
            this.nudRows.Name         = "nudRows";
            this.nudRows.Size         = new Size(48, 20);
            this.nudRows.TabIndex     = 6;
            this.nudRows.ToolTipText  = "The height of the tileset in tiles";
            this.nudRows.ToolTipTitle = "Rows";
            this.nudRows.Value        = new Decimal(new int[4]
            {
                16,
                0,
                0,
                0
            });
            this.nudRows.ValueChanged   += new EventHandler(this.nudSize_ValueChanged);
            this.nudColumns.IgnoreHeight = true;
            this.nudColumns.Location     = new Point(136, 7);
            this.nudColumns.Maximum      = new Decimal(new int[4]
            {
                9999,
                0,
                0,
                0
            });
            this.nudColumns.Minimum = new Decimal(new int[4]
            {
                1,
                0,
                0,
                0
            });
            this.nudColumns.Name         = "nudColumns";
            this.nudColumns.Size         = new Size(48, 20);
            this.nudColumns.TabIndex     = 4;
            this.nudColumns.ToolTipText  = "The width of the tileset in tiles";
            this.nudColumns.ToolTipTitle = "Columns";
            this.nudColumns.Value        = new Decimal(new int[4]
            {
                16,
                0,
                0,
                0
            });
            this.nudColumns.ValueChanged        += new EventHandler(this.nudSize_ValueChanged);
            this.lblTileX.AutoSize               = true;
            this.lblTileX.Location               = new Point(84, 10);
            this.lblTileX.Name                   = "lblTileX";
            this.lblTileX.Size                   = new Size(50, 13);
            this.lblTileX.TabIndex               = 3;
            this.lblTileX.Text                   = "Columns:";
            this.lblTileY.AutoSize               = true;
            this.lblTileY.Location               = new Point(188, 10);
            this.lblTileY.Name                   = "lblTileY";
            this.lblTileY.Size                   = new Size(37, 13);
            this.lblTileY.TabIndex               = 5;
            this.lblTileY.Text                   = "Rows:";
            this.butGrid.ButtonType              = PyxButton.ButtonModeType.PushButton;
            this.butGrid.Checked                 = true;
            this.butGrid.FlatStyled              = false;
            this.butGrid.Font                    = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.butGrid.Image                   = (Image)componentResourceManager.GetObject("butGrid.Image");
            this.butGrid.ImageXOffset            = 1;
            this.butGrid.ImageYOffset            = 0;
            this.butGrid.Location                = new Point(56, 4);
            this.butGrid.Name                    = "butGrid";
            this.butGrid.PushButtonImage         = (Bitmap)null;
            this.butGrid.Size                    = new Size(25, 24);
            this.butGrid.TabIndex                = 2;
            this.butGrid.TextXOffset             = 0;
            this.butGrid.TextYOffset             = 0;
            this.butGrid.ToolTipText             = "Show or hide the cell grid";
            this.butGrid.ToolTipTitle            = "Show/Hide Grid";
            this.butGrid.UseDropShadow           = true;
            this.butGrid.UseVisualStyleBackColor = true;
            this.butGrid.CheckChanged           += new PyxButton.CheckChangedEventHandler(this.butShowGrid_CheckChanged);
            this.butRedo.ButtonType              = PyxButton.ButtonModeType.Button;
            this.butRedo.Checked                 = false;
            this.butRedo.FlatStyled              = false;
            this.butRedo.Font                    = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.butRedo.Image                   = (Image)Resources.arrow_redo;
            this.butRedo.ImageXOffset            = 0;
            this.butRedo.ImageYOffset            = 0;
            this.butRedo.Location                = new Point(32, 4);
            this.butRedo.Name                    = "butRedo";
            this.butRedo.PushButtonImage         = (Bitmap)null;
            this.butRedo.Size                    = new Size(24, 24);
            this.butRedo.TabIndex                = 1;
            this.butRedo.TextXOffset             = 0;
            this.butRedo.TextYOffset             = 0;
            this.butRedo.ToolTipText             = "Redo tile edit";
            this.butRedo.ToolTipTitle            = "Redo (Ctrl+Y)";
            this.butRedo.UseDropShadow           = true;
            this.butRedo.UseVisualStyleBackColor = true;
            this.butRedo.Click                  += new EventHandler(this.butRedo_Click);
            this.butUndo.ButtonType              = PyxButton.ButtonModeType.Button;
            this.butUndo.Checked                 = false;
            this.butUndo.FlatStyled              = false;
            this.butUndo.Font                    = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte)0);
            this.butUndo.Image                   = (Image)Resources.arrow_undo;
            this.butUndo.ImageXOffset            = 0;
            this.butUndo.ImageYOffset            = 0;
            this.butUndo.Location                = new Point(8, 4);
            this.butUndo.Name                    = "butUndo";
            this.butUndo.PushButtonImage         = (Bitmap)null;
            this.butUndo.Size                    = new Size(24, 24);
            this.butUndo.TabIndex                = 0;
            this.butUndo.TextXOffset             = 0;
            this.butUndo.TextYOffset             = 0;
            this.butUndo.ToolTipText             = "Undo tile edit";
            this.butUndo.ToolTipTitle            = "Undo (Ctrl+Z)";
            this.butUndo.UseDropShadow           = true;
            this.butUndo.UseVisualStyleBackColor = true;
            this.butUndo.Click                  += new EventHandler(this.butUndo_Click);
            this.ssMain.Items.AddRange(new ToolStripItem[2]
            {
                (ToolStripItem)this.lblTileCount,
                (ToolStripItem)this.lblTilesetSize
            });
            this.ssMain.Location              = new Point(0, 580);
            this.ssMain.Name                  = "ssMain";
            this.ssMain.Size                  = new Size(660, 24);
            this.ssMain.TabIndex              = 13;
            this.ssMain.Text                  = "statusStrip1";
            this.lblTileCount.BorderSides     = ToolStripStatusLabelBorderSides.Right;
            this.lblTileCount.Name            = "lblTileCount";
            this.lblTileCount.Size            = new Size(78, 19);
            this.lblTileCount.Text            = "Tile Count: 0";
            this.lblTileCount.TextAlign       = ContentAlignment.MiddleLeft;
            this.lblTilesetSize.BorderSides   = ToolStripStatusLabelBorderSides.Right;
            this.lblTilesetSize.Name          = "lblTilesetSize";
            this.lblTilesetSize.Size          = new Size(59, 19);
            this.lblTilesetSize.Text          = "Size: N/A";
            this.lblTilesetSize.TextAlign     = ContentAlignment.MiddleLeft;
            this.pnlTileset.AllowDrop         = true;
            this.pnlTileset.Anchor            = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            this.pnlTileset.AutoScroll        = true;
            this.pnlTileset.AutoScrollMinSize = new Size(640, 512);
            this.pnlTileset.BackColor         = Color.White;
            this.pnlTileset.BorderStyle       = BorderStyle.Fixed3D;
            this.pnlTileset.CanvasSize        = new Size(0, 0);
            this.pnlTileset.CheckerColor      = Color.Silver;
            this.pnlTileset.CheckerSize       = new Size(16, 16);
            this.pnlTileset.Columns           = 16;
            this.pnlTileset.ImageScale        = 1;
            this.pnlTileset.Location          = new Point(8, 32);
            this.pnlTileset.Name              = "pnlTileset";
            this.pnlTileset.Rows              = 0;
            this.pnlTileset.ShowGrid          = true;
            this.pnlTileset.Size              = new Size(644, 516);
            this.pnlTileset.SnapSize          = new Size(8, 8);
            this.pnlTileset.TabIndex          = 10;
            this.pnlTileset.Tiles             = (List <Bitmap>)componentResourceManager.GetObject("pnlTileset.Tiles");
            this.pnlTileset.Title             = "Tile Editor";
            this.pnlTileset.ToolTipText       = "";
            this.pnlTileset.ToolTipTitle      = "";
            this.pnlTileset.UseCheckerBoard   = true;
            this.pnlTileset.Zoom              = 1f;
            this.pnlTileset.PanelChanged     += new GMareTilesetRefactorEditor.PanelChangedHandler(this.pnlTileset_PanelChanged);
            this.AutoScaleDimensions          = new SizeF(6f, 13f);
            this.AutoScaleMode                = AutoScaleMode.Font;
            this.ClientSize = new Size(660, 604);
            this.Controls.Add((Control)this.ssMain);
            this.Controls.Add((Control)this.butRedo);
            this.Controls.Add((Control)this.butUndo);
            this.Controls.Add((Control)this.nudRows);
            this.Controls.Add((Control)this.lblTileY);
            this.Controls.Add((Control)this.butGrid);
            this.Controls.Add((Control)this.nudColumns);
            this.Controls.Add((Control)this.lblTileX);
            this.Controls.Add((Control)this.lblMagnify);
            this.Controls.Add((Control)this.pnlMagnify);
            this.Controls.Add((Control)this.trkMagnify);
            this.Controls.Add((Control)this.pnlTileset);
            this.Controls.Add((Control)this.butCancel);
            this.Controls.Add((Control)this.butOk);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = "TilesetRefactorForm";
            this.ShowIcon        = false;
            this.ShowInTaskbar   = false;
            this.StartPosition   = FormStartPosition.CenterParent;
            this.Text            = "Tileset Editor";
            this.nudRows.EndInit();
            this.nudColumns.EndInit();
            this.ssMain.ResumeLayout(false);
            this.ssMain.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }