finished candybox

This commit is contained in:
meelstorm
2025-09-18 10:50:50 +02:00
parent dc12b3e51a
commit 6c0b778ba6
9 changed files with 535 additions and 55 deletions

View File

@@ -1,5 +1,4 @@
namespace Lindt.Candybox.Demo
namespace Lindt.Candybox.Demo
{
partial class MapEditor
{
@@ -35,6 +34,12 @@ namespace Lindt.Candybox.Demo
this.materialRaisedButton3 = new MaterialSkin.Controls.MaterialRaisedButton();
this.label1 = new System.Windows.Forms.Label();
this.udMemoryBuffer = new System.Windows.Forms.NumericUpDown();
this.btnBrush = new MaterialSkin.Controls.MaterialRaisedButton();
this.btnDrawLine = new MaterialSkin.Controls.MaterialRaisedButton();
this.btnRemoveLine = new MaterialSkin.Controls.MaterialRaisedButton();
this.btnMoveLine = new MaterialSkin.Controls.MaterialRaisedButton();
this.btnMoveVertices = new MaterialSkin.Controls.MaterialRaisedButton();
this.label2 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.udMemoryBuffer)).BeginInit();
this.SuspendLayout();
//
@@ -54,7 +59,7 @@ namespace Lindt.Candybox.Demo
this.materialRaisedButton1.Depth = 0;
this.materialRaisedButton1.DrawBorder = true;
this.materialRaisedButton1.Icon = null;
this.materialRaisedButton1.Location = new System.Drawing.Point(928, 104);
this.materialRaisedButton1.Location = new System.Drawing.Point(928, 424);
this.materialRaisedButton1.MouseState = MaterialSkin.MouseState.HOVER;
this.materialRaisedButton1.Name = "materialRaisedButton1";
this.materialRaisedButton1.Primary = false;
@@ -71,7 +76,7 @@ namespace Lindt.Candybox.Demo
this.materialRaisedButton3.Depth = 0;
this.materialRaisedButton3.DrawBorder = true;
this.materialRaisedButton3.Icon = null;
this.materialRaisedButton3.Location = new System.Drawing.Point(928, 32);
this.materialRaisedButton3.Location = new System.Drawing.Point(928, 352);
this.materialRaisedButton3.MouseState = MaterialSkin.MouseState.HOVER;
this.materialRaisedButton3.Name = "materialRaisedButton3";
this.materialRaisedButton3.Primary = true;
@@ -85,7 +90,7 @@ namespace Lindt.Candybox.Demo
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(928, 184);
this.label1.Location = new System.Drawing.Point(928, 504);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(90, 15);
this.label1.TabIndex = 4;
@@ -93,16 +98,117 @@ namespace Lindt.Candybox.Demo
//
// udMemoryBuffer
//
this.udMemoryBuffer.Location = new System.Drawing.Point(928, 208);
this.udMemoryBuffer.Location = new System.Drawing.Point(928, 528);
this.udMemoryBuffer.Name = "udMemoryBuffer";
this.udMemoryBuffer.Size = new System.Drawing.Size(120, 23);
this.udMemoryBuffer.TabIndex = 5;
//
// btnBrush
//
this.btnBrush.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.btnBrush.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnBrush.Depth = 0;
this.btnBrush.DrawBorder = true;
this.btnBrush.Icon = null;
this.btnBrush.Location = new System.Drawing.Point(928, 64);
this.btnBrush.MouseState = MaterialSkin.MouseState.HOVER;
this.btnBrush.Name = "btnBrush";
this.btnBrush.Primary = false;
this.btnBrush.Size = new System.Drawing.Size(128, 32);
this.btnBrush.TabIndex = 6;
this.btnBrush.Text = "Brush";
this.btnBrush.UseVisualStyleBackColor = true;
this.btnBrush.Click += new System.EventHandler(this.btnBrush_Click);
//
// btnDrawLine
//
this.btnDrawLine.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.btnDrawLine.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnDrawLine.Depth = 0;
this.btnDrawLine.DrawBorder = true;
this.btnDrawLine.Icon = null;
this.btnDrawLine.Location = new System.Drawing.Point(928, 104);
this.btnDrawLine.MouseState = MaterialSkin.MouseState.HOVER;
this.btnDrawLine.Name = "btnDrawLine";
this.btnDrawLine.Primary = false;
this.btnDrawLine.Size = new System.Drawing.Size(128, 32);
this.btnDrawLine.TabIndex = 7;
this.btnDrawLine.Text = "Draw Line";
this.btnDrawLine.UseVisualStyleBackColor = true;
this.btnDrawLine.Click += new System.EventHandler(this.btnDrawLine_Click);
//
// btnRemoveLine
//
this.btnRemoveLine.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.btnRemoveLine.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnRemoveLine.Depth = 0;
this.btnRemoveLine.DrawBorder = true;
this.btnRemoveLine.Icon = null;
this.btnRemoveLine.Location = new System.Drawing.Point(928, 144);
this.btnRemoveLine.MouseState = MaterialSkin.MouseState.HOVER;
this.btnRemoveLine.Name = "btnRemoveLine";
this.btnRemoveLine.Primary = false;
this.btnRemoveLine.Size = new System.Drawing.Size(128, 32);
this.btnRemoveLine.TabIndex = 8;
this.btnRemoveLine.Text = "Remove Line";
this.btnRemoveLine.UseVisualStyleBackColor = true;
this.btnRemoveLine.Click += new System.EventHandler(this.btnRemoveLine_Click);
//
// btnMoveLine
//
this.btnMoveLine.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.btnMoveLine.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnMoveLine.Depth = 0;
this.btnMoveLine.DrawBorder = true;
this.btnMoveLine.Icon = null;
this.btnMoveLine.Location = new System.Drawing.Point(928, 184);
this.btnMoveLine.MouseState = MaterialSkin.MouseState.HOVER;
this.btnMoveLine.Name = "btnMoveLine";
this.btnMoveLine.Primary = false;
this.btnMoveLine.Size = new System.Drawing.Size(128, 32);
this.btnMoveLine.TabIndex = 9;
this.btnMoveLine.Text = "Move Line";
this.btnMoveLine.UseVisualStyleBackColor = true;
this.btnMoveLine.Click += new System.EventHandler(this.btnMoveLine_Click);
//
// btnMoveVertices
//
this.btnMoveVertices.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.btnMoveVertices.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnMoveVertices.Depth = 0;
this.btnMoveVertices.DrawBorder = true;
this.btnMoveVertices.Icon = null;
this.btnMoveVertices.Location = new System.Drawing.Point(928, 224);
this.btnMoveVertices.MouseState = MaterialSkin.MouseState.HOVER;
this.btnMoveVertices.Name = "btnMoveVertices";
this.btnMoveVertices.Primary = false;
this.btnMoveVertices.Size = new System.Drawing.Size(128, 32);
this.btnMoveVertices.TabIndex = 10;
this.btnMoveVertices.Text = "Move Vertices";
this.btnMoveVertices.UseVisualStyleBackColor = true;
this.btnMoveVertices.Click += new System.EventHandler(this.btnMoveVertices_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(928, 32);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(68, 15);
this.label2.TabIndex = 11;
this.label2.Text = "Edit Modes:";
//
// MapEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1066, 824);
this.Controls.Add(this.label2);
this.Controls.Add(this.btnMoveVertices);
this.Controls.Add(this.btnMoveLine);
this.Controls.Add(this.btnRemoveLine);
this.Controls.Add(this.btnDrawLine);
this.Controls.Add(this.btnBrush);
this.Controls.Add(this.udMemoryBuffer);
this.Controls.Add(this.label1);
this.Controls.Add(this.materialRaisedButton3);
@@ -126,5 +232,11 @@ namespace Lindt.Candybox.Demo
private MaterialSkin.Controls.MaterialRaisedButton materialRaisedButton3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.NumericUpDown udMemoryBuffer;
private MaterialSkin.Controls.MaterialRaisedButton btnBrush;
private MaterialSkin.Controls.MaterialRaisedButton btnDrawLine;
private MaterialSkin.Controls.MaterialRaisedButton btnRemoveLine;
private MaterialSkin.Controls.MaterialRaisedButton btnMoveLine;
private MaterialSkin.Controls.MaterialRaisedButton btnMoveVertices;
private System.Windows.Forms.Label label2;
}
}