Updated the UI for many forms.

This commit is contained in:
EternalModz
2023-03-14 13:58:31 -07:00
parent a73805a7d3
commit 3c76388ade
85 changed files with 32682 additions and 31451 deletions
@@ -0,0 +1,39 @@
using System;
using System.Drawing;
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
public class ColorChangedEventArgs : EventArgs
{
private Color selectedColor;
private HslColor selectedHslColor;
public ColorChangedEventArgs(Color selectedColor)
{
this.selectedColor = selectedColor;
this.selectedHslColor = HslColor.FromColor(selectedColor);
}
public ColorChangedEventArgs(HslColor selectedHslColor)
{
this.selectedColor = selectedHslColor.RgbValue;
this.selectedHslColor = selectedHslColor;
}
public Color SelectedColor
{
get
{
return this.selectedColor;
}
}
public HslColor SelectedHslColor
{
get
{
return this.selectedHslColor;
}
}
}
}
+19
View File
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
public enum ColorModes
{
Red,
Green,
Blue,
Hue,
Saturation,
Luminance
}
}
@@ -1,17 +1,16 @@

namespace ColorPicker
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
partial class TwoColorPanel
partial class ColorBox2D
{
/// <summary>
/// Variable del diseñador necesaria.
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Limpiar los recursos que se estén usando.
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true si los recursos administrados se deben desechar; false en caso contrario.</param>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
@@ -21,11 +20,11 @@ namespace ColorPicker
base.Dispose(disposing);
}
#region Código generado por el Diseñador de componentes
#region Component Designer generated code
/// <summary>
/// Método necesario para admitir el Diseñador. No se puede modificar
/// el contenido de este método con el editor de código.
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
@@ -0,0 +1,309 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
[DefaultEvent("ColorChanged")]
public partial class ColorBox2D: UserControl
{
#region Events
public delegate void ColorChangedEventHandler(object sender, ColorChangedEventArgs args);
public event ColorChangedEventHandler ColorChanged;
#endregion
#region Fields
private HslColor colorHSL;
private ColorModes colorMode;
private Color colorRGB = Color.Empty;
private Point markerPoint = Point.Empty;
private bool mouseMoving;
#endregion
#region Properties
public ColorModes ColorMode
{
get { return this.colorMode; }
set
{
this.colorMode = value;
this.ResetMarker();
this.Refresh();
}
}
public HslColor ColorHSL
{
get { return this.colorHSL; }
set
{
this.colorHSL = value;
this.colorRGB = this.colorHSL.RgbValue;
this.ResetMarker();
this.Refresh();
}
}
public Color ColorRGB
{
get { return this.colorRGB; }
set
{
this.colorRGB = value;
this.colorHSL = HslColor.FromColor(this.colorRGB);
this.ResetMarker();
this.Refresh();
}
}
#endregion
#region Constructors
public ColorBox2D()
{
InitializeComponent();
base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
this.colorHSL = HslColor.FromAhsl(1.0, 1.0, 1.0);
this.colorRGB = this.colorHSL.RgbValue;
this.colorMode = ColorModes.Hue;
}
#endregion
#region Overriden Methods
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
this.mouseMoving = true;
this.SetMarker(e.X, e.Y);
}
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
if (this.mouseMoving)
{
this.SetMarker(e.X, e.Y);
}
}
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
this.mouseMoving = false;
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
HslColor color = HslColor.FromAhsl(0xff);
HslColor color2 = HslColor.FromAhsl(0xff);
switch (this.ColorMode)
{
case ColorModes.Hue:
color.H = this.ColorHSL.H;
color2.H = this.ColorHSL.H;
color.S = 0.0;
color2.S = 1.0;
break;
case ColorModes.Saturation:
color.S = this.ColorHSL.S;
color2.S = this.ColorHSL.S;
color.L = 1.0;
color2.L = 0.0;
break;
case ColorModes.Luminance:
color.L = this.ColorHSL.L;
color2.L = this.ColorHSL.L;
color.S = 1.0;
color2.S = 0.0;
break;
}
for (int i = 0; i < (base.Height - 4); i++)
{
int green = MathExtensions.Round(255.0 - ((255.0 * i) / ((double)(base.Height - 4))));
Color empty = Color.Empty;
Color rgbValue = Color.Empty;
switch (this.ColorMode)
{
case ColorModes.Red:
empty = Color.FromArgb(this.ColorRGB.R, green, 0);
rgbValue = Color.FromArgb(this.ColorRGB.R, green, 0xff);
break;
case ColorModes.Green:
empty = Color.FromArgb(green, this.ColorRGB.G, 0);
rgbValue = Color.FromArgb(green, this.ColorRGB.G, 0xff);
break;
case ColorModes.Blue:
empty = Color.FromArgb(0, green, this.ColorRGB.B);
rgbValue = Color.FromArgb(0xff, green, this.ColorRGB.B);
break;
case ColorModes.Hue:
color2.L = color.L = 1.0 - (((double)i) / ((double)(base.Height - 4)));
empty = color.RgbValue;
rgbValue = color2.RgbValue;
break;
case ColorModes.Saturation:
case ColorModes.Luminance:
color2.H = color.H = ((double)i) / ((double)(base.Width - 4));
empty = color.RgbValue;
rgbValue = color2.RgbValue;
break;
}
Rectangle rect = new Rectangle(2, 2, base.Width - 4, 1);
Rectangle rectangle2 = new Rectangle(2, i + 2, base.Width - 4, 1);
if ((this.ColorMode == ColorModes.Saturation) || (this.ColorMode == ColorModes.Luminance))
{
rect = new Rectangle(2, 2, 1, base.Height - 4);
rectangle2 = new Rectangle(i + 2, 2, 1, base.Height - 4);
using (LinearGradientBrush brush = new LinearGradientBrush(rect, empty, rgbValue, 90f, false))
{
e.Graphics.FillRectangle(brush, rectangle2);
continue;
}
}
using (LinearGradientBrush brush2 = new LinearGradientBrush(rect, empty, rgbValue, 0f, false))
{
e.Graphics.FillRectangle(brush2, rectangle2);
}
}
Pen white = Pens.White;
if (this.colorHSL.L >= 0.78431372549019607)
{
if ((this.colorHSL.H < 0.072222222222222215) || (this.colorHSL.H > 0.55555555555555558))
{
if (this.colorHSL.S <= 0.27450980392156865)
{
white = Pens.Black;
}
}
else
{
white = Pens.Black;
}
}
e.Graphics.DrawEllipse(white, this.markerPoint.X - 5, this.markerPoint.Y - 5, 10, 10);
}
#endregion
#region Private Methods
private HslColor GetColor(int x, int y)
{
int num;
int num2;
int num3;
HslColor color = HslColor.FromAhsl(0xff);
switch (this.ColorMode)
{
case ColorModes.Red:
num2 = MathExtensions.Round(255.0 * (1.0 - (((double)y) / ((double)(base.Height - 4)))));
num3 = MathExtensions.Round((255.0 * x) / ((double)(base.Width - 4)));
return HslColor.FromColor(Color.FromArgb(this.colorRGB.R, num2, num3));
case ColorModes.Green:
num = MathExtensions.Round(255.0 * (1.0 - (((double)y) / ((double)(base.Height - 4)))));
num3 = MathExtensions.Round((255.0 * x) / ((double)(base.Width - 4)));
return HslColor.FromColor(Color.FromArgb(num, this.colorRGB.G, num3));
case ColorModes.Blue:
num = MathExtensions.Round((255.0 * x) / ((double)(base.Width - 4)));
num2 = MathExtensions.Round(255.0 * (1.0 - (((double)y) / ((double)(base.Height - 4)))));
return HslColor.FromColor(Color.FromArgb(num, num2, this.colorRGB.B));
case ColorModes.Hue:
color.H = this.colorHSL.H;
color.S = ((double)x) / ((double)(base.Width - 4));
color.L = 1.0 - (((double)y) / ((double)(base.Height - 4)));
return color;
case ColorModes.Saturation:
color.S = this.colorHSL.S;
color.H = ((double)x) / ((double)(base.Width - 4));
color.L = 1.0 - (((double)y) / ((double)(base.Height - 4)));
return color;
case ColorModes.Luminance:
color.L = this.colorHSL.L;
color.H = ((double)x) / ((double)(base.Width - 4));
color.S = 1.0 - (((double)y) / ((double)(base.Height - 4)));
return color;
}
return color;
}
private void ResetMarker()
{
switch (this.colorMode)
{
case ColorModes.Red:
this.markerPoint.X = MathExtensions.Round(((base.Width - 4) * this.colorRGB.B) / 255.0);
this.markerPoint.Y = MathExtensions.Round((base.Height - 4) * (1.0 - (((double)this.colorRGB.G) / 255.0)));
return;
case ColorModes.Green:
this.markerPoint.X = MathExtensions.Round(((base.Width - 4) * this.colorRGB.B) / 255.0);
this.markerPoint.Y = MathExtensions.Round((base.Height - 4) * (1.0 - (((double)this.colorRGB.R) / 255.0)));
return;
case ColorModes.Blue:
this.markerPoint.X = MathExtensions.Round(((base.Width - 4) * this.colorRGB.R) / 255.0);
this.markerPoint.Y = MathExtensions.Round((base.Height - 4) * (1.0 - (((double)this.colorRGB.G) / 255.0)));
return;
case ColorModes.Hue:
this.markerPoint.X = MathExtensions.Round((base.Width - 4) * this.colorHSL.S);
this.markerPoint.Y = MathExtensions.Round((base.Height - 4) * (1.0 - this.colorHSL.L));
return;
case ColorModes.Saturation:
this.markerPoint.X = MathExtensions.Round((base.Width - 4) * this.colorHSL.H);
this.markerPoint.Y = MathExtensions.Round((base.Height - 4) * (1.0 - this.colorHSL.L));
return;
case ColorModes.Luminance:
this.markerPoint.X = MathExtensions.Round((base.Width - 4) * this.colorHSL.H);
this.markerPoint.Y = MathExtensions.Round((base.Height - 4) * (1.0 - this.colorHSL.S));
return;
}
}
private void SetMarker(int x, int y)
{
x = MathExtensions.LimitToRange(x, 0, base.Width - 4);
y = MathExtensions.LimitToRange(y, 0, base.Height - 4);
if ((this.markerPoint.X != x) || (this.markerPoint.Y != y))
{
this.markerPoint = new Point(x, y);
this.colorHSL = this.GetColor(x, y);
this.colorRGB = this.colorHSL.RgbValue;
this.Refresh();
if (this.ColorChanged != null)
{
this.ColorChanged(this, new ColorChangedEventArgs(this.colorRGB));
}
}
}
#endregion
}
}
+36
View File
@@ -0,0 +1,36 @@
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
partial class ColorHexagon
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}
}
@@ -0,0 +1,402 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Threading;
using System.Windows.Forms;
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
[DefaultEvent("ColorChanged")]
public partial class ColorHexagon: UserControl
{
# region Fields
private const float COEFFCIENT = 0.824f;
private ColorHexagonElement[] hexagonElements = new ColorHexagonElement[0x93];
private float[] matrix1 = new float[] { -0.5f, -1f, -0.5f, 0.5f, 1f, 0.5f };
private float[] matrix2 = new float[] { 0.824f, 0f, -0.824f, -0.824f, 0f, 0.824f };
private int oldSelectedHexagonIndex = -1;
private int sectorMaximum = 7;
private int selectedHexagonIndex = -1;
#endregion
#region Events
public delegate void ColorChangedEventHandler(object sender, ColorChangedEventArgs args);
public event ColorChangedEventHandler ColorChanged;
#endregion
#region Properties
public Color SelectedColor
{
get
{
if (this.selectedHexagonIndex < 0)
{
return Color.Empty;
}
return this.hexagonElements[this.selectedHexagonIndex].CurrentColor;
}
}
#endregion
#region Constructors
public ColorHexagon()
{
base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
base.SetStyle(ControlStyles.UserPaint, true);
base.SetStyle(ControlStyles.Opaque, true);
base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
base.SetStyle(ControlStyles.ResizeRedraw, true);
base.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
for (int i = 0; i < this.hexagonElements.Length; i++)
{
this.hexagonElements[i] = new ColorHexagonElement();
}
InitializeComponent();
}
#endregion
#region Methods/Functions
private void DrawHexagonHighlighter(int selectedHexagonIndex)
{
if (selectedHexagonIndex != this.oldSelectedHexagonIndex)
{
if (this.oldSelectedHexagonIndex >= 0)
{
this.hexagonElements[this.oldSelectedHexagonIndex].IsHovered = false;
base.Invalidate(this.hexagonElements[this.oldSelectedHexagonIndex].BoundingRectangle);
}
this.oldSelectedHexagonIndex = selectedHexagonIndex;
if (this.oldSelectedHexagonIndex >= 0)
{
this.hexagonElements[this.oldSelectedHexagonIndex].IsHovered = true;
base.Invalidate(this.hexagonElements[this.oldSelectedHexagonIndex].BoundingRectangle);
}
}
}
private int GetHexagonIndexFromCoordinates(int xCoordinate, int yCoordinate)
{
for (int i = 0; i < this.hexagonElements.Length; i++)
{
if (this.hexagonElements[i].BoundingRectangle.Contains(xCoordinate, yCoordinate))
{
return i;
}
}
return -1;
}
private int GetHexgaonWidth(int availableHeight)
{
int num = availableHeight / (2 * this.sectorMaximum);
if ((((int) Math.Floor((double) (((double) num) / 2.0))) * 2) < num)
{
num--;
}
return num;
}
private void InitializeGrayscaleHexagons(ref Rectangle clientRectangle, int hexagonWidth,
ref int centerOfMiddleHexagonX, ref int centerOfMiddleHexagonY,
ref int index)
{
int red = 0xff;
int num4 = 0x11;
int num3 = 0x10;
int num5 = (((clientRectangle.Width - (7 * hexagonWidth)) / 2) + clientRectangle.X) - (hexagonWidth / 3);
centerOfMiddleHexagonX = num5;
centerOfMiddleHexagonY = clientRectangle.Bottom;
for (int i = 0; i < num3; i++)
{
this.hexagonElements[index].CurrentColor = Color.FromArgb(red, red, red);
this.hexagonElements[index].SetHexagonPoints((float)centerOfMiddleHexagonX, (float)centerOfMiddleHexagonY, hexagonWidth);
centerOfMiddleHexagonX += hexagonWidth;
index++;
if (i == 7)
{
centerOfMiddleHexagonX = num5 + (hexagonWidth / 2);
centerOfMiddleHexagonY += (int)(hexagonWidth * 0.824f);
}
red -= num4;
}
}
private void InitializeHexagons()
{
Rectangle clientRectangle = base.ClientRectangle;
clientRectangle.Offset(0, -8);
if (clientRectangle.Height < clientRectangle.Width)
{
clientRectangle.Inflate(-(clientRectangle.Width - clientRectangle.Height) / 2, 0);
}
else
{
clientRectangle.Inflate(0, -(clientRectangle.Height - clientRectangle.Width) / 2);
}
int hexagonWidth = this.GetHexgaonWidth(Math.Min(clientRectangle.Height, clientRectangle.Width));
int centerOfMiddleHexagonX = (clientRectangle.Left + clientRectangle.Right) / 2;
int centerOfMiddleHexagonY = (clientRectangle.Top + clientRectangle.Bottom) / 2;
centerOfMiddleHexagonY -= hexagonWidth;
this.hexagonElements[0].CurrentColor = Color.White;
this.hexagonElements[0].SetHexagonPoints((float)centerOfMiddleHexagonX, (float)centerOfMiddleHexagonY, hexagonWidth);
int index = 1;
for (int i = 1; i < this.sectorMaximum; i++)
{
float yCoordinate = centerOfMiddleHexagonY;
float xCoordinate = centerOfMiddleHexagonX + (hexagonWidth * i);
for (int j = 0; j < (this.sectorMaximum - 1); j++)
{
int num9 = (int)(hexagonWidth * this.matrix2[j]);
int num10 = (int)(hexagonWidth * this.matrix1[j]);
for (int k = 0; k < i; k++)
{
double num12 = ((0.936 * (this.sectorMaximum - i)) / ((double)this.sectorMaximum)) + 0.12;
float colorQuotient = GetColorQuotient(xCoordinate - centerOfMiddleHexagonX, yCoordinate - centerOfMiddleHexagonY);
this.hexagonElements[index].SetHexagonPoints(xCoordinate, yCoordinate, hexagonWidth);
this.hexagonElements[index].CurrentColor = ColorFromRGBRatios((double)colorQuotient, num12, 1.0);
yCoordinate += num9;
xCoordinate += num10;
index++;
}
}
}
clientRectangle.Y -= hexagonWidth + (hexagonWidth / 2);
this.InitializeGrayscaleHexagons(ref clientRectangle, hexagonWidth, ref centerOfMiddleHexagonX, ref centerOfMiddleHexagonY, ref index);
}
#endregion
#region Overridden Methods
protected override void OnMouseDown(MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
if (this.selectedHexagonIndex >= 0)
{
this.hexagonElements[this.selectedHexagonIndex].IsSelected = false;
base.Invalidate(this.hexagonElements[this.selectedHexagonIndex].BoundingRectangle);
}
this.selectedHexagonIndex = -1;
if (this.oldSelectedHexagonIndex >= 0)
{
this.selectedHexagonIndex = this.oldSelectedHexagonIndex;
this.hexagonElements[this.selectedHexagonIndex].IsSelected = true;
if (this.ColorChanged != null)
{
this.ColorChanged(this, new ColorChangedEventArgs(this.SelectedColor));
}
base.Invalidate(this.hexagonElements[this.selectedHexagonIndex].BoundingRectangle);
}
}
base.OnMouseDown(e);
}
protected override void OnMouseLeave(EventArgs e)
{
base.OnMouseLeave(e);
this.DrawHexagonHighlighter(-1);
}
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
this.DrawHexagonHighlighter(this.GetHexagonIndexFromCoordinates(e.X, e.Y));
}
protected override void OnPaint(PaintEventArgs e)
{
if (this.BackColor == Color.Transparent)
{
base.OnPaintBackground(e);
}
Graphics g = e.Graphics;
using (SolidBrush brush = new SolidBrush(this.BackColor))
{
g.FillRectangle(brush, base.ClientRectangle);
}
g.SmoothingMode = SmoothingMode.AntiAlias;
foreach (ColorHexagonElement element in this.hexagonElements)
{
element.Paint(g);
}
if (this.oldSelectedHexagonIndex >= 0)
{
this.hexagonElements[this.oldSelectedHexagonIndex].Paint(g);
}
if (this.selectedHexagonIndex >= 0)
{
this.hexagonElements[this.selectedHexagonIndex].Paint(g);
}
base.OnPaint(e);
}
protected override void OnResize(EventArgs e)
{
this.InitializeHexagons();
base.OnResize(e);
}
#endregion
#region Color Helper Functions
private static float GetColorQuotient(float value1, float value2)
{
return (float)((Math.Atan2((double)value2, (double)value1) * 180.0) / 3.1415926535897931);
}
private static int GetColorChannelValue(float value1, float value2, float value3)
{
if (value3 > 360f)
{
value3 -= 360f;
}
else if (value3 < 0f)
{
value3 += 360f;
}
if (value3 < 60f)
{
value1 += ((value2 - value1) * value3) / 60f;
}
else if (value3 < 180f)
{
value1 = value2;
}
else if (value3 < 240f)
{
value1 += ((value2 - value1) * (240f - value3)) / 60f;
}
return (int)(value1 * 255f);
}
private static Color ColorFromRGBRatios(double value1, double value2, double value3)
{
int num;
int num2;
int num3;
if (value3 == 0.0)
{
num = num2 = num3 = (int)(value2 * 255.0);
}
else
{
float num4;
if (value2 <= 0.5)
{
num4 = (float)(value2 + (value2 * value3));
}
else
{
num4 = (float)((value2 + value3) - (value2 * value3));
}
float num5 = ((float)(2.0 * value2)) - num4;
num = GetColorChannelValue(num5, num4, (float)(value1 + 120.0));
num2 = GetColorChannelValue(num5, num4, (float)value1);
num3 = GetColorChannelValue(num5, num4, (float)(value1 - 120.0));
}
return Color.FromArgb(num, num2, num3);
}
#endregion
}
#region HexagaonElement Class
internal class ColorHexagonElement
{
#region Fields
private Rectangle boundingRect = Rectangle.Empty;
private Color hexagonColor = Color.Empty;
private Point[] hexagonPoints = new Point[6];
private bool isHovered;
private bool isSelected;
#endregion
#region Methods
public void Paint(Graphics g)
{
GraphicsPath path = new GraphicsPath();
path.AddPolygon(this.hexagonPoints);
path.CloseAllFigures();
using (SolidBrush brush = new SolidBrush(this.hexagonColor))
{
g.FillPath(brush, path);
}
if (this.isHovered || this.isSelected)
{
SmoothingMode smoothingMode = g.SmoothingMode;
g.SmoothingMode = SmoothingMode.AntiAlias;
using (Pen pen = new Pen(Color.FromArgb(0x2a, 0x5b, 150), 2f))
{
g.DrawPath(pen, path);
}
using (Pen pen2 = new Pen(Color.FromArgb(150, 0xb1, 0xef), 1f))
{
g.DrawPath(pen2, path);
}
g.SmoothingMode = smoothingMode;
}
path.Dispose();
}
public void SetHexagonPoints(float xCoordinate, float yCoordinate, int hexagonWidth)
{
float num = hexagonWidth * 0.5773503f;
this.hexagonPoints[0] = new Point((int)Math.Floor((double)(xCoordinate - (hexagonWidth / 2))), ((int)Math.Floor((double)(yCoordinate - (num / 2f)))) - 1);
this.hexagonPoints[1] = new Point((int)Math.Floor((double)xCoordinate), ((int)Math.Floor((double)(yCoordinate - (hexagonWidth / 2)))) - 1);
this.hexagonPoints[2] = new Point((int)Math.Floor((double)(xCoordinate + (hexagonWidth / 2))), ((int)Math.Floor((double)(yCoordinate - (num / 2f)))) - 1);
this.hexagonPoints[3] = new Point((int)Math.Floor((double)(xCoordinate + (hexagonWidth / 2))), ((int)Math.Floor((double)(yCoordinate + (num / 2f)))) + 1);
this.hexagonPoints[4] = new Point((int)Math.Floor((double)xCoordinate), ((int)Math.Floor((double)(yCoordinate + (hexagonWidth / 2)))) + 1);
this.hexagonPoints[5] = new Point((int)Math.Floor((double)(xCoordinate - (hexagonWidth / 2))), ((int)Math.Floor((double)(yCoordinate + (num / 2f)))) + 1);
using (GraphicsPath path = new GraphicsPath())
{
path.AddPolygon(this.hexagonPoints);
this.boundingRect = Rectangle.Round(path.GetBounds());
this.boundingRect.Inflate(2, 2);
}
}
#endregion
#region Properties
public Rectangle BoundingRectangle
{
get { return this.boundingRect; }
}
public Color CurrentColor
{
get { return this.hexagonColor; }
set { this.hexagonColor = value; }
}
public bool IsHovered
{
get { return this.isHovered; }
set { this.isHovered = value; }
}
public bool IsSelected
{
get { return this.isSelected; }
set { this.isSelected = value; }
}
#endregion
}
#endregion
}
@@ -1,17 +1,16 @@

namespace ColorPicker
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
partial class ColorBox
partial class ColorSliderVertical
{
/// <summary>
/// Variable del diseñador necesaria.
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Limpiar los recursos que se estén usando.
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true si los recursos administrados se deben desechar; false en caso contrario.</param>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
@@ -21,23 +20,22 @@ namespace ColorPicker
base.Dispose(disposing);
}
#region Código generado por el Diseñador de componentes
#region Component Designer generated code
/// <summary>
/// Método necesario para admitir el Diseñador. No se puede modificar
/// el contenido de este método con el editor de código.
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// ColorBox
// ColorSlider
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.MinimumSize = new System.Drawing.Size(265, 265);
this.Name = "ColorBox";
this.Size = new System.Drawing.Size(265, 265);
this.Name = "ColorSlider";
this.Size = new System.Drawing.Size(25, 150);
this.ResumeLayout(false);
}
@@ -0,0 +1,325 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
[DefaultEvent("ColorChanged")]
public partial class ColorSliderVertical : UserControl
{
#region Events
public delegate void ColorChangedEventHandler(object sender, ColorChangedEventArgs args);
public event ColorChangedEventHandler ColorChanged;
#endregion
#region Fields
private HslColor colorHSL = HslColor.FromAhsl(0xff);
private ColorModes colorMode;
private Color colorRGB = Color.Empty;
private bool mouseMoving;
private int position;
private bool setHueSilently;
private Color nubColor;
#endregion
#region Properties
public Color ColorRGB
{
get { return this.colorRGB; }
set
{
this.colorRGB = value;
if (!this.setHueSilently)
{
this.colorHSL = HslColor.FromColor(this.ColorRGB);
}
this.ResetSlider();
this.Refresh();
}
}
public HslColor ColorHSL
{
get { return this.colorHSL; }
set
{
this.colorHSL = value;
this.colorRGB = this.colorHSL.RgbValue;
this.ResetSlider();
this.Refresh();
}
}
public ColorModes ColorMode
{
get { return this.colorMode; }
set
{
this.colorMode = value;
this.ResetSlider();
this.Refresh();
}
}
/// <summary>
/// Gets or sets the color of the selection nub.
/// </summary>
/// <value>
/// The color of the nub.
/// </value>
[Category("Appearance")]
[DefaultValue(typeof(Color), "Black")]
public Color NubColor
{
get { return this.nubColor; }
set { this.nubColor = value; }
}
/// <summary>
/// Gets or sets the position of the selection nub.
/// </summary>
/// <value>
/// The position.
/// </value>
public int Position
{
get { return this.position; }
set
{
int num = value;
num = MathExtensions.LimitToRange(num, 0, base.Height - 9);
if (num != this.position)
{
this.position = num;
this.ResetHSLRGB();
this.Refresh();
if (this.ColorChanged != null)
{
this.ColorChanged(this, new ColorChangedEventArgs(this.colorRGB));
}
}
}
}
#endregion
#region Constructors
public ColorSliderVertical()
{
InitializeComponent();
base.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
this.colorHSL = HslColor.FromAhsl(1.0, 1.0, 1.0);
this.colorRGB = this.colorHSL.RgbValue;
this.colorMode = ColorModes.Hue;
}
#endregion
#region Overridden Methods
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
this.mouseMoving = true;
this.Position = e.Y - 4;
}
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
this.mouseMoving = false;
}
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
if (this.mouseMoving)
{
this.Position = e.Y - 4;
}
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
HslColor color = HslColor.FromAhsl(0xff);
switch (this.ColorMode)
{
case ColorModes.Hue:
color.L = color.S = 1.0;
break;
case ColorModes.Saturation:
color.H = this.ColorHSL.H;
color.L = this.ColorHSL.L;
break;
case ColorModes.Luminance:
color.H = this.ColorHSL.H;
color.S = this.ColorHSL.S;
break;
}
for (int i = 0; i < (base.Height - 8); i++)
{
double num2 = 0.0;
if (this.ColorMode < ColorModes.Hue)
{
num2 = 255.0 - MathExtensions.Round((255.0 * i) / (base.Height - 8.0));
}
else
{
num2 = 1.0 - (((double)i) / ((double)(base.Height - 8)));
}
Color empty = Color.Empty;
switch (this.ColorMode)
{
case ColorModes.Red:
empty = Color.FromArgb((int)num2, this.ColorRGB.G, this.ColorRGB.B);
break;
case ColorModes.Green:
empty = Color.FromArgb(this.ColorRGB.R, (int)num2, this.ColorRGB.B);
break;
case ColorModes.Blue:
empty = Color.FromArgb(this.ColorRGB.R, this.ColorRGB.G, (int)num2);
break;
case ColorModes.Hue:
color.H = num2;
empty = color.RgbValue;
break;
case ColorModes.Saturation:
color.S = num2;
empty = color.RgbValue;
break;
case ColorModes.Luminance:
color.L = num2;
empty = color.RgbValue;
break;
}
using (Pen pen = new Pen(empty))
{
e.Graphics.DrawLine(pen, 11, i + 4, base.Width - 11, i + 4);
}
}
this.DrawSlider(e.Graphics);
}
#endregion
#region Private Methods
private void DrawSlider(Graphics g)
{
using (Pen pen = new Pen(Color.FromArgb(0x74, 0x72, 0x6a)))
{
SolidBrush fill = new SolidBrush(this.nubColor);
Point[] points = new Point[] { new Point(1, this.position), new Point(3, this.position), new Point(7, this.position + 4), new Point(3, this.position + 8), new Point(1, this.position + 8), new Point(0, this.position + 7), new Point(0, this.position + 1) };
g.FillPolygon(fill, points);
g.DrawPolygon(pen, points);
points[0] = new Point(base.Width - 2, this.position);
points[1] = new Point(base.Width - 4, this.position);
points[2] = new Point(base.Width - 8, this.position + 4);
points[3] = new Point(base.Width - 4, this.position + 8);
points[4] = new Point(base.Width - 2, this.position + 8);
points[5] = new Point(base.Width - 1, this.position + 7);
points[6] = new Point(base.Width - 1, this.position + 1);
g.FillPolygon(fill, points);
g.DrawPolygon(pen, points);
}
}
private void ResetSlider()
{
double h = 0.0;
switch (this.ColorMode)
{
case ColorModes.Red:
h = ((double)this.colorRGB.R) / 255.0;
break;
case ColorModes.Green:
h = ((double)this.colorRGB.G) / 255.0;
break;
case ColorModes.Blue:
h = ((double)this.colorRGB.B) / 255.0;
break;
case ColorModes.Hue:
h = this.colorHSL.H;
break;
case ColorModes.Saturation:
h = this.colorHSL.S;
break;
case ColorModes.Luminance:
h = this.colorHSL.L;
break;
}
this.position = (base.Height - 8) - MathExtensions.Round((base.Height - 8) * h);
}
private void ResetHSLRGB()
{
this.setHueSilently = true;
switch (this.ColorMode)
{
case ColorModes.Red:
this.ColorRGB = Color.FromArgb(0xff - MathExtensions.Round((255.0 * this.position) / ((double)(base.Height - 9))), this.ColorRGB.G, this.ColorRGB.B);
this.ColorHSL = HslColor.FromColor(this.ColorRGB);
break;
case ColorModes.Green:
this.ColorRGB = Color.FromArgb(this.ColorRGB.R, 0xff - MathExtensions.Round((255.0 * this.position) / ((double)(base.Height - 9))), this.ColorRGB.B);
this.ColorHSL = HslColor.FromColor(this.ColorRGB);
break;
case ColorModes.Blue:
this.ColorRGB = Color.FromArgb(this.ColorRGB.R, this.ColorRGB.G, 0xff - MathExtensions.Round((255.0 * this.position) / ((double)(base.Height - 9))));
this.ColorHSL = HslColor.FromColor(this.ColorRGB);
break;
case ColorModes.Hue:
this.colorHSL.H = 1.0 - (((double)this.position) / ((double)(base.Height - 9)));
this.ColorRGB = this.ColorHSL.RgbValue;
break;
case ColorModes.Saturation:
this.colorHSL.S = 1.0 - (((double)this.position) / ((double)(base.Height - 9)));
this.ColorRGB = this.ColorHSL.RgbValue;
break;
case ColorModes.Luminance:
this.colorHSL.L = 1.0 - (((double)this.position) / ((double)(base.Height - 9)));
this.ColorRGB = this.ColorHSL.RgbValue;
break;
}
this.setHueSilently = false;
}
#endregion
}
}
@@ -0,0 +1,884 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Data;
using System.Windows.Forms;
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
[DefaultProperty("Color")]
[DefaultEvent("ColorChanged")]
public partial class ColorWheel: Control
{
private const int PADDING = 10;
private const int INNER_RADIUS = 200;
private const int OUTER_RADIUS = INNER_RADIUS + 50;
#region Fields
private Brush _brush;
private PointF _centerPoint;
private Color _color;
private int _colorStep;
private bool _dragStartedWithinWheel;
private HslColor _hslColor;
private int _largeChange;
private float _radius;
private int _selectionSize;
private int _smallChange;
private int _updateCount;
#endregion
#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="ColorWheel"/> class.
/// </summary>
public ColorWheel()
{
this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.Selectable | ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, true);
this.Color = Color.Black;
this.ColorStep = 4;
this.SelectionSize = 10;
this.SmallChange = 1;
this.LargeChange = 5;
this.SelectionGlyph = this.CreateSelectionGlyph();
}
#endregion
#region Events
/// <summary>
/// Occurs when the Color property value changes
/// </summary>
[Category("Property Changed")]
public event EventHandler ColorChanged;
/// <summary>
/// Occurs when the ColorStep property value changes
/// </summary>
[Category("Property Changed")]
public event EventHandler ColorStepChanged;
/// <summary>
/// Occurs when the HslColor property value changes
/// </summary>
[Category("Property Changed")]
public event EventHandler HslColorChanged;
/// <summary>
/// Occurs when the LargeChange property value changes
/// </summary>
[Category("Property Changed")]
public event EventHandler LargeChangeChanged;
/// <summary>
/// Occurs when the SelectionSize property value changes
/// </summary>
[Category("Property Changed")]
public event EventHandler SelectionSizeChanged;
/// <summary>
/// Occurs when the SmallChange property value changes
/// </summary>
[Category("Property Changed")]
public event EventHandler SmallChangeChanged;
#endregion
#region Overridden Methods
/// <summary>
/// Releases the unmanaged resources used by the <see cref="T:System.Windows.Forms.Control" /> and its child controls and optionally releases the managed resources.
/// </summary>
/// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (_brush != null)
{
_brush.Dispose();
}
if (this.SelectionGlyph != null)
{
this.SelectionGlyph.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// Determines whether the specified key is a regular input key or a special key that requires preprocessing.
/// </summary>
/// <param name="keyData">One of the <see cref="T:System.Windows.Forms.Keys" /> values.</param>
/// <returns>true if the specified key is a regular input key; otherwise, false.</returns>
protected override bool IsInputKey(Keys keyData)
{
bool result;
if ((keyData & Keys.Left) == Keys.Left || (keyData & Keys.Up) == Keys.Up || (keyData & Keys.Down) == Keys.Down || (keyData & Keys.Right) == Keys.Right || (keyData & Keys.PageUp) == Keys.PageUp || (keyData & Keys.PageDown) == Keys.PageDown)
{
result = true;
}
else
{
result = base.IsInputKey(keyData);
}
return result;
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.GotFocus" /> event.
/// </summary>
/// <param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
protected override void OnGotFocus(EventArgs e)
{
base.OnGotFocus(e);
this.Invalidate();
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.KeyDown" /> event.
/// </summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.KeyEventArgs" /> that contains the event data.</param>
protected override void OnKeyDown(KeyEventArgs e)
{
HslColor color;
double hue;
int step;
color = this.HslColor;
hue = color.H;
step = e.Shift ? this.LargeChange : this.SmallChange;
switch (e.KeyCode)
{
case Keys.Right:
case Keys.Up:
hue += step;
break;
case Keys.Left:
case Keys.Down:
hue -= step;
break;
case Keys.PageUp:
hue += this.LargeChange;
break;
case Keys.PageDown:
hue -= this.LargeChange;
break;
}
if (hue >= 360)
{
hue = 0;
}
if (hue < 0)
{
hue = 359;
}
if (hue != color.H)
{
color.H = hue;
// As the Color and HslColor properties update each other, need to temporarily disable this and manually set both
// otherwise the wheel "sticks" due to imprecise conversion from RGB to HSL
this.LockUpdates = true;
this.Color = color.ToRgbColor();
this.HslColor = color;
this.LockUpdates = false;
e.Handled = true;
}
base.OnKeyDown(e);
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.LostFocus" /> event.
/// </summary>
/// <param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
protected override void OnLostFocus(EventArgs e)
{
base.OnLostFocus(e);
this.Invalidate();
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.MouseDown" /> event.
/// </summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data.</param>
protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
if (!this.Focused && this.TabStop)
{
this.Focus();
}
if (e.Button == MouseButtons.Left && this.IsPointInWheel(e.Location))
{
_dragStartedWithinWheel = true;
this.SetColor(e.Location);
}
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.MouseMove" /> event.
/// </summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data.</param>
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
if (e.Button == MouseButtons.Left && _dragStartedWithinWheel)
{
this.SetColor(e.Location);
}
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.MouseUp"/> event.
/// </summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs"/> that contains the event data. </param>
protected override void OnMouseUp(MouseEventArgs e)
{
base.OnMouseUp(e);
_dragStartedWithinWheel = false;
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.PaddingChanged" /> event.
/// </summary>
/// <param name="e">A <see cref="T:System.EventArgs" /> that contains the event data.</param>
protected override void OnPaddingChanged(EventArgs e)
{
base.OnPaddingChanged(e);
this.RefreshWheel();
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.Paint" /> event.
/// </summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.PaintEventArgs" /> that contains the event data.</param>
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
if (this.AllowPainting)
{
base.OnPaintBackground(e);
if (this.BackgroundImage == null && this.Parent != null && (this.BackColor == this.Parent.BackColor || this.Parent.BackColor.A != 255))
{
ButtonRenderer.DrawParentBackground(e.Graphics, this.DisplayRectangle, this);
}
if (_brush != null)
{
e.Graphics.FillPie(_brush, this.ClientRectangle, 0, 360);
}
// smooth out the edge of the wheel
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
using (Pen pen = new Pen(this.BackColor, 2))
{
e.Graphics.DrawEllipse(pen, new RectangleF(_centerPoint.X - _radius, _centerPoint.Y - _radius, _radius * 2, _radius * 2));
}
if (!this.Color.IsEmpty)
{
this.PaintCurrentColor(e);
}
}
}
/// <summary>
/// Raises the <see cref="E:System.Windows.Forms.Control.Resize" /> event.
/// </summary>
/// <param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
this.RefreshWheel();
}
#endregion
#region Public Properties
/// <summary>
/// Gets or sets the component color.
/// </summary>
/// <value>The component color.</value>
[Category("Appearance")]
[DefaultValue(typeof(Color), "Black")]
public virtual Color Color
{
get { return _color; }
set
{
if (this.Color != value)
{
_color = value;
this.OnColorChanged(EventArgs.Empty);
}
}
}
/// <summary>
/// Gets or sets the increment for rendering the color wheel.
/// </summary>
/// <value>The color step.</value>
/// <exception cref="System.ArgumentOutOfRangeException">Value must be between 1 and 359</exception>
[Category("Appearance")]
[DefaultValue(4)]
public virtual int ColorStep
{
get { return _colorStep; }
set
{
if (value < 1 || value > 359)
{
throw new ArgumentOutOfRangeException("value", value, "Value must be between 1 and 359");
}
if (this.ColorStep != value)
{
_colorStep = value;
this.OnColorStepChanged(EventArgs.Empty);
}
}
}
/// <summary>
/// Gets or sets the component color.
/// </summary>
/// <value>The component color.</value>
[Category("Appearance")]
[DefaultValue(typeof(HslColor), "0, 0, 0")]
[Browsable(false) /* disable editing until I write a proper type convertor */]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public virtual HslColor HslColor
{
get { return _hslColor; }
set
{
if (this.HslColor != value)
{
_hslColor = value;
this.OnHslColorChanged(EventArgs.Empty);
}
}
}
/// <summary>
/// Gets or sets a value to be added to or subtracted from the <see cref="Color"/> property when the wheel selection is moved a large distance.
/// </summary>
/// <value>A numeric value. The default value is 5.</value>
[Category("Behavior")]
[DefaultValue(5)]
public virtual int LargeChange
{
get { return _largeChange; }
set
{
if (this.LargeChange != value)
{
_largeChange = value;
this.OnLargeChangeChanged(EventArgs.Empty);
}
}
}
/// <summary>
/// Gets or sets the size of the selection handle.
/// </summary>
/// <value>The size of the selection handle.</value>
[Category("Appearance")]
[DefaultValue(10)]
public virtual int SelectionSize
{
get { return _selectionSize; }
set
{
if (this.SelectionSize != value)
{
_selectionSize = value;
this.OnSelectionSizeChanged(EventArgs.Empty);
}
}
}
/// <summary>
/// Gets or sets a value to be added to or subtracted from the <see cref="Color"/> property when the wheel selection is moved a small distance.
/// </summary>
/// <value>A numeric value. The default value is 1.</value>
[Category("Behavior")]
[DefaultValue(1)]
public virtual int SmallChange
{
get { return _smallChange; }
set
{
if (this.SmallChange != value)
{
_smallChange = value;
this.OnSmallChangeChanged(EventArgs.Empty);
}
}
}
#endregion
#region Protected Properties
/// <summary>
/// Gets a value indicating whether painting of the control is allowed.
/// </summary>
/// <value>
/// <c>true</c> if painting of the control is allowed; otherwise, <c>false</c>.
/// </value>
protected virtual bool AllowPainting
{
get { return _updateCount == 0; }
}
protected Color[] Colors { get; set; }
protected bool LockUpdates { get; set; }
protected PointF[] Points { get; set; }
protected Image SelectionGlyph { get; set; }
#endregion
#region Public Members
/// <summary>
/// Disables any redrawing of the image box
/// </summary>
public virtual void BeginUpdate()
{
_updateCount++;
}
/// <summary>
/// Enables the redrawing of the image box
/// </summary>
public virtual void EndUpdate()
{
if (_updateCount > 0)
{
_updateCount--;
}
if (this.AllowPainting)
{
this.Invalidate();
}
}
#endregion
#region Protected Members
/// <summary>
/// Calculates wheel attributes.
/// </summary>
protected virtual void CalculateWheel()
{
List<PointF> points;
List<Color> colors;
points = new List<PointF>();
colors = new List<Color>();
// Only define the points if the control is above a minimum size, otherwise if it's too small,
// you get an "out of memory" exceptions (of all things) when creating the brush
if (this.ClientSize.Width > 16 && this.ClientSize.Height > 16)
{
int w;
int h;
w = this.ClientSize.Width;
h = this.ClientSize.Height;
_centerPoint = new PointF(w / 2.0F, h / 2.0F);
_radius = this.GetRadius(_centerPoint);
for (double angle = 0; angle < 360; angle += this.ColorStep)
{
double angleR;
PointF location;
angleR = angle * (Math.PI / 180);
location = this.GetColorLocation(angleR, _radius);
points.Add(location);
colors.Add(new HslColor(angle, 1.0, 0.5).ToRgbColor());
}
}
this.Points = points.ToArray();
this.Colors = colors.ToArray();
}
/// <summary>
/// Creates the gradient brush used to paint the wheel.
/// </summary>
protected virtual Brush CreateGradientBrush()
{
Brush result;
if (this.Points.Length != 0 && this.Points.Length == this.Colors.Length)
{
result = new PathGradientBrush(this.Points, WrapMode.Clamp)
{
CenterPoint = _centerPoint,
CenterColor = Color.White,
SurroundColors = this.Colors
};
}
else
{
result = null;
}
return result;
}
/// <summary>
/// Creates the selection glyph.
/// </summary>
protected virtual Image CreateSelectionGlyph()
{
Image image;
int halfSize;
halfSize = this.SelectionSize / 2;
image = new Bitmap(this.SelectionSize + 1, this.SelectionSize + 1);
using (Graphics g = Graphics.FromImage(image))
{
Point[] diamondOuter;
diamondOuter = new[]
{
new Point(halfSize, 0), new Point(this.SelectionSize, halfSize), new Point(halfSize, this.SelectionSize), new Point(0, halfSize)
};
g.FillPolygon(SystemBrushes.Control, diamondOuter);
g.DrawPolygon(SystemPens.ControlDark, diamondOuter);
using (Pen pen = new Pen(Color.FromArgb(128, SystemColors.ControlDark)))
{
g.DrawLine(pen, halfSize, 1, this.SelectionSize - 1, halfSize);
g.DrawLine(pen, halfSize, 2, this.SelectionSize - 2, halfSize);
g.DrawLine(pen, halfSize, this.SelectionSize - 1, this.SelectionSize - 2, halfSize + 1);
g.DrawLine(pen, halfSize, this.SelectionSize - 2, this.SelectionSize - 3, halfSize + 1);
}
using (Pen pen = new Pen(Color.FromArgb(196, SystemColors.ControlLightLight)))
{
g.DrawLine(pen, halfSize, this.SelectionSize - 1, 1, halfSize);
}
g.DrawLine(SystemPens.ControlLightLight, 1, halfSize, halfSize, 1);
}
return image;
}
/// <summary>
/// Gets the point within the wheel representing the source color.
/// </summary>
/// <param name="color">The color.</param>
protected PointF GetColorLocation(Color color)
{
return this.GetColorLocation(new HslColor(color));
}
/// <summary>
/// Gets the point within the wheel representing the source color.
/// </summary>
/// <param name="color">The color.</param>
protected virtual PointF GetColorLocation(HslColor color)
{
double angle;
double radius;
angle = color.H * Math.PI / 180;
radius = _radius * color.S;
return this.GetColorLocation(angle, radius);
}
protected PointF GetColorLocation(double angleR, double radius)
{
double x;
double y;
x = this.Padding.Left + _centerPoint.X + Math.Cos(angleR) * radius;
y = this.Padding.Top + _centerPoint.Y - Math.Sin(angleR) * radius;
return new PointF((float)x, (float)y);
}
protected float GetRadius(PointF centerPoint)
{
return Math.Min(centerPoint.X, centerPoint.Y) - (Math.Max(this.Padding.Horizontal, this.Padding.Vertical) + (this.SelectionSize / 2));
}
/// <summary>
/// Determines whether the specified point is within the bounds of the color wheel.
/// </summary>
/// <param name="point">The point.</param>
/// <returns><c>true</c> if the specified point is within the bounds of the color wheel; otherwise, <c>false</c>.</returns>
protected bool IsPointInWheel(Point point)
{
PointF normalized;
// http://my.safaribooksonline.com/book/programming/csharp/9780672331985/graphics-with-windows-forms-and-gdiplus/ch17lev1sec21
normalized = new PointF(point.X - _centerPoint.X, point.Y - _centerPoint.Y);
return (normalized.X * normalized.X + normalized.Y * normalized.Y) <= (_radius * _radius);
}
/// <summary>
/// Raises the <see cref="ColorChanged" /> event.
/// </summary>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
protected virtual void OnColorChanged(EventArgs e)
{
EventHandler handler;
if (!this.LockUpdates)
{
this.HslColor = new HslColor(this.Color);
}
this.Refresh();
handler = this.ColorChanged;
if (handler != null)
{
handler(this, e);
}
}
/// <summary>
/// Raises the <see cref="ColorStepChanged" /> event.
/// </summary>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
protected virtual void OnColorStepChanged(EventArgs e)
{
EventHandler handler;
this.RefreshWheel();
handler = this.ColorStepChanged;
if (handler != null)
{
handler(this, e);
}
}
/// <summary>
/// Raises the <see cref="HslColorChanged" /> event.
/// </summary>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
protected virtual void OnHslColorChanged(EventArgs e)
{
EventHandler handler;
if (!this.LockUpdates)
{
this.Color = this.HslColor.ToRgbColor();
}
this.Invalidate();
handler = this.HslColorChanged;
if (handler != null)
{
handler(this, e);
}
}
/// <summary>
/// Raises the <see cref="LargeChangeChanged" /> event.
/// </summary>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
protected virtual void OnLargeChangeChanged(EventArgs e)
{
EventHandler handler;
handler = this.LargeChangeChanged;
if (handler != null)
{
handler(this, e);
}
}
/// <summary>
/// Raises the <see cref="SelectionSizeChanged" /> event.
/// </summary>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
protected virtual void OnSelectionSizeChanged(EventArgs e)
{
EventHandler handler;
if (this.SelectionGlyph != null)
{
this.SelectionGlyph.Dispose();
}
this.SelectionGlyph = this.CreateSelectionGlyph();
this.RefreshWheel();
handler = this.SelectionSizeChanged;
if (handler != null)
{
handler(this, e);
}
}
/// <summary>
/// Raises the <see cref="SmallChangeChanged" /> event.
/// </summary>
/// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
protected virtual void OnSmallChangeChanged(EventArgs e)
{
EventHandler handler;
handler = this.SmallChangeChanged;
if (handler != null)
{
handler(this, e);
}
}
protected void PaintColor(PaintEventArgs e, HslColor color)
{
this.PaintColor(e, color, false);
}
protected virtual void PaintColor(PaintEventArgs e, HslColor color, bool includeFocus)
{
PointF location;
location = this.GetColorLocation(color);
if (!float.IsNaN(location.X) && !float.IsNaN(location.Y))
{
int x;
int y;
x = (int)location.X - (this.SelectionSize / 2);
y = (int)location.Y - (this.SelectionSize / 2);
if (this.SelectionGlyph == null)
{
e.Graphics.DrawRectangle(Pens.Black, x, y, this.SelectionSize, this.SelectionSize);
}
else
{
e.Graphics.DrawImage(this.SelectionGlyph, x, y);
}
if (this.Focused && includeFocus)
{
ControlPaint.DrawFocusRectangle(e.Graphics, new Rectangle(x - 1, y - 1, this.SelectionSize + 2, this.SelectionSize + 2));
}
}
}
protected virtual void PaintCurrentColor(PaintEventArgs e)
{
this.PaintColor(e, this.HslColor, true);
}
protected virtual void SetColor(Point point)
{
double dx;
double dy;
double angle;
double distance;
double saturation;
dx = Math.Abs(point.X - _centerPoint.X - this.Padding.Left);
dy = Math.Abs(point.Y - _centerPoint.Y - this.Padding.Top);
angle = Math.Atan(dy / dx) / Math.PI * 180;
distance = Math.Pow((Math.Pow(dx, 2) + (Math.Pow(dy, 2))), 0.5);
saturation = distance / _radius;
if (distance < 6)
{
saturation = 0; // snap to center
}
if (point.X < _centerPoint.X)
{
angle = 180 - angle;
}
if (point.Y > _centerPoint.Y)
{
angle = 360 - angle;
}
this.LockUpdates = true;
this.HslColor = new HslColor(angle, saturation, 0.5);
this.Color = this.HslColor.ToRgbColor();
this.LockUpdates = false;
}
#endregion
#region Private Members
/// <summary>
/// Refreshes the wheel attributes and then repaints the control
/// </summary>
private void RefreshWheel()
{
if (_brush != null)
{
_brush.Dispose();
}
this.CalculateWheel();
_brush = this.CreateGradientBrush();
this.Invalidate();
}
#endregion
}
}
+353
View File
@@ -0,0 +1,353 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Runtime.InteropServices;
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
[StructLayout(LayoutKind.Sequential)]
public struct HslColor
{
public static readonly HslColor Empty;
private double hue;
private double saturation;
private double luminance;
private int alpha;
public HslColor(int a, double h, double s, double l)
{
this.alpha = a;
this.hue = h;
this.saturation = s;
this.luminance = l;
this.A = a;
this.H = this.hue;
this.S = this.saturation;
this.L = this.luminance;
}
public HslColor(double h, double s, double l)
{
this.alpha = 0xff;
this.hue = h;
this.saturation = s;
this.luminance = l;
}
public HslColor(Color color)
{
this.alpha = color.A;
this.hue = 0.0;
this.saturation = 0.0;
this.luminance = 0.0;
this.RGBtoHSL(color);
}
public static HslColor FromArgb(int a, int r, int g, int b)
{
return new HslColor(Color.FromArgb(a, r, g, b));
}
public static HslColor FromColor(Color color)
{
return new HslColor(color);
}
public static HslColor FromAhsl(int a)
{
return new HslColor(a, 0.0, 0.0, 0.0);
}
public static HslColor FromAhsl(int a, HslColor hsl)
{
return new HslColor(a, hsl.hue, hsl.saturation, hsl.luminance);
}
public static HslColor FromAhsl(double h, double s, double l)
{
return new HslColor(0xff, h, s, l);
}
public static HslColor FromAhsl(int a, double h, double s, double l)
{
return new HslColor(a, h, s, l);
}
public static bool operator ==(HslColor left, HslColor right)
{
return (((left.A == right.A) && (left.H == right.H)) && ((left.S == right.S) && (left.L == right.L)));
}
public static bool operator !=(HslColor left, HslColor right)
{
return !(left == right);
}
public override bool Equals(object obj)
{
if (obj is HslColor)
{
HslColor color = (HslColor)obj;
if (((this.A == color.A) && (this.H == color.H)) && ((this.S == color.S) && (this.L == color.L)))
{
return true;
}
}
return false;
}
public override int GetHashCode()
{
return (((this.alpha.GetHashCode() ^ this.hue.GetHashCode()) ^ this.saturation.GetHashCode()) ^ this.luminance.GetHashCode());
}
[DefaultValue((double)0.0), Category("Appearance"), Description("H Channel value")]
public double H
{
get
{
return this.hue;
}
set
{
this.hue = value;
this.hue = (this.hue > 1.0) ? 1.0 : ((this.hue < 0.0) ? 0.0 : this.hue);
}
}
[Category("Appearance"), Description("S Channel value"), DefaultValue((double)0.0)]
public double S
{
get
{
return this.saturation;
}
set
{
this.saturation = value;
this.saturation = (this.saturation > 1.0) ? 1.0 : ((this.saturation < 0.0) ? 0.0 : this.saturation);
}
}
[Category("Appearance"), Description("L Channel value"), DefaultValue((double)0.0)]
public double L
{
get
{
return this.luminance;
}
set
{
this.luminance = value;
this.luminance = (this.luminance > 1.0) ? 1.0 : ((this.luminance < 0.0) ? 0.0 : this.luminance);
}
}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public Color RgbValue
{
get
{
return this.HSLtoRGB();
}
set
{
this.RGBtoHSL(value);
}
}
public int A
{
get
{
return this.alpha;
}
set
{
this.alpha = (value > 0xff) ? 0xff : ((value < 0) ? 0 : value);
}
}
public bool IsEmpty
{
get
{
return ((((this.alpha == 0) && (this.H == 0.0)) && (this.S == 0.0)) && (this.L == 0.0));
}
}
public Color ToRgbColor()
{
return this.ToRgbColor(this.A);
}
public Color ToRgbColor(int alpha)
{
double q;
if (this.L < 0.5)
{
q = this.L * (1 + this.S);
}
else
{
q = this.L + this.S - (this.L * this.S);
}
double p = 2 * this.L - q;
double hk = this.H / 360;
// r,g,b colors
double[] tc = new[]
{
hk + (1d / 3d), hk, hk - (1d / 3d)
};
double[] colors = new[]
{
0.0, 0.0, 0.0
};
for (int color = 0; color < colors.Length; color++)
{
if (tc[color] < 0)
{
tc[color] += 1;
}
if (tc[color] > 1)
{
tc[color] -= 1;
}
if (tc[color] < (1d / 6d))
{
colors[color] = p + ((q - p) * 6 * tc[color]);
}
else if (tc[color] >= (1d / 6d) && tc[color] < (1d / 2d))
{
colors[color] = q;
}
else if (tc[color] >= (1d / 2d) && tc[color] < (2d / 3d))
{
colors[color] = p + ((q - p) * 6 * (2d / 3d - tc[color]));
}
else
{
colors[color] = p;
}
colors[color] *= 255;
}
return Color.FromArgb(alpha, (int)colors[0], (int)colors[1], (int)colors[2]);
}
private Color HSLtoRGB()
{
int num2;
int red = this.Round(this.luminance * 255.0);
int blue = this.Round(((1.0 - this.saturation) * (this.luminance / 1.0)) * 255.0);
double num4 = ((double)(red - blue)) / 255.0;
if ((this.hue >= 0.0) && (this.hue <= 0.16666666666666666))
{
num2 = this.Round((((this.hue - 0.0) * num4) * 1530.0) + blue);
return Color.FromArgb(this.alpha, red, num2, blue);
}
if (this.hue <= 0.33333333333333331)
{
num2 = this.Round((-((this.hue - 0.16666666666666666) * num4) * 1530.0) + red);
return Color.FromArgb(this.alpha, num2, red, blue);
}
if (this.hue <= 0.5)
{
num2 = this.Round((((this.hue - 0.33333333333333331) * num4) * 1530.0) + blue);
return Color.FromArgb(this.alpha, blue, red, num2);
}
if (this.hue <= 0.66666666666666663)
{
num2 = this.Round((-((this.hue - 0.5) * num4) * 1530.0) + red);
return Color.FromArgb(this.alpha, blue, num2, red);
}
if (this.hue <= 0.83333333333333337)
{
num2 = this.Round((((this.hue - 0.66666666666666663) * num4) * 1530.0) + blue);
return Color.FromArgb(this.alpha, num2, blue, red);
}
if (this.hue <= 1.0)
{
num2 = this.Round((-((this.hue - 0.83333333333333337) * num4) * 1530.0) + red);
return Color.FromArgb(this.alpha, red, blue, num2);
}
return Color.FromArgb(this.alpha, 0, 0, 0);
}
private void RGBtoHSL(Color color)
{
int r;
int g;
double num4;
this.alpha = color.A;
if (color.R > color.G)
{
r = color.R;
g = color.G;
}
else
{
r = color.G;
g = color.R;
}
if (color.B > r)
{
r = color.B;
}
else if (color.B < g)
{
g = color.B;
}
int num3 = r - g;
this.luminance = ((double)r) / 255.0;
if (r == 0)
{
this.saturation = 0.0;
}
else
{
this.saturation = ((double)num3) / ((double)r);
}
if (num3 == 0)
{
num4 = 0.0;
}
else
{
num4 = 60.0 / ((double)num3);
}
if (r == color.R)
{
if (color.G < color.B)
{
this.hue = (360.0 + (num4 * (color.G - color.B))) / 360.0;
}
else
{
this.hue = (num4 * (color.G - color.B)) / 360.0;
}
}
else if (r == color.G)
{
this.hue = (120.0 + (num4 * (color.B - color.R))) / 360.0;
}
else if (r == color.B)
{
this.hue = (240.0 + (num4 * (color.R - color.G))) / 360.0;
}
else
{
this.hue = 0.0;
}
}
private int Round(double val)
{
return (int)(val + 0.5);
}
static HslColor()
{
Empty = new HslColor();
}
}
}
+25
View File
@@ -0,0 +1,25 @@
using System;
namespace MechanikaDesign.WinForms.UI.ColorPicker
{
internal static class MathExtensions
{
public static int Round(double val)
{
int num = (int)val;
int num2 = (int)(val * 100.0);
if ((num2 % 100) >= 50)
{
num++;
}
return num;
}
public static int LimitToRange(int value, int inclusiveMinimum, int inclusiveMaximum)
{
if (value < inclusiveMinimum) { return inclusiveMinimum; }
if (value > inclusiveMaximum) { return inclusiveMaximum; }
return value;
}
}
}
+143 -160
View File
@@ -30,17 +30,13 @@
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutThisProgram));
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
this.DiscordServerButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.WebsiteButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.GitHubButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.label3 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.label7 = new System.Windows.Forms.Label();
this.LegacyDevelopersTab = new MetroFramework.Controls.MetroTabPage();
this.OthersTab = new MetroFramework.Controls.MetroTabPage();
this.label6 = new System.Windows.Forms.Label();
this.GitHubButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.DiscordServerButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.WebsiteButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.ProgramInformationTabControl = new CBH.Controls.CrEaTiiOn_TabPage();
this.DevelopersTab = new System.Windows.Forms.TabPage();
this.label8 = new System.Windows.Forms.Label();
this.panel6 = new System.Windows.Forms.Panel();
this.AboutEternalModzButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.EternalModzGitHubButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
@@ -61,11 +57,13 @@
this.PhoenixARCGitHubButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.crEaTiiOn_Ultimate_PictureBox1 = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.ProgramInformationTabControl = new CBH.Controls.CrEaTiiOn_TabPage();
this.LegacyDevelopersTab = new MetroFramework.Controls.MetroTabPage();
this.label3 = new System.Windows.Forms.Label();
this.OthersTab = new MetroFramework.Controls.MetroTabPage();
this.label6 = new System.Windows.Forms.Label();
this.ProgramDetailsTab = new System.Windows.Forms.TabPage();
this.panel2.SuspendLayout();
this.LegacyDevelopersTab.SuspendLayout();
this.OthersTab.SuspendLayout();
this.ProgramInformationTabControl.SuspendLayout();
this.DevelopersTab.SuspendLayout();
this.panel6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.crEaTiiOn_Ultimate_PictureBox3)).BeginInit();
@@ -75,9 +73,58 @@
((System.ComponentModel.ISupportInitialize)(this.crEaTiiOn_Ultimate_PictureBox2)).BeginInit();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.crEaTiiOn_Ultimate_PictureBox1)).BeginInit();
this.ProgramInformationTabControl.SuspendLayout();
this.LegacyDevelopersTab.SuspendLayout();
this.OthersTab.SuspendLayout();
this.SuspendLayout();
//
// panel2
//
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.GitHubButton);
this.panel2.Controls.Add(this.DiscordServerButton);
this.panel2.Controls.Add(this.WebsiteButton);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(641, 45);
this.panel2.TabIndex = 0;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Segoe UI", 15F);
this.label7.Location = new System.Drawing.Point(3, 8);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(109, 28);
this.label7.TabIndex = 20;
this.label7.Text = "PCK Studio";
//
// GitHubButton
//
this.GitHubButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.GitHubButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.GitHubButton.BorderRadius = 15;
this.GitHubButton.BorderSize = 1;
this.GitHubButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.GitHubButton.FlatAppearance.BorderSize = 0;
this.GitHubButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.GitHubButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.GitHubButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.GitHubButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.GitHubButton.ForeColor = System.Drawing.Color.White;
this.GitHubButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.GitHubButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.GitHubButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.GitHubButton.Location = new System.Drawing.Point(543, 7);
this.GitHubButton.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.GitHubButton.Name = "GitHubButton";
this.GitHubButton.Size = new System.Drawing.Size(90, 30);
this.GitHubButton.TabIndex = 17;
this.GitHubButton.Text = "GitHub";
this.GitHubButton.TextColor = System.Drawing.Color.White;
this.GitHubButton.UseVisualStyleBackColor = false;
this.GitHubButton.Click += new System.EventHandler(this.GitHubPageButton);
//
// DiscordServerButton
//
this.DiscordServerButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
@@ -130,122 +177,28 @@
this.WebsiteButton.UseVisualStyleBackColor = false;
this.WebsiteButton.Click += new System.EventHandler(this.WebsiteButton_Click);
//
// GitHubButton
// ProgramInformationTabControl
//
this.GitHubButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.GitHubButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.GitHubButton.BorderRadius = 15;
this.GitHubButton.BorderSize = 1;
this.GitHubButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.GitHubButton.FlatAppearance.BorderSize = 0;
this.GitHubButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.GitHubButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.GitHubButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.GitHubButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.GitHubButton.ForeColor = System.Drawing.Color.White;
this.GitHubButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.GitHubButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.GitHubButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.GitHubButton.Location = new System.Drawing.Point(543, 7);
this.GitHubButton.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
this.GitHubButton.Name = "GitHubButton";
this.GitHubButton.Size = new System.Drawing.Size(90, 30);
this.GitHubButton.TabIndex = 17;
this.GitHubButton.Text = "GitHub";
this.GitHubButton.TextColor = System.Drawing.Color.White;
this.GitHubButton.UseVisualStyleBackColor = false;
this.GitHubButton.Click += new System.EventHandler(this.GitHubPageButton);
//
// label3
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.label3.Font = new System.Drawing.Font("Segoe UI", 9F);
this.label3.Location = new System.Drawing.Point(3, 0);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(372, 45);
this.label3.TabIndex = 7;
this.label3.Text = "Base program and PCK development by: Jam1gamer\r\nVisual tools, server development " +
"functions and OG UI by: JackHasWifi\r\nDevelopment assisted by: XxModZxXWiiPlaza a" +
"nd SlothWiiPlaza";
//
// panel2
//
this.panel2.Controls.Add(this.label7);
this.panel2.Controls.Add(this.GitHubButton);
this.panel2.Controls.Add(this.DiscordServerButton);
this.panel2.Controls.Add(this.WebsiteButton);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(641, 45);
this.panel2.TabIndex = 0;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Segoe UI", 15F);
this.label7.Location = new System.Drawing.Point(3, 8);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(109, 28);
this.label7.TabIndex = 20;
this.label7.Text = "PCK Studio";
//
// LegacyDevelopersTab
//
this.LegacyDevelopersTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.LegacyDevelopersTab.Controls.Add(this.label3);
this.LegacyDevelopersTab.HorizontalScrollbarBarColor = true;
this.LegacyDevelopersTab.HorizontalScrollbarHighlightOnWheel = false;
this.LegacyDevelopersTab.HorizontalScrollbarSize = 10;
this.LegacyDevelopersTab.Location = new System.Drawing.Point(139, 4);
this.LegacyDevelopersTab.Name = "LegacyDevelopersTab";
this.LegacyDevelopersTab.Size = new System.Drawing.Size(498, 363);
this.LegacyDevelopersTab.TabIndex = 0;
this.LegacyDevelopersTab.Text = "Legacy Developers";
this.LegacyDevelopersTab.UseCustomBackColor = true;
this.LegacyDevelopersTab.UseCustomForeColor = true;
this.LegacyDevelopersTab.VerticalScrollbarBarColor = true;
this.LegacyDevelopersTab.VerticalScrollbarHighlightOnWheel = false;
this.LegacyDevelopersTab.VerticalScrollbarSize = 10;
//
// OthersTab
//
this.OthersTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.OthersTab.Controls.Add(this.label6);
this.OthersTab.HorizontalScrollbarBarColor = true;
this.OthersTab.HorizontalScrollbarHighlightOnWheel = true;
this.OthersTab.HorizontalScrollbarSize = 10;
this.OthersTab.Location = new System.Drawing.Point(139, 4);
this.OthersTab.Name = "OthersTab";
this.OthersTab.Size = new System.Drawing.Size(498, 363);
this.OthersTab.TabIndex = 1;
this.OthersTab.Text = "Others";
this.OthersTab.UseCustomBackColor = true;
this.OthersTab.UseCustomForeColor = true;
this.OthersTab.VerticalScrollbarBarColor = true;
this.OthersTab.VerticalScrollbarHighlightOnWheel = false;
this.OthersTab.VerticalScrollbarSize = 10;
//
// label6
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.label6.Font = new System.Drawing.Font("Segoe UI", 9F);
this.label6.Location = new System.Drawing.Point(3, 0);
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(199, 30);
this.label6.TabIndex = 8;
this.label6.Text = "3D rendering found by: NewAgent\r\n3D skin rendering by: Łukasz Rejman";
this.ProgramInformationTabControl.Alignment = System.Windows.Forms.TabAlignment.Left;
this.ProgramInformationTabControl.Controls.Add(this.DevelopersTab);
this.ProgramInformationTabControl.Controls.Add(this.LegacyDevelopersTab);
this.ProgramInformationTabControl.Controls.Add(this.OthersTab);
this.ProgramInformationTabControl.Controls.Add(this.ProgramDetailsTab);
this.ProgramInformationTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.ProgramInformationTabControl.ItemSize = new System.Drawing.Size(35, 135);
this.ProgramInformationTabControl.Location = new System.Drawing.Point(0, 45);
this.ProgramInformationTabControl.Multiline = true;
this.ProgramInformationTabControl.Name = "ProgramInformationTabControl";
this.ProgramInformationTabControl.SelectedIndex = 0;
this.ProgramInformationTabControl.ShowOuterBorders = false;
this.ProgramInformationTabControl.Size = new System.Drawing.Size(641, 371);
this.ProgramInformationTabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.ProgramInformationTabControl.SquareColor = System.Drawing.Color.White;
this.ProgramInformationTabControl.TabIndex = 2;
//
// DevelopersTab
//
this.DevelopersTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.DevelopersTab.Controls.Add(this.label8);
this.DevelopersTab.Controls.Add(this.panel6);
this.DevelopersTab.Controls.Add(this.panel5);
this.DevelopersTab.Controls.Add(this.panel4);
@@ -256,19 +209,6 @@
this.DevelopersTab.TabIndex = 2;
this.DevelopersTab.Text = "Developers";
//
// label8
//
this.label8.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label8.AutoSize = true;
this.label8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.label8.Font = new System.Drawing.Font("Segoe UI", 9F);
this.label8.Location = new System.Drawing.Point(16, 365);
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(372, 135);
this.label8.TabIndex = 9;
this.label8.Text = resources.GetString("label8.Text");
//
// panel6
//
this.panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
@@ -625,24 +565,69 @@
this.label1.TabIndex = 4;
this.label1.Text = "PhoenixARC";
//
// ProgramInformationTabControl
// LegacyDevelopersTab
//
this.ProgramInformationTabControl.Alignment = System.Windows.Forms.TabAlignment.Left;
this.ProgramInformationTabControl.Controls.Add(this.DevelopersTab);
this.ProgramInformationTabControl.Controls.Add(this.LegacyDevelopersTab);
this.ProgramInformationTabControl.Controls.Add(this.OthersTab);
this.ProgramInformationTabControl.Controls.Add(this.ProgramDetailsTab);
this.ProgramInformationTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.ProgramInformationTabControl.ItemSize = new System.Drawing.Size(35, 135);
this.ProgramInformationTabControl.Location = new System.Drawing.Point(0, 45);
this.ProgramInformationTabControl.Multiline = true;
this.ProgramInformationTabControl.Name = "ProgramInformationTabControl";
this.ProgramInformationTabControl.SelectedIndex = 0;
this.ProgramInformationTabControl.ShowOuterBorders = false;
this.ProgramInformationTabControl.Size = new System.Drawing.Size(641, 371);
this.ProgramInformationTabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.ProgramInformationTabControl.SquareColor = System.Drawing.Color.White;
this.ProgramInformationTabControl.TabIndex = 2;
this.LegacyDevelopersTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.LegacyDevelopersTab.Controls.Add(this.label3);
this.LegacyDevelopersTab.HorizontalScrollbarBarColor = true;
this.LegacyDevelopersTab.HorizontalScrollbarHighlightOnWheel = false;
this.LegacyDevelopersTab.HorizontalScrollbarSize = 10;
this.LegacyDevelopersTab.Location = new System.Drawing.Point(139, 4);
this.LegacyDevelopersTab.Name = "LegacyDevelopersTab";
this.LegacyDevelopersTab.Size = new System.Drawing.Size(498, 363);
this.LegacyDevelopersTab.TabIndex = 0;
this.LegacyDevelopersTab.Text = "Legacy Developers";
this.LegacyDevelopersTab.UseCustomBackColor = true;
this.LegacyDevelopersTab.UseCustomForeColor = true;
this.LegacyDevelopersTab.VerticalScrollbarBarColor = true;
this.LegacyDevelopersTab.VerticalScrollbarHighlightOnWheel = false;
this.LegacyDevelopersTab.VerticalScrollbarSize = 10;
//
// label3
//
this.label3.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label3.AutoSize = true;
this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.label3.Font = new System.Drawing.Font("Segoe UI", 9F);
this.label3.Location = new System.Drawing.Point(3, 0);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(372, 45);
this.label3.TabIndex = 7;
this.label3.Text = "Base program and PCK development by: Jam1gamer\r\nVisual tools, server development " +
"functions and OG UI by: JackHasWifi\r\nDevelopment assisted by: XxModZxXWiiPlaza a" +
"nd SlothWiiPlaza";
//
// OthersTab
//
this.OthersTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.OthersTab.Controls.Add(this.label6);
this.OthersTab.HorizontalScrollbarBarColor = true;
this.OthersTab.HorizontalScrollbarHighlightOnWheel = true;
this.OthersTab.HorizontalScrollbarSize = 10;
this.OthersTab.Location = new System.Drawing.Point(139, 4);
this.OthersTab.Name = "OthersTab";
this.OthersTab.Size = new System.Drawing.Size(498, 363);
this.OthersTab.TabIndex = 1;
this.OthersTab.Text = "Others";
this.OthersTab.UseCustomBackColor = true;
this.OthersTab.UseCustomForeColor = true;
this.OthersTab.VerticalScrollbarBarColor = true;
this.OthersTab.VerticalScrollbarHighlightOnWheel = false;
this.OthersTab.VerticalScrollbarSize = 10;
//
// label6
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.label6.Font = new System.Drawing.Font("Segoe UI", 9F);
this.label6.Location = new System.Drawing.Point(3, 0);
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(199, 30);
this.label6.TabIndex = 8;
this.label6.Text = "3D rendering found by: NewAgent\r\n3D skin rendering by: Łukasz Rejman";
//
// ProgramDetailsTab
//
@@ -673,12 +658,8 @@
this.Text = "About PCK Studio";
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.LegacyDevelopersTab.ResumeLayout(false);
this.LegacyDevelopersTab.PerformLayout();
this.OthersTab.ResumeLayout(false);
this.OthersTab.PerformLayout();
this.ProgramInformationTabControl.ResumeLayout(false);
this.DevelopersTab.ResumeLayout(false);
this.DevelopersTab.PerformLayout();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.crEaTiiOn_Ultimate_PictureBox3)).EndInit();
@@ -691,7 +672,10 @@
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.crEaTiiOn_Ultimate_PictureBox1)).EndInit();
this.ProgramInformationTabControl.ResumeLayout(false);
this.LegacyDevelopersTab.ResumeLayout(false);
this.LegacyDevelopersTab.PerformLayout();
this.OthersTab.ResumeLayout(false);
this.OthersTab.PerformLayout();
this.ResumeLayout(false);
}
@@ -722,7 +706,6 @@
private System.Windows.Forms.Label label1;
private CBH.Controls.CrEaTiiOn_TabPage ProgramInformationTabControl;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton AboutEternalModzButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton EternalModzGitHubButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton AboutMikuButton;
@@ -120,17 +120,6 @@
<metadata name="folderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="label8.Text" xml:space="preserve">
<value>Base program and PCK development by: Jam1gamer
Visual tools, server development functions and OG UI by: JackHasWifi
Development assisted by: XxModZxXWiiPlaza and SlothWiiPlaza
Restored and maintained by: PhoenixARC
3D rendering found by: NewAgent
3D skin rendering by: Łukasz Rejman
Additional development by: MattNL, Miku-666 and EternalModz
Code base overhaul by: Miku-666
UI maintained, redesigned and cleaned up by: EternalModz</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="crEaTiiOn_Ultimate_PictureBox3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
@@ -28,8 +28,7 @@
/// </summary>
private void InitializeComponent()
{
this.acceptBtn = new System.Windows.Forms.Button();
this.CancelBtn = new System.Windows.Forms.Button();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ChangeTile));
this.treeViewBlocks = new System.Windows.Forms.TreeView();
this.treeViewItems = new System.Windows.Forms.TreeView();
this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
@@ -37,38 +36,13 @@
this.metroTabControl1 = new MetroFramework.Controls.MetroTabControl();
this.Blocks = new System.Windows.Forms.TabPage();
this.Items = new System.Windows.Forms.TabPage();
this.SaveButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.CancelButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.metroTabControl1.SuspendLayout();
this.Blocks.SuspendLayout();
this.Items.SuspendLayout();
this.SuspendLayout();
//
// acceptBtn
//
this.acceptBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.acceptBtn.ForeColor = System.Drawing.Color.White;
this.acceptBtn.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.acceptBtn.Location = new System.Drawing.Point(92, 196);
this.acceptBtn.Name = "acceptBtn";
this.acceptBtn.Size = new System.Drawing.Size(75, 23);
this.acceptBtn.TabIndex = 7;
this.acceptBtn.Text = "Save";
this.acceptBtn.UseVisualStyleBackColor = true;
this.acceptBtn.Click += new System.EventHandler(this.AcceptBtn_Click);
//
// CancelBtn
//
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.CancelBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CancelBtn.ForeColor = System.Drawing.Color.White;
this.CancelBtn.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.CancelBtn.Location = new System.Drawing.Point(172, 196);
this.CancelBtn.Name = "CancelBtn";
this.CancelBtn.Size = new System.Drawing.Size(75, 23);
this.CancelBtn.TabIndex = 13;
this.CancelBtn.Text = "Cancel";
this.CancelBtn.UseVisualStyleBackColor = true;
this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
//
// treeViewBlocks
//
this.treeViewBlocks.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
@@ -144,7 +118,7 @@
this.metroTabControl1.Controls.Add(this.Items);
this.metroTabControl1.Location = new System.Drawing.Point(6, 8);
this.metroTabControl1.Name = "metroTabControl1";
this.metroTabControl1.SelectedIndex = 1;
this.metroTabControl1.SelectedIndex = 0;
this.metroTabControl1.Size = new System.Drawing.Size(326, 184);
this.metroTabControl1.Style = MetroFramework.MetroColorStyle.White;
this.metroTabControl1.TabIndex = 18;
@@ -171,20 +145,76 @@
this.Items.TabIndex = 0;
this.Items.Text = "Items";
//
// SaveButton
//
this.SaveButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BorderRadius = 10;
this.SaveButton.BorderSize = 1;
this.SaveButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.BorderSize = 0;
this.SaveButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SaveButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.SaveButton.ForeColor = System.Drawing.Color.White;
this.SaveButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.Image = ((System.Drawing.Image)(resources.GetObject("SaveButton.Image")));
this.SaveButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.SaveButton.Location = new System.Drawing.Point(46, 198);
this.SaveButton.Name = "SaveButton";
this.SaveButton.Size = new System.Drawing.Size(120, 40);
this.SaveButton.TabIndex = 19;
this.SaveButton.Text = "Save";
this.SaveButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.SaveButton.TextColor = System.Drawing.Color.White;
this.SaveButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.SaveButton.UseVisualStyleBackColor = false;
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
//
// CancelButton
//
this.CancelButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BorderRadius = 10;
this.CancelButton.BorderSize = 1;
this.CancelButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.BorderSize = 0;
this.CancelButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CancelButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.CancelButton.ForeColor = System.Drawing.Color.White;
this.CancelButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.Image = ((System.Drawing.Image)(resources.GetObject("CancelButton.Image")));
this.CancelButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.CancelButton.Location = new System.Drawing.Point(172, 198);
this.CancelButton.Name = "CancelButton";
this.CancelButton.Size = new System.Drawing.Size(120, 40);
this.CancelButton.TabIndex = 20;
this.CancelButton.Text = "Cancel";
this.CancelButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CancelButton.TextColor = System.Drawing.Color.White;
this.CancelButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.CancelButton.UseVisualStyleBackColor = false;
this.CancelButton.Click += new System.EventHandler(this.CancelButton_Click);
//
// ChangeTile
//
this.AcceptButton = this.acceptBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.CancelButton = this.CancelBtn;
this.ClientSize = new System.Drawing.Size(338, 228);
this.ClientSize = new System.Drawing.Size(338, 246);
this.ControlBox = false;
this.Controls.Add(this.CancelButton);
this.Controls.Add(this.SaveButton);
this.Controls.Add(this.metroTextBox1);
this.Controls.Add(this.metroLabel2);
this.Controls.Add(this.metroTabControl1);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.acceptBtn);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.ForeColor = System.Drawing.Color.White;
this.Location = new System.Drawing.Point(0, 0);
@@ -207,8 +237,6 @@
}
#endregion
private System.Windows.Forms.Button acceptBtn;
private System.Windows.Forms.Button CancelBtn;
private System.Windows.Forms.TreeView treeViewBlocks;
private System.Windows.Forms.TreeView treeViewItems;
private MetroFramework.Controls.MetroLabel metroLabel2;
@@ -216,5 +244,7 @@
private MetroFramework.Controls.MetroTabControl metroTabControl1;
private System.Windows.Forms.TabPage Blocks;
private System.Windows.Forms.TabPage Items;
}
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton SaveButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton CancelButton;
}
}
@@ -138,20 +138,30 @@ namespace PckStudio.Forms.Additional_Popups.Animation
private void CancelBtn_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
private void AcceptBtn_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(selectedTile)) CancelBtn_Click(sender, e);
DialogResult = DialogResult.OK;
Close();
}
private void ChangeTile_Load(object sender, EventArgs e)
{
}
private void SaveButton_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(selectedTile)) CancelBtn_Click(sender, e);
DialogResult = DialogResult.OK;
Close();
}
private void CancelButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
}
}
@@ -117,4 +117,24 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="SaveButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAC7SURBVEhL7dUxCsJAEIXhvYSgNt5HvE+086QWQQ+hzTrr/orwxsTskC4fTGHec1YMIWkxSc75
YHOxmapjxTAr9rXfZPwQipmPo6h/Gz6EUuSA4kysKEQP+P198vkPiGKdIg9jnSIPY50iD2OdIvfcbTqb
HXO0edi4WKfIPfIA2bVTjRQVRe5ZU/mwa5saKSqK3OMdsK2RoqLIPbP/Re+bvGKab/K1VkJ61ikLywvn
9qq1KT9wz7rFP1J6AtRIA8v77Q/zAAAAAElFTkSuQmCC
</value>
</data>
<data name="CancelButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAADhSURBVEhL7ZUxDoMwEAR5Ak2avDDJUynT5TXODtqTjLiALULHSCeMb3dPAguGi25KKQ/VzbfN
4MHr2xwJXip4q5qHoLUHnt5eo+aommZZKR/V3a2foLEW8I5u5SCwEDaH0LMG9sMDhDZAOoQ996A9PMBg
IyyGsPYe9IcHGB0A8xDX8fBAAfUJ4Vqvu49zCkEODP4XDgqrHwss3skhFHTeI1LA6oW60tPVBUYHwOK0
sPYe9A/BYCOkR5E996B9CEIbIA0P6FkD+0MQWAib4QEaa2F7iJrnfq5BgvN+OBdrhuEL4zIcCRCLHWEA
AAAASUVORK5CYII=
</value>
</data>
</root>
@@ -30,35 +30,23 @@ namespace PckStudio.Forms.Additional_Popups.Animation
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.SaveBtn = new System.Windows.Forms.Button();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrameEditor));
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.CancelBtn = new System.Windows.Forms.Button();
this.FrameTimeUpDown = new System.Windows.Forms.NumericUpDown();
this.FrameList = new System.Windows.Forms.TreeView();
this.TextureIcons = new System.Windows.Forms.ImageList(this.components);
this.CancelButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.SaveButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
((System.ComponentModel.ISupportInitialize)(this.FrameTimeUpDown)).BeginInit();
this.SuspendLayout();
//
// SaveBtn
//
this.SaveBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SaveBtn.ForeColor = System.Drawing.Color.White;
this.SaveBtn.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.SaveBtn.Location = new System.Drawing.Point(12, 228);
this.SaveBtn.Name = "SaveBtn";
this.SaveBtn.Size = new System.Drawing.Size(75, 23);
this.SaveBtn.TabIndex = 7;
this.SaveBtn.Text = "Save";
this.SaveBtn.UseVisualStyleBackColor = true;
this.SaveBtn.Click += new System.EventHandler(this.SaveBtn_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.label1.Location = new System.Drawing.Point(16, 204);
this.label1.Location = new System.Drawing.Point(63, 204);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 13);
this.label1.TabIndex = 10;
@@ -69,32 +57,18 @@ namespace PckStudio.Forms.Additional_Popups.Animation
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.label3.Location = new System.Drawing.Point(32, 13);
this.label3.Location = new System.Drawing.Point(79, 13);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(115, 13);
this.label3.TabIndex = 12;
this.label3.Text = "may/matt was here :3";
//
// CancelBtn
//
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.CancelBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CancelBtn.ForeColor = System.Drawing.Color.White;
this.CancelBtn.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.CancelBtn.Location = new System.Drawing.Point(92, 228);
this.CancelBtn.Name = "CancelBtn";
this.CancelBtn.Size = new System.Drawing.Size(75, 23);
this.CancelBtn.TabIndex = 13;
this.CancelBtn.Text = "Cancel";
this.CancelBtn.UseVisualStyleBackColor = true;
this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
//
// FrameTimeUpDown
//
this.FrameTimeUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.FrameTimeUpDown.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.FrameTimeUpDown.ForeColor = System.Drawing.SystemColors.Window;
this.FrameTimeUpDown.Location = new System.Drawing.Point(87, 202);
this.FrameTimeUpDown.Location = new System.Drawing.Point(134, 202);
this.FrameTimeUpDown.Maximum = new decimal(new int[] {
10000,
0,
@@ -123,7 +97,7 @@ namespace PckStudio.Forms.Additional_Popups.Animation
this.FrameList.HideSelection = false;
this.FrameList.ImageIndex = 0;
this.FrameList.ImageList = this.TextureIcons;
this.FrameList.Location = new System.Drawing.Point(12, 37);
this.FrameList.Location = new System.Drawing.Point(59, 37);
this.FrameList.Name = "FrameList";
this.FrameList.SelectedImageIndex = 0;
this.FrameList.ShowLines = false;
@@ -137,21 +111,77 @@ namespace PckStudio.Forms.Additional_Popups.Animation
this.TextureIcons.ImageSize = new System.Drawing.Size(32, 32);
this.TextureIcons.TransparentColor = System.Drawing.Color.Transparent;
//
// CancelButton
//
this.CancelButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BorderRadius = 10;
this.CancelButton.BorderSize = 1;
this.CancelButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.BorderSize = 0;
this.CancelButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CancelButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.CancelButton.ForeColor = System.Drawing.Color.White;
this.CancelButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.Image = ((System.Drawing.Image)(resources.GetObject("CancelButton.Image")));
this.CancelButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.CancelButton.Location = new System.Drawing.Point(141, 240);
this.CancelButton.Name = "CancelButton";
this.CancelButton.Size = new System.Drawing.Size(120, 40);
this.CancelButton.TabIndex = 22;
this.CancelButton.Text = "Cancel";
this.CancelButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CancelButton.TextColor = System.Drawing.Color.White;
this.CancelButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.CancelButton.UseVisualStyleBackColor = false;
this.CancelButton.Click += new System.EventHandler(this.CancelButton_Click);
//
// SaveButton
//
this.SaveButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BorderRadius = 10;
this.SaveButton.BorderSize = 1;
this.SaveButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.BorderSize = 0;
this.SaveButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SaveButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.SaveButton.ForeColor = System.Drawing.Color.White;
this.SaveButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.Image = ((System.Drawing.Image)(resources.GetObject("SaveButton.Image")));
this.SaveButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.SaveButton.Location = new System.Drawing.Point(15, 240);
this.SaveButton.Name = "SaveButton";
this.SaveButton.Size = new System.Drawing.Size(120, 40);
this.SaveButton.TabIndex = 21;
this.SaveButton.Text = "Save";
this.SaveButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.SaveButton.TextColor = System.Drawing.Color.White;
this.SaveButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.SaveButton.UseVisualStyleBackColor = false;
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
//
// FrameEditor
//
this.AcceptButton = this.SaveBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.CancelButton = this.CancelBtn;
this.ClientSize = new System.Drawing.Size(178, 264);
this.ClientSize = new System.Drawing.Size(273, 292);
this.ControlBox = false;
this.Controls.Add(this.CancelButton);
this.Controls.Add(this.SaveButton);
this.Controls.Add(this.FrameList);
this.Controls.Add(this.FrameTimeUpDown);
this.Controls.Add(this.CancelBtn);
this.Controls.Add(this.label3);
this.Controls.Add(this.label1);
this.Controls.Add(this.SaveBtn);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
@@ -170,10 +200,10 @@ namespace PckStudio.Forms.Additional_Popups.Animation
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button CancelBtn;
private System.Windows.Forms.NumericUpDown FrameTimeUpDown;
private System.Windows.Forms.TreeView FrameList;
public System.Windows.Forms.ImageList TextureIcons;
public System.Windows.Forms.Button SaveBtn;
}
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton CancelButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton SaveButton;
}
}
@@ -35,18 +35,28 @@ namespace PckStudio.Forms.Additional_Popups.Animation
private void SaveBtn_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
private void CancelBtn_Click(object sender, EventArgs e)
{
Close();
}
private void FrameEditor_Load(object sender, EventArgs e)
{
}
private void SaveButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
private void CancelButton_Click(object sender, EventArgs e)
{
Close();
}
}
}
@@ -120,4 +120,23 @@
<metadata name="TextureIcons.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="CancelButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAOFJREFUSEvt
lTEOgzAQBHkCTZq8MMlTKdPlNc4O2pOMuIAtQsdIJ4xvd08CC4aLbkopD9XNt83gwevbHAleKnirmoeg
tQee3l6j5qiaZlkpH9XdrZ+gsRbwjm7lILAQNofQswb2wwOENkA6hD33oD08wGAjLIaw9h70hwcYHQDz
ENfx8EAB9QnhWq+7j3MKQQ4M/hcOCqsfCyzeySEUdN4jUsDqhbrS09UFRgfA4rSw9h70D8FgI6RHkT33
oH0IQhsgDQ/oWQP7QxBYCJvhARprYXuImud+rkGC8344F2uG4QvjMhwJEIsdYQAAAABJRU5ErkJggg==
</value>
</data>
<data name="SaveButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAALtJREFUSEvt
1TEKwkAQheG9hKA23ke8T7TzpBZBD6HNOuv+ivDGxOyQLh9MYd5zVgwhaTFJzvlgc7GZqmPFMCv2td9k
/BCKmY+jqH8bPoRS5IDiTKwoRA/4/X3y+Q+IYp0iD2OdIg9jnSIPY50i99xtOpsdc7R52LhYp8g98gDZ
tVONFBVF7llT+bBrmxopKorc4x2wrZGiosg9s/9F75u8Yppv8rVWQnrWKQvLC+f2qrUpP3DPusU/UnoC
1EgDy/vtD/MAAAAASUVORK5CYII=
</value>
</data>
</root>
@@ -29,33 +29,21 @@ namespace PckStudio.Forms.Additional_Popups.Animation
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SetBulkSpeed));
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.TimeUpDown = new System.Windows.Forms.NumericUpDown();
this.CancelButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.SaveButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
((System.ComponentModel.ISupportInitialize)(this.TimeUpDown)).BeginInit();
this.SuspendLayout();
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.button1.Location = new System.Drawing.Point(57, 63);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 7;
this.button1.Text = "Save";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.label1.Location = new System.Drawing.Point(11, 35);
this.label1.Location = new System.Drawing.Point(57, 35);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(87, 13);
this.label1.TabIndex = 10;
@@ -66,31 +54,18 @@ namespace PckStudio.Forms.Additional_Popups.Animation
this.label3.AutoSize = true;
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.label3.Location = new System.Drawing.Point(40, 13);
this.label3.Location = new System.Drawing.Point(90, 13);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(188, 13);
this.label3.TabIndex = 12;
this.label3.Text = "Frame Time must be greater than 0.";
//
// button2
//
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.ForeColor = System.Drawing.Color.White;
this.button2.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.button2.Location = new System.Drawing.Point(137, 63);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 13;
this.button2.Text = "Cancel";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// TimeUpDown
//
this.TimeUpDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(17)))), ((int)(((byte)(17)))));
this.TimeUpDown.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.TimeUpDown.ForeColor = System.Drawing.SystemColors.Window;
this.TimeUpDown.Location = new System.Drawing.Point(104, 33);
this.TimeUpDown.Location = new System.Drawing.Point(150, 33);
this.TimeUpDown.Maximum = new decimal(new int[] {
10000,
0,
@@ -101,17 +76,75 @@ namespace PckStudio.Forms.Additional_Popups.Animation
this.TimeUpDown.TabIndex = 15;
this.TimeUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// CancelButton
//
this.CancelButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BorderRadius = 10;
this.CancelButton.BorderSize = 1;
this.CancelButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.BorderSize = 0;
this.CancelButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CancelButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.CancelButton.ForeColor = System.Drawing.Color.White;
this.CancelButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.Image = ((System.Drawing.Image)(resources.GetObject("CancelButton.Image")));
this.CancelButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.CancelButton.Location = new System.Drawing.Point(187, 76);
this.CancelButton.Name = "CancelButton";
this.CancelButton.Size = new System.Drawing.Size(120, 40);
this.CancelButton.TabIndex = 24;
this.CancelButton.Text = "Cancel";
this.CancelButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CancelButton.TextColor = System.Drawing.Color.White;
this.CancelButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.CancelButton.UseVisualStyleBackColor = false;
this.CancelButton.Click += new System.EventHandler(this.CancelButton_Click);
//
// SaveButton
//
this.SaveButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BorderRadius = 10;
this.SaveButton.BorderSize = 1;
this.SaveButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.BorderSize = 0;
this.SaveButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SaveButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.SaveButton.ForeColor = System.Drawing.Color.White;
this.SaveButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.Image = ((System.Drawing.Image)(resources.GetObject("SaveButton.Image")));
this.SaveButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.SaveButton.Location = new System.Drawing.Point(61, 76);
this.SaveButton.Name = "SaveButton";
this.SaveButton.Size = new System.Drawing.Size(120, 40);
this.SaveButton.TabIndex = 23;
this.SaveButton.Text = "Save";
this.SaveButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.SaveButton.TextColor = System.Drawing.Color.White;
this.SaveButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.SaveButton.UseVisualStyleBackColor = false;
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
//
// SetBulkSpeed
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.ClientSize = new System.Drawing.Size(277, 94);
this.ClientSize = new System.Drawing.Size(368, 128);
this.ControlBox = false;
this.Controls.Add(this.button2);
this.Controls.Add(this.CancelButton);
this.Controls.Add(this.SaveButton);
this.Controls.Add(this.label3);
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Controls.Add(this.TimeUpDown);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.ForeColor = System.Drawing.Color.White;
@@ -129,10 +162,10 @@ namespace PckStudio.Forms.Additional_Popups.Animation
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.NumericUpDown TimeUpDown;
}
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton CancelButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton SaveButton;
}
}
@@ -15,13 +15,23 @@ namespace PckStudio.Forms.Additional_Popups.Animation
private void button1_Click(object sender, EventArgs e)
{
if (time < 0) return;
DialogResult = DialogResult.OK;
}
private void button2_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
}
private void SaveButton_Click(object sender, EventArgs e)
{
if (time < 0) return;
DialogResult = DialogResult.OK;
}
private void CancelButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
}
}
@@ -117,4 +117,23 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="CancelButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAOFJREFUSEvt
lTEOgzAQBHkCTZq8MMlTKdPlNc4O2pOMuIAtQsdIJ4xvd08CC4aLbkopD9XNt83gwevbHAleKnirmoeg
tQee3l6j5qiaZlkpH9XdrZ+gsRbwjm7lILAQNofQswb2wwOENkA6hD33oD08wGAjLIaw9h70hwcYHQDz
ENfx8EAB9QnhWq+7j3MKQQ4M/hcOCqsfCyzeySEUdN4jUsDqhbrS09UFRgfA4rSw9h70D8FgI6RHkT33
oH0IQhsgDQ/oWQP7QxBYCJvhARprYXuImud+rkGC8344F2uG4QvjMhwJEIsdYQAAAABJRU5ErkJggg==
</value>
</data>
<data name="SaveButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAALtJREFUSEvt
1TEKwkAQheG9hKA23ke8T7TzpBZBD6HNOuv+ivDGxOyQLh9MYd5zVgwhaTFJzvlgc7GZqmPFMCv2td9k
/BCKmY+jqH8bPoRS5IDiTKwoRA/4/X3y+Q+IYp0iD2OdIg9jnSIPY50i99xtOpsdc7R52LhYp8g98gDZ
tVONFBVF7llT+bBrmxopKorc4x2wrZGiosg9s/9F75u8Yppv8rVWQnrWKQvLC+f2qrUpP3DPusU/UnoC
1EgDy/vtD/MAAAAASUVORK5CYII=
</value>
</data>
</root>
@@ -39,6 +39,7 @@
this.metroLabel1.Size = new System.Drawing.Size(352, 19);
this.metroLabel1.TabIndex = 0;
this.metroLabel1.Text = "Please wait while PCK Studio converts the requested files. (:";
this.metroLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// PleaseWait
@@ -50,6 +51,7 @@
this.Controls.Add(this.metroLabel1);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.ForeColor = System.Drawing.Color.White;
this.Location = new System.Drawing.Point(0, 0);
this.Name = "PleaseWait";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.ResumeLayout(false);
@@ -29,25 +29,51 @@
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddCategory));
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.CancelButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.AddButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.cancelButton = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label2
// CancelButton
//
resources.ApplyResources(this.label2, "label2");
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Name = "label2";
this.CancelButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BorderRadius = 10;
this.CancelButton.BorderSize = 1;
this.CancelButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.BorderSize = 0;
this.CancelButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
resources.ApplyResources(this.CancelButton, "CancelButton");
this.CancelButton.ForeColor = System.Drawing.Color.White;
this.CancelButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.Name = "CancelButton";
this.CancelButton.TextColor = System.Drawing.Color.White;
this.CancelButton.UseVisualStyleBackColor = false;
this.CancelButton.Click += new System.EventHandler(this.CancelButton_Click_1);
//
// button1
// AddButton
//
resources.ApplyResources(this.button1, "button1");
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Name = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.AddButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.AddButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.AddButton.BorderRadius = 10;
this.AddButton.BorderSize = 1;
this.AddButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.AddButton.FlatAppearance.BorderSize = 0;
this.AddButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.AddButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
resources.ApplyResources(this.AddButton, "AddButton");
this.AddButton.ForeColor = System.Drawing.Color.White;
this.AddButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.AddButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.AddButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.AddButton.Name = "AddButton";
this.AddButton.TextColor = System.Drawing.Color.White;
this.AddButton.UseVisualStyleBackColor = false;
this.AddButton.Click += new System.EventHandler(this.AddButton_Click);
//
// comboBox1
//
@@ -56,13 +82,11 @@
resources.ApplyResources(this.comboBox1, "comboBox1");
this.comboBox1.Name = "comboBox1";
//
// cancelButton
// label2
//
resources.ApplyResources(this.cancelButton, "cancelButton");
this.cancelButton.ForeColor = System.Drawing.Color.White;
this.cancelButton.Name = "cancelButton";
this.cancelButton.UseVisualStyleBackColor = true;
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
resources.ApplyResources(this.label2, "label2");
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Name = "label2";
//
// AddCategory
//
@@ -70,12 +94,12 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.ControlBox = false;
this.Controls.Add(this.cancelButton);
this.Controls.Add(this.CancelButton);
this.Controls.Add(this.AddButton);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.label2);
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AddCategory";
@@ -87,8 +111,8 @@
#endregion
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Button cancelButton;
public System.Windows.Forms.Label label2;
public System.Windows.Forms.Button button1;
}
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton AddButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton CancelButton;
}
}
@@ -18,20 +18,30 @@ namespace PckStudio.Forms.Additional_Popups.Audio
private void button1_Click(object sender, EventArgs e)
{
_category = comboBox1.Text;
DialogResult = DialogResult.OK;
if(comboBox1.SelectedIndex > -1) Close();
}
private void cancelButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
private void addCategory_Load(object sender, EventArgs e)
{
}
private void CancelButton_Click_1(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
private void AddButton_Click(object sender, EventArgs e)
{
_category = comboBox1.Text;
DialogResult = DialogResult.OK;
if (comboBox1.SelectedIndex > -1) Close();
}
}
}
@@ -117,13 +117,134 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="CancelButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="CancelButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="CancelButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAASBJREFUWEft
lk0KgzAQhd1Ll0K76xW9iHdrN932JvZ95QXUiiRp/Fn4wWCYzLw3TQ1YnZwcmr7vL15mk62hxk7xVtyd
SoZea3ROxaGGWvFSAM+rt6JRz829wLP2VhxqaBRPukXSSVDrHkCj8VYaNFoAooagxrWQbx5AwEKwOAR7
roH/zQMIWRBmhyDnPShnHkDQwjAagrVzUN48gLAN4DuEY33zgAym12u4Tr6uWchoOARsZw4yGx47jN6J
VZHRfn+BDH5eOMfs7SgKwjaA0dvO2jkoPwSCFobZq0bOe1BuCIQsCLPmAfZcA/8PgYCFYNE8QI1rIX8I
Gi0AUeYBat0D6UOo4RAfJK3ioYj+5VPoVXASrVNpqHG/j9KTk22oqg+FO4+5CKyPOAAAAABJRU5ErkJg
gg==
</value>
</data>
<data name="CancelButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="CancelButton.Location" type="System.Drawing.Point, System.Drawing">
<value>141, 63</value>
</data>
<data name="CancelButton.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 40</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="CancelButton.TabIndex" type="System.Int32, mscorlib">
<value>18</value>
</data>
<data name="CancelButton.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="CancelButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="CancelButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;CancelButton.Name" xml:space="preserve">
<value>CancelButton</value>
</data>
<data name="&gt;&gt;CancelButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;CancelButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;CancelButton.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="AddButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="AddButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="AddButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAABBSURBVFhH7dIxCgAgFMPQ3v/SumR3sHwQ8zZBagYjPW2B4zzeN8AAAwzoB7Bbx/wZ9+uY72HX
T2iAAQZ8HCDdSzYZRU7AU4PQAAAAAABJRU5ErkJggg==
</value>
</data>
<data name="AddButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="AddButton.Location" type="System.Drawing.Point, System.Drawing">
<value>15, 63</value>
</data>
<data name="AddButton.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 40</value>
</data>
<data name="AddButton.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
</data>
<data name="AddButton.Text" xml:space="preserve">
<value>Add</value>
</data>
<data name="AddButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="AddButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;AddButton.Name" xml:space="preserve">
<value>AddButton</value>
</data>
<data name="&gt;&gt;AddButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;AddButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;AddButton.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="comboBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>67, 22</value>
</data>
<data name="comboBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>192, 21</value>
</data>
<data name="comboBox1.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;comboBox1.Name" xml:space="preserve">
<value>comboBox1</value>
</data>
<data name="&gt;&gt;comboBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;comboBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;comboBox1.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="label2.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 41</value>
<value>12, 25</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>53, 13</value>
@@ -146,85 +267,6 @@
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="button1.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="button1.Location" type="System.Drawing.Point, System.Drawing">
<value>54, 76</value>
</data>
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="button1.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="button1.Text" xml:space="preserve">
<value>Add</value>
</data>
<data name="&gt;&gt;button1.Name" xml:space="preserve">
<value>button1</value>
</data>
<data name="&gt;&gt;button1.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button1.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="comboBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>64, 38</value>
</data>
<data name="comboBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>192, 21</value>
</data>
<data name="comboBox1.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;comboBox1.Name" xml:space="preserve">
<value>comboBox1</value>
</data>
<data name="&gt;&gt;comboBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;comboBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;comboBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="cancelButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="cancelButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="cancelButton.Location" type="System.Drawing.Point, System.Drawing">
<value>135, 76</value>
</data>
<data name="cancelButton.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="cancelButton.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="cancelButton.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="&gt;&gt;cancelButton.Name" xml:space="preserve">
<value>cancelButton</value>
</data>
<data name="&gt;&gt;cancelButton.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;cancelButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;cancelButton.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@@ -232,7 +274,7 @@
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>280, 121</value>
<value>274, 115</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 8.25pt</value>
@@ -2457,6 +2499,9 @@
vbLH9tge22N7bI/tsT22x/bYHttjC+3/B71iqRn22EDpAAAAAElFTkSuQmCC
</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
@@ -29,18 +29,10 @@
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CreditsEditor));
this.button1 = new System.Windows.Forms.Button();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.SaveButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.SuspendLayout();
//
// button1
//
resources.ApplyResources(this.button1, "button1");
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Name = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// richTextBox1
//
resources.ApplyResources(this.richTextBox1, "richTextBox1");
@@ -49,13 +41,33 @@
this.richTextBox1.ForeColor = System.Drawing.Color.White;
this.richTextBox1.Name = "richTextBox1";
//
// SaveButton
//
this.SaveButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BorderRadius = 10;
this.SaveButton.BorderSize = 1;
this.SaveButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.BorderSize = 0;
this.SaveButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
resources.ApplyResources(this.SaveButton, "SaveButton");
this.SaveButton.ForeColor = System.Drawing.Color.White;
this.SaveButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.Name = "SaveButton";
this.SaveButton.TextColor = System.Drawing.Color.White;
this.SaveButton.UseVisualStyleBackColor = false;
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
//
// CreditsEditor
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.Controls.Add(this.SaveButton);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.button1);
this.ForeColor = System.Drawing.Color.White;
this.MaximizeBox = false;
this.MinimizeBox = false;
@@ -66,7 +78,7 @@
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.RichTextBox richTextBox1;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton SaveButton;
}
}
@@ -17,13 +17,18 @@ namespace PckStudio.Forms.Additional_Popups.Audio
private void button1_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
private void creditsEditor_Load(object sender, EventArgs e)
{
}
private void SaveButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
}
}
@@ -118,44 +118,10 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="button1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom</value>
</data>
<data name="button1.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="button1.Location" type="System.Drawing.Point, System.Drawing">
<value>96, 172</value>
</data>
<data name="button1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>2, 3, 2, 3</value>
</data>
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
<value>74, 23</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="button1.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="button1.Text" xml:space="preserve">
<value>Save</value>
</data>
<data name="&gt;&gt;button1.Name" xml:space="preserve">
<value>button1</value>
</data>
<data name="&gt;&gt;button1.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="richTextBox1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="richTextBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>7, 5</value>
</data>
@@ -163,8 +129,9 @@
<value>2, 3, 2, 3</value>
</data>
<data name="richTextBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>254, 160</value>
<value>254, 165</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="richTextBox1.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
@@ -184,6 +151,55 @@
<value>$this</value>
</data>
<data name="&gt;&gt;richTextBox1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="SaveButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="SaveButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="SaveButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABGdBTUEAALGPC/xhBQAAAQFJREFUSEvt
1sENwjAMheEughDMgRgAsQ9XdkKswwHBHMVpf7kNzWsTKbf2k3LAfrbVG81mfdq2vdp72XO0koh4hp/B
jVIeG3j3cwNaSURSh4P84wxEaCURUYeDvOOEI7SSiMwdDu60NYIRWklElg7P7uiQi9DKwsgEbY3cvxPt
WZY79/EpIhq56livkauO9Rq56livkauO9Rq56livkRt72DvQXmTZo71nGByjrZEb29HKZjP7fnRASyPn
KBdj3FHWyDnKxRh3lDVyjnIxxh1ljZyjXIxxR1kj5ygXY9xR1sg5ysUYd5Q1y3z6aFVv1msWCn/2vl28
jvAhF9ZvVqNpfrWxvP1DM54nAAAAAElFTkSuQmCC
</value>
</data>
<data name="SaveButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="SaveButton.Location" type="System.Drawing.Point, System.Drawing">
<value>74, 173</value>
</data>
<data name="SaveButton.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 40</value>
</data>
<data name="SaveButton.TabIndex" type="System.Int32, mscorlib">
<value>18</value>
</data>
<data name="SaveButton.Text" xml:space="preserve">
<value>Save</value>
</data>
<data name="SaveButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="SaveButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;SaveButton.Name" xml:space="preserve">
<value>SaveButton</value>
</data>
<data name="&gt;&gt;SaveButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;SaveButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;SaveButton.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
@@ -196,7 +212,7 @@
<value>None</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>269, 201</value>
<value>269, 218</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 8.25pt</value>
@@ -2443,6 +2459,6 @@
<value>CreditsEditor</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>PckStudio.Classes.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
@@ -1,649 +0,0 @@
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace ColorPicker
{
/// <summary>
/// A box showing a 2D range for a color property (Hue, Saturation, Value-Brightness, Red, Green, Blue)
/// and sends an event when the marker position is changed
/// </summary>
public partial class ColorBox : UserControl
{
#region Private Constant/Read-Only Fields
private const int MARGIN0 = 2; // Margin
private const int MARGIN1 = 4; // Starting color image position -> Margin + 3d border (MARGIN0 + 2)
private const int MARGIN2 = 9; // Complete margin (to find the color image width) (MARGIN1 * 2) + 1;
private const int MARKER0 = 10; // Marker width
private const int MARKER2 = 5; // Half marker width
#endregion Private Constant/Read-Only Fields
#region Private Fields
private Bitmap _bkBuff = null; // Buffer where to draw the colors
private int _bkHeight, _bkWidth; // Buffer size
private DrawStyles _drawStyle = DrawStyles.Hue;
private double _h, _s, _v;
private bool _isDragging = false;
private int _markerX = 0;
private int _markerY = 0;
private int _r, _g, _b;
#endregion Private Fields
#region Constructors
/// <summary>Contructor</summary>
public ColorBox()
{
InitializeComponent();
this.Disposed += colorBox_Disposed;
// Initialize Colors
_h = 360.0;
_s = 1.0;
_v = 1.0;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
_drawStyle = DrawStyles.Hue;
createBkBuff();
}
#endregion Constructors
#region Public Events
/// <summary>It fires when we move the marker</summary>
public event EventHandler Scrolled;
#endregion Public Events
#region Public Properties
/// <summary>Blue value</summary>
public int B => _b;
/// <summary>Control value as a System.Drawing.Color</summary>
public System.Drawing.Color Color
{
get => Color.FromArgb(_r, _g, _b);
set
{
if (_r != value.R || _g != value.G || B != value.B)
{
_r = value.R;
_g = value.G;
_b = value.B;
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
resetMarker(true);
drawContent();
this.Invalidate();
}
}
}
/// <summary>The DrawStyle of the control (Hue, Saturation, Brightness, Red, Green or Blue)</summary>
public DrawStyles DrawStyle
{
get => _drawStyle;
set
{
if (_drawStyle != value)
{
_drawStyle = value;
resetMarker(true);
drawContent();
this.Invalidate();
}
}
}
/// <summary>Green value</summary>
public int G => _g;
/// <summary>Hue value</summary>
public double H => _h;
/// <summary>Red value</summary>
public int R => _r;
/// <summary>Control value as an int</summary>
public int RGB
{
get => ((_r & 0xFF) << 16) + ((_g & 0xFF) << 8) + (_b & 0xFF);
set
{
if (_r != ((value >> 16) & 0xFF) || _g != ((value >> 8) & 0xFF) || _b != (value & 0xFF))
{
_r = (value >> 16) & 0xFF;
_g = (value >> 8) & 0xFF;
_b = value & 0xFF;
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
resetMarker(true);
drawContent();
this.Invalidate();
}
}
}
/// <summary>Saturation value</summary>
public double S => _s;
/// <summary>Value/Brightness value</summary>
public double V => _v;
#endregion Public Properties
#region Private Methods
/// <summary>Clear the marker</summary>
/// <param name="g">Graphics to draw on</param>
private void clearMarker(Graphics g)
{
int ix = _markerX - MARKER2;
int iy = _markerY - MARKER2;
g.DrawImage(_bkBuff, new Rectangle(ix + MARGIN1, iy + MARGIN1, MARKER0 + 1, MARKER0 + 1), ix, iy, MARKER0 + 1, MARKER0 + 1, GraphicsUnit.Pixel);
}
/// <summary>Dispose the background Bitmap</summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void colorBox_Disposed(object sender, EventArgs e)
{
if (_bkBuff != null)
{
_bkBuff.Dispose();
_bkBuff = null;
}
}
/// <summary>Creates the background Bitmap</summary>
private void createBkBuff()
{
_bkHeight = this.Height - MARGIN2;
_bkWidth = this.Width - MARGIN2;
if (_bkBuff != null)
_bkBuff.Dispose();
_bkBuff = new Bitmap(_bkWidth + 1, _bkHeight + 1);
}
/// <summary>Draws the 3d border</summary>
/// <param name="g">Graphics to draw on</param>
private void drawBorder(Graphics g)
{
ControlPaint.DrawBorder3D(g, MARGIN0, MARGIN0, this.Width - MARGIN1, this.Height - MARGIN1, Border3DStyle.Sunken);
}
/// <summary>Draws the content</summary>
private void drawContent()
{
switch (_drawStyle)
{
case DrawStyles.Hue:
drawStyleHue();
break;
case DrawStyles.Saturation:
drawStyleSaturation();
break;
case DrawStyles.Brightness:
drawStyleBrightness();
break;
case DrawStyles.Red:
drawStyleRed();
break;
case DrawStyles.Green:
drawStyleGreen();
break;
case DrawStyles.Blue:
drawStyleBlue();
break;
}
}
/// <summary>Draws the Marker</summary>
/// <param name="g">Graphics to draw on</param>
/// <param name="x">X Marker position</param>
/// <param name="y">Y Marker position</param>
private void drawMarker(Graphics g, int x, int y)
{
// Delete old marker
this.clearMarker(g);
// Adjust la position
_markerX = x < 0 ? 0 : (x > _bkWidth ? _bkWidth : x);
_markerY = y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y);
// Get the color of the actual position to draw the marker in black or white
getColorHSV(x, y, out double hue, out double sat, out double val);
Pen pen;
if (val < 200.0 / 255.0)
pen = Pens.White;
else if (hue < 26.0 || hue > 200.0)
if (sat > 70 / 255.0)
pen = Pens.White;
else
pen = Pens.Black;
else
pen = Pens.Black;
g.DrawEllipse(pen, x + MARGIN1 - MARKER2, y + MARGIN1 - MARKER2, MARKER0, MARKER0);
if (x <= 5 || y <= 5 || x > _bkWidth - 5 || y > _bkHeight - 5)
{
drawBorder(g);
if (x < 3 || y < 3 || x > _bkWidth - 3 || y > _bkHeight - 3)
{
Brush brush = SystemBrushes.Control;
int w = this.Width;
int h = this.Height;
g.FillRectangle(brush, 0, 0, w, MARGIN0);
g.FillRectangle(brush, 0, MARGIN0, MARGIN0, h - MARGIN0);
g.FillRectangle(brush, w - MARGIN0, MARGIN0, MARGIN0, h - MARGIN0);
g.FillRectangle(brush, MARGIN0, h - MARGIN0, w - (MARGIN0 * 2), h);
}
}
}
/// <summary>Draws the Marker</summary>
/// <param name="x">X Marker position</param>
/// <param name="y">Y Marker position</param>
/// <param name="force">Draw the marker even if x and y value have not changed</param>
private void drawMarker(int x, int y, bool force)
{
if (force ||
_markerX != (x < 0 ? 0 : (y > _bkWidth ? _bkWidth : x)) ||
_markerY != (y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y))
)
{
using (Graphics g = this.CreateGraphics())
{
drawMarker(g, x, y);
}
}
}
/// <summary>Draw all the Blue colors</summary>
private void drawStyleBlue()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
int g = (int)Math.Round(255.0 - ((255.0 * i) / _bkHeight));
using (LinearGradientBrush br = new LinearGradientBrush(new Rectangle(0, 0, _bkWidth + 1, 1), Color.FromArgb(0, g, _b), Color.FromArgb(255, g, _b), 0, false))
{
gr.FillRectangle(br, new Rectangle(0, i, _bkWidth + 1, 1));
}
}
}
}
/// <summary>Draw all the Value/Brightness colors</summary>
private void drawStyleBrightness()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkWidth; i++)
{
double h = (360.0 * i) / _bkWidth;
ColorUtil.HSV2RGB(h, 1.0, _v, out int rS, out int gS, out int bS);
ColorUtil.HSV2RGB(h, 0.0, _v, out int rE, out int gE, out int bE);
using (LinearGradientBrush br = new LinearGradientBrush(new Rectangle(0, 0, 1, _bkHeight + 1), Color.FromArgb(rS, gS, bS), Color.FromArgb(rE, gE, bE), 90, false))
{
gr.FillRectangle(br, new Rectangle(i, 0, 1, _bkHeight + 1));
}
}
}
}
/// <summary>Draw all the Green colors</summary>
private void drawStyleGreen()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
int r = (int)Math.Round(255.0 - ((255.0 * i) / _bkHeight));
using (LinearGradientBrush br = new LinearGradientBrush(new Rectangle(0, 0, _bkWidth + 1, 1), Color.FromArgb(r, _g, 0), Color.FromArgb(r, _g, 255), 0, false))
{
gr.FillRectangle(br, new Rectangle(0, i, _bkWidth + 1, 1));
}
}
}
}
/// <summary>Draw all the Hue colors</summary>
private void drawStyleHue()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
double v = 1.0 - (double)i / _bkHeight;
ColorUtil.HSV2RGB(_h, 0.0, v, out int rS, out int gS, out int bS);
ColorUtil.HSV2RGB(_h, 1.0, v, out int rE, out int gE, out int bE);
using (LinearGradientBrush br = new LinearGradientBrush(new Rectangle(0, 0, _bkWidth +1 , 1), Color.FromArgb(rS, gS, bS), Color.FromArgb(rE, gE, bE), 0, false))
{
gr.FillRectangle(br, new Rectangle(0, i, _bkWidth + 1, 1));
}
}
}
}
/// <summary>Draw all the Red colors</summary>
private void drawStyleRed()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
int g = (int)Math.Round(255.0 - ((255.0 * i) / _bkHeight));
using (LinearGradientBrush br = new LinearGradientBrush(new Rectangle(0, 0, _bkWidth + 1, 1), Color.FromArgb(_r, g, 0), Color.FromArgb(_r, g, 255), 0, false))
{
gr.FillRectangle(br, new Rectangle(0, i, _bkWidth + 1, 1));
}
}
}
}
/// <summary>Draw all the Saturation colors</summary>
private void drawStyleSaturation()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkWidth; i++)
{
double h = (360.0 * i) / _bkWidth;
ColorUtil.HSV2RGB(h, _s, 1.0, out int rS, out int gS, out int bS);
ColorUtil.HSV2RGB(h, _s, 0.0, out int rE, out int gE, out int bE);
using (LinearGradientBrush br = new LinearGradientBrush(new Rectangle(0, 0, 1, _bkHeight + 1), Color.FromArgb(rS, gS, bS), Color.FromArgb(rE, gE, bE), 90, false))
{
gr.FillRectangle(br, new Rectangle(i, 0, 1, _bkHeight + 1));
}
}
}
}
/// <summary>Get the color at X, Y position</summary>
/// <param name="x">X position</param>
/// <param name="y">Y position</param>
/// <param name="h">Returned Hue value at X,Y position</param>
/// <param name="s">Returned Saturation value at X,Y position</param>
/// <param name="v">Returned Value/Brightness value at X,Y position</param>
private void getColorHSV(int x, int y, out double h, out double s, out double v)
{
switch (_drawStyle)
{
case DrawStyles.Hue:
h = _h;
s = (double)x / _bkWidth;
v = 1.0 - y / _bkHeight;
break;
case DrawStyles.Saturation:
h = (360.0 * x) / _bkWidth;
s = _s;
v = 1.0 - (double)y / _bkHeight;
break;
case DrawStyles.Brightness:
h = (360.0 * x) / _bkWidth;
s = 1.0 - (double)y / _bkHeight;
v = _v;
break;
case DrawStyles.Red:
ColorUtil.RGB2HSV(_r, (int)Math.Round(255.0 * (1.0 - (double)y / _bkHeight)), (int)Math.Round((255.0 * x) / _bkWidth), out h, out s, out v);
break;
case DrawStyles.Green:
ColorUtil.RGB2HSV((int)Math.Round(255.0 * (1.0 - (double)y / _bkHeight)), _g, (int)Math.Round((255.0 * x) / _bkWidth), out h, out s, out v);
break;
default: // case DrawStyles.Blue:
ColorUtil.RGB2HSV((int)Math.Round((255.0 * x) / _bkWidth), (int)Math.Round(255.0 * (1.0 - (double)y / _bkHeight)), _b, out h, out s, out v);
break;
}
}
/// <summary>Set the color from the marker position</summary>
private void resetHSVRGB()
{
switch (_drawStyle)
{
case DrawStyles.Hue:
_s = (double)_markerX / _bkWidth;
_v = 1.0 - (double)_markerY / _bkHeight;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
break;
case DrawStyles.Saturation:
_h = (360.0 * _markerX) / _bkWidth;
_v = 1.0 - (double)_markerY / _bkHeight;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
break;
case DrawStyles.Brightness:
_h = (360.0 * _markerX) / _bkWidth;
_s = 1.0 - (double)_markerY / _bkHeight;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
break;
case DrawStyles.Red:
_b = (int)Math.Round((255.0 * _markerX) / _bkWidth);
_g = (int)Math.Round(255.0 * (1.0 - (double)_markerY / _bkHeight));
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
break;
case DrawStyles.Green:
_b = (int)Math.Round((255.0 * _markerX) / _bkWidth);
_r = (int)Math.Round(255.0 * (1.0 - (double)_markerY / _bkHeight));
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
break;
case DrawStyles.Blue:
_r = (int)Math.Round((255.0 * _markerX) / _bkWidth);
_g = (int)Math.Round(255.0 * (1.0 - (double)_markerY / _bkHeight));
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
break;
}
}
/// <summary>Set the marker position from the color</summary>
/// <param name="redraw">Redraw the control after setting the marker position</param>
private void resetMarker(bool redraw)
{
switch (_drawStyle)
{
case DrawStyles.Hue:
_markerX = (int)Math.Round(_bkWidth * _s);
_markerY = (int)Math.Round(_bkHeight * (1.0 - _v));
break;
case DrawStyles.Saturation:
_markerX = (int)Math.Round(_bkWidth * _h / 360.0);
_markerY = (int)Math.Round(_bkHeight * (1.0 - _v));
break;
case DrawStyles.Brightness:
_markerX = (int)Math.Round(_bkWidth * _h / 360.0);
_markerY = (int)Math.Round(_bkHeight * (1.0 - _s));
break;
case DrawStyles.Red:
_markerX = (int)Math.Round(_bkWidth * _b / 255.0);
_markerY = (int)Math.Round(_bkHeight * (1.0 - _g / 255.0));
break;
case DrawStyles.Green:
_markerX = (int)Math.Round(_bkWidth * _b / 255.0);
_markerY = (int)Math.Round(_bkHeight * (1.0 - _r / 255.0));
break;
case DrawStyles.Blue:
_markerX = (int)Math.Round(_bkWidth * _r / 255.0);
_markerY = (int)Math.Round(_bkHeight * (1.0 - _g / 255.0));
break;
}
if (redraw)
drawMarker(_markerX, _markerY, true);
}
#endregion Private Methods
#region Protected Methods
/// <summary>The control has been loaded</summary>
/// <param name="e"></param>
protected override void OnLoad(EventArgs e)
{
drawContent();
this.Invalidate();
}
/// <summary>Process MouseDown event</summary>
/// <param name="e"></param>
protected override void OnMouseDown(MouseEventArgs e)
{
// Only check left button
if (e.Button != MouseButtons.Left)
return;
// Start dragging
_isDragging = true;
// Get the marker position
int x = e.X - MARGIN0;
x = x < 0 ? 0 : (x > _bkWidth ? _bkWidth : x);
int y = e.Y - MARGIN0;
y = y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y);
// Check that there has been a change in the position
if (x == _markerX && y == _markerY)
return;
drawMarker(x, y, false); // Redraw the slider
resetHSVRGB(); // Redraw the colors
Scrolled?.Invoke(this, e); // Send "Scrolled" event
}
/// <summary>Process MouseMove event</summary>
/// <param name="e"></param>
protected override void OnMouseMove(MouseEventArgs e)
{
// Check we are "dragging"
if (!_isDragging)
return;
// Get the marker position
int x = e.X - MARGIN0;
x = x < 0 ? 0 : (x > _bkWidth ? _bkWidth : x);
int y = e.Y - MARGIN0;
y = y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y);
// Check that there has been a change in the position
if (x == _markerX && y == _markerY)
return;
drawMarker(x, y, false); // Redraw the slider
resetHSVRGB(); // Redraw the colors
Scrolled?.Invoke(this, e); // Send "Scrolled" event
}
/// <summary>Process MouseUp event</summary>
/// <param name="e"></param>
protected override void OnMouseUp(MouseEventArgs e)
{
// Only check left button and "dragging"
if (e.Button != MouseButtons.Left || !_isDragging)
return;
// End "dragging"
_isDragging = false;
// Get the marker position
int x = e.X - MARGIN0;
x = x < 0 ? 0 : (x > _bkWidth ? _bkWidth : x);
int y = e.Y - MARGIN0;
y = y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y);
// Check that there has been a change in the position
if (x == _markerX && y == _markerY)
return;
drawMarker(x, y, false); // Redraw the slider
resetHSVRGB(); // Redraw the colors
Scrolled?.Invoke(this, e); // Send "Scrolled" event
}
/// <summary>Repaint the control</summary>
/// <param name="e"></param>
protected override void OnPaint(PaintEventArgs e)
{
drawBorder(e.Graphics);
e.Graphics.DrawImage(_bkBuff, MARGIN1, MARGIN1);
drawMarker(e.Graphics, _markerX, _markerY);
}
/// <summary>Repaint the background</summary>
/// <param name="e"></param>
protected override void OnPaintBackground(PaintEventArgs e)
{
using (SolidBrush b = new SolidBrush(this.BackColor))
{
int w = this.Width;
int h = this.Height;
e.Graphics.FillRectangle(b, 0, 0, w, MARGIN0);
e.Graphics.FillRectangle(b, 0, MARGIN0, MARGIN0, h - MARGIN0);
e.Graphics.FillRectangle(b, w - MARGIN0, MARGIN0, MARGIN0, h - MARGIN0);
e.Graphics.FillRectangle(b, MARGIN0, h - MARGIN0, w - (MARGIN0 * 2), h);
}
}
/// <summary>The control has been resized</summary>
/// <param name="e"></param>
protected override void OnResize(EventArgs e)
{
createBkBuff();
drawContent();
this.Invalidate();
}
#endregion Protected Methods
#region Public Methods
/// <summary>Set the control color from HSV values</summary>
/// <param name="h">Hue</param>
/// <param name="s">Saturation</param>
/// <param name="v">Value</param>
public void SetHSV(double h, double s, double v)
{
if (_h != (h < 0.0 ? 0.0 : h > 360.0 ? 360.0 : h) || _s != (s < 0.0 ? 0.0 : s > 1.0 ? 1.0 : s) || _v != (v < 0.0 ? 0.0 : v > 1.0 ? 1.0 : v))
{
_h = h < 0.0 ? 0.0 : h > 360.0 ? 360.0 : h;
_s = s < 0.0 ? 0.0 : s > 1.0 ? 1.0 : s;
_v = v < 0.0 ? 0.0 : v > 1.0 ? 1.0 : v;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
resetMarker(true);
drawContent();
this.Invalidate();
}
}
/// <summary>Set the control color from RGB values</summary>
/// <param name="r">Red</param>
/// <param name="g">Green</param>
/// <param name="b">Blue</param>
public void SetRGB(int r, int g, int b)
{
if (_r != (r & 0xFF) || _g != (g & 0xFF) || _b != (b & 0xFF))
{
_r = r & 0xFF;
_g = g & 0xFF;
_b = b & 0xFF;
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
resetMarker(true);
drawContent();
this.Invalidate();
}
}
#endregion Public Methods
}
}
@@ -1,217 +0,0 @@
using System;
namespace ColorPicker
{
/// <summary>Utilitats per les conversions de color</summary>
public static class ColorUtil
{
#region Public Static Methods
/// <summary>
/// Converts from CMYK to RGB
/// CMYK [0; 255]
/// RGB [0; 255]
/// --------------------------------------------
/// Red = 1-minimum(1,Cyan*(1-Black)+Black)
/// Green = 1-minimum(1,Magenta*(1-Black)+Black)
/// Blue = 1-minimum(1,Yellow*(1-Black)+Black)
/// </summary>
/// <param name="c">Cyan</param>
/// <param name="m">Magenta</param>
/// <param name="y">Yellow</param>
/// <param name="k">Black</param>
/// <param name="r">Red</param>
/// <param name="g">Green</param>
/// <param name="b">Blue</param>
public static void CMYK2RGB(int c, int m, int y, int k, out int r, out int g, out int b)
{
double dk;
dk = (double)k / 255.0;
r = (int)Math.Round((1.0 - Math.Min(1.0, (((double)c / 255.0) * (1.0 - dk)) + dk)) * 255.0);
g = (int)Math.Round((1.0 - Math.Min(1.0, (((double)m / 255.0) * (1.0 - dk)) + dk)) * 255.0);
b = (int)Math.Round((1.0 - Math.Min(1.0, (((double)y / 255.0) * (1.0 - dk)) + dk)) * 255.0);
}
/// <summary>
/// Converts from HSV to RGB
/// H [0.0; 360.0]
/// SV [0.0; 1.0]
/// RGB [0; 255]
/// </summary>
/// <param name="h">Hue</param>
/// <param name="s">Saturation</param>
/// <param name="v">Value</param>
/// <param name="r">Red</param>
/// <param name="g">Green</param>
/// <param name="b">Blue</param>
public static void HSV2RGB(double h, double s, double v, out int r, out int g, out int b)
{
double dr, dg, db;
if (v <= 0)
{
dr = 0.0;
dg = 0.0;
db = 0.0;
}
else if (s <= 0)
{
dr = v;
dg = v;
db = v;
}
else
{
double hf = h / 60.0;
int i = (int)Math.Floor(hf);
double f = hf - i;
double pv = v * (1.0 - s);
double qv = v * (1.0 - s * f);
double tv = v * (1.0 - s * (1.0 - f));
switch (i)
{
case 0: // Red is the dominant color
dr = v;
dg = tv;
db = pv;
break;
case 1: // Green is the dominant color
dr = qv;
dg = v;
db = pv;
break;
case 2:
dr = pv;
dg = v;
db = tv;
break;
case 3: // Blue is the dominant color
dr = pv;
dg = qv;
db = v;
break;
case 4:
dr = tv;
dg = pv;
db = v;
break;
case 5: // Red is the dominant color
dr = v;
dg = pv;
db = qv;
break;
case 6: // Just in case we overshoot on our math by a little, we put these here. Since its a switch it won't slow us down at all to put these here.
dr = v;
dg = tv;
db = pv;
break;
case -1:
dr = v;
dg = pv;
db = qv;
break;
default: // The color is not defined, we should throw an error.
dr = dg = db = v; // Just pretend its black/white
break;
}
}
r = Math.Min(255, Math.Max(0, (int)(dr * 255.0)));
g = Math.Min(255, Math.Max(0, (int)(dg * 255.0)));
b = Math.Min(255, Math.Max(0, (int)(db * 255.0)));
}
/// <summary>
/// Convers from RGB to CMYK
/// CMYK [0; 255]
/// RGB [0; 255]
/// RGB --> CMYK
/// ---------------------------------------
/// Black = minimum(1-Red,1-Green,1-Blue)
/// Cyan = (1-Red-Black)/(1-Black)
/// Magenta = (1-Green-Black)/(1-Black)
/// Yellow = (1-Blue-Black)/(1-Black)
/// </summary>
/// <param name="r">Red</param>
/// <param name="g">Green</param>
/// <param name="b">Blue</param>
/// <param name="c">Cyan</param>
/// <param name="m">Magenta</param>
/// <param name="y">Yellow</param>
/// <param name="k">Black</param>
public static void RGB2CMYK(int r, int g, int b, out int c, out int m, out int y, out int k)
{
double dr, dg, db;
double dk, idk;
dr = 1.0 - (r / 255.0);
dg = 1.0 - (g / 255.0);
db = 1.0 - (b / 255.0);
dk = Math.Min(dr, Math.Min(dg, db));
idk = 1.0 - dk;
if (-1e-12 < idk && idk < 1e-12) // check if idk is zero (or very close to zero)
{
c = 0;
m = 0;
y = 0;
k = 255;
}
else
{
c = (int)Math.Round(255.0 * (dr - dk) / idk);
m = (int)Math.Round(255.0 * (dg - dk) / idk);
y = (int)Math.Round(255.0 * (db - dk) / idk);
k = (int)Math.Round(255.0 * dk);
}
}
/// <summary>
/// Converts from RGB to HSV
/// RGB [0; 255]
/// H [0.0; 360.0]
/// SV [0.0; 1.0]
/// </summary>
/// <param name="r">Red</param>
/// <param name="g">Green</param>
/// <param name="b">Blue</param>
/// <param name="h">Hue</param>
/// <param name="s">Saturation</param>
/// <param name="v">Value</param>
public static void RGB2HSV(int r, int g, int b, out double h, out double s, out double v)
{
double dr = r / 255.0;
double dg = g / 255.0;
double db = b / 255.0;
double max = Math.Max(dr, Math.Max(dg, db));
double min = Math.Min(dr, Math.Min(dg, db));
v = max;
if (max == min)
{
h = 0.0;
s = 0.0;
}
else
{
double dc = max - min;
if (max == dr)
h = (dg - db) / dc;
else if (max == dg)
h = (db - dr) / dc + 2.0;
else
h = (dr - dg) / dc + 4.0;
h *= 60.0;
if (h < 0.0)
h += 360.0;
s = dc / max;
}
}
#endregion Public Static Methods
}
}
@@ -1,19 +0,0 @@
namespace ColorPicker
{
/// <summary>How the VerticalColorSlider i and the ColorBox are drawn</summary>
public enum DrawStyles
{
/// <summary>Hue</summary>
Hue,
/// <summary>Saturation</summary>
Saturation,
/// <summary>Brightness</summary>
Brightness,
/// <summary>Red</summary>
Red,
/// <summary>Green</summary>
Green,
/// <summary>Blue</summary>
Blue
}
}
@@ -1,364 +0,0 @@
using System;
using System.ComponentModel;
using System.Globalization;
using System.Windows.Forms;
namespace ColorPicker
{
/// <summary>A TextBox that only acceptes numbers</summary>
public class NumericTextBox : TextBox
{
#region Private Fields
private bool _allowDecimal = true;
private bool _allowNull = true;
private bool _allowSign = true;
private bool _allowSpace = false;
private string _format = string.Empty;
private NumberFormatInfo _numberFormatInfo = CultureInfo.CurrentCulture.NumberFormat;
#endregion Private Fields
#region Constructors
/// <summary>Constructor</summary>
public NumericTextBox()
: base()
{
// By default right alignment
TextAlign = HorizontalAlignment.Right;
}
#endregion Constructors
#region Public Properties
/// <summary>Decimal point allowed</summary>
[DefaultValue(true),
Category("Attribute")]
public bool AllowDecimal
{
get => _allowDecimal;
set => _allowDecimal = value;
}
/// <summary>NULL value allowed</summary>
[DefaultValue(true),
Category("Attribute")]
public bool AllowNull
{
get => _allowNull;
set => _allowNull = value;
}
/// <summary>Sign allowed</summary>
[DefaultValue(true),
Category("Attribute")]
public bool AllowSign
{
get => _allowSign;
set => _allowSign = value;
}
/// <summary>Spaces allowed</summary>
[DefaultValue(false),
Category("Attribute")]
public bool AllowSpace
{
get => _allowSpace;
set => _allowSpace = value;
}
/// <summary>Decimal separator character</summary>
public string DecimalSeparator => _numberFormatInfo.NumberDecimalSeparator;
/// <summary>Value as a Decimal</summary>
public decimal DecimalValue
{
get
{
try
{
if (Text == null || Text.Trim() == string.Empty)
return 0M;
return decimal.Parse(Text, _numberFormatInfo);
}
catch (Exception)
{
return 0M;
}
}
set
{
if (_format != string.Empty)
{
try
{
Text = value.ToString(_format, _numberFormatInfo);
}
catch (Exception)
{
Text = value.ToString(_numberFormatInfo);
}
}
else
Text = value.ToString(_numberFormatInfo);
}
}
/// <summary>Values as a Double</summary>
public double DoubleValue
{
get
{
try
{
if (Text == null || Text.Trim() == string.Empty)
return 0.0;
return double.Parse(Text, _numberFormatInfo);
}
catch (Exception)
{
return 0.0;
}
}
set
{
if (_format != string.Empty)
{
try
{
Text = value.ToString(_format, _numberFormatInfo);
}
catch (Exception)
{
Text = value.ToString(_numberFormatInfo);
}
}
else
Text = value.ToString(_numberFormatInfo);
}
}
/// <summary>Number format string</summary>
public string Format
{
get => _format;
set
{
if (value != null)
_format = value;
else
_format = string.Empty;
}
}
/// <summary>Group separator character</summary>
public string GroupSeparator => _numberFormatInfo.NumberGroupSeparator;
/// <summary>Valor as an Int32</summary>
public int Int32Value
{
get
{
try
{
if (Text == null || Text.Trim() == string.Empty)
return 0;
return int.Parse(Text, _numberFormatInfo);
}
catch (Exception)
{
try
{
return Convert.ToInt32(Math.Round(Decimal.Parse(Text, _numberFormatInfo), 0));
}
catch (Exception)
{
return 0;
}
}
}
set
{
if (Int32Value != value || string.IsNullOrEmpty(Text)) // To not overwrite the value passed as Double or Decimal
{
if (_format != string.Empty)
{
try
{
Text = value.ToString(_format, _numberFormatInfo);
}
catch (Exception)
{
Text = value.ToString(_numberFormatInfo);
}
}
else
Text = value.ToString(_numberFormatInfo);
}
}
}
/// <summary>Valor as an UInt32</summary>
public uint UInt32Value
{
get
{
try
{
if (Text == null || Text.Trim() == string.Empty)
return 0;
return uint.Parse(Text, _numberFormatInfo);
}
catch (Exception)
{
try
{
return Convert.ToUInt32(Math.Round(Decimal.Parse(Text, _numberFormatInfo), 0));
}
catch (Exception)
{
return 0;
}
}
}
set
{
if (UInt32Value != value || string.IsNullOrEmpty(Text)) // To not overwrite the value passed as Double or Decimal
{
if (_format != string.Empty)
{
try
{
Text = value.ToString(_format, _numberFormatInfo);
}
catch (Exception)
{
Text = value.ToString(_numberFormatInfo);
}
}
else
Text = value.ToString(_numberFormatInfo);
}
}
}
/// <summary>Negative sign character</summary>
public string NegativeSign => _numberFormatInfo.NegativeSign;
/// <summary>The NumberFormatInfo</summary>
[Browsable(false), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public NumberFormatInfo NumberFormatInfo
{
get => _numberFormatInfo;
set
{
if (value != null)
_numberFormatInfo = value;
}
}
#endregion Public Properties
#region Protected Methods
/// <summary>Go the focus</summary>
/// <param name="e"></param>
protected override void OnGotFocus(EventArgs e)
{
if (_format != string.Empty && !ReadOnly && (!_allowNull || Text.Trim() != string.Empty))
Text = DecimalValue.ToString(_numberFormatInfo);
base.OnGotFocus(e);
}
/// <summary>Restricts the entry of characters to digits, the negative sign, the decimal point, and editing keystrokes (backspace).</summary>
/// <param name="e"></param>
protected override void OnKeyPress(KeyPressEventArgs e)
{
base.OnKeyPress(e);
string keyInput = e.KeyChar.ToString();
if (!char.IsDigit(e.KeyChar) && // Digits are OK
!((keyInput.Equals(_numberFormatInfo.NumberDecimalSeparator) || keyInput.Equals(_numberFormatInfo.NumberGroupSeparator)) && _allowDecimal) && // Decimal separator is OK
!(keyInput.Equals(_numberFormatInfo.NegativeSign) && _allowSign) && // Sign is OK
e.KeyChar != '\b' && // Backspace key is OK
(ModifierKeys & (Keys.Control | Keys.Alt)) == 0 && // Let the edit control handle control and alt key combinations
!(_allowSpace && e.KeyChar == ' ') // Space is OK
)
{
// Swallow this invalid key
e.Handled = true;
}
//if (char.IsDigit(e.KeyChar))
//{
// // Digits are OK
//}
//else if ((keyInput.Equals(_numberFormatInfo.NumberDecimalSeparator) || keyInput.Equals(_numberFormatInfo.NumberGroupSeparator)) && _allowDecimal)
//{
// // Decimal separator is OK
//}
//else if (keyInput.Equals(_numberFormatInfo.NegativeSign) && _allowSign)
//{
// // Sign is OK
//}
//else if (e.KeyChar == '\b')
//{
// // Backspace key is OK
//}
//else if ((ModifierKeys & (Keys.Control | Keys.Alt)) != 0)
//{
// // Let the edit control handle control and alt key combinations
//}
//else if (_allowSpace && e.KeyChar == ' ')
//{
// // Space is OK
//}
//else
//{
// // Swallow this invalid key
// e.Handled = true;
//}
}
/// <summary>Lost the focus</summary>
/// <param name="e"></param>
protected override void OnLostFocus(EventArgs e)
{
if (_format != string.Empty && !ReadOnly && (!_allowNull || Text.Trim() != string.Empty))
{
try
{
Text = DecimalValue.ToString(_format, _numberFormatInfo);
}
catch (Exception)
{
Text = DecimalValue.ToString(_numberFormatInfo);
}
}
base.OnLostFocus(e);
}
#endregion Protected Methods
#region Public Methods
/// <summary>Serialize the TextAlign</summary>
public void ResetTextAlign()
{
TextAlign = HorizontalAlignment.Right;
}
/// <summary>Serialize the TextAlign</summary>
/// <returns></returns>
public bool ShouldSerializeTextAlign()
{
//return this.TextAlign != HorizontalAlignment.Right;
return true;
}
#endregion Public Methods
}
}
@@ -1,165 +0,0 @@
using System;
using System.Drawing;
using System.Windows.Forms;
namespace ColorPicker
{
/// <summary>A panel to display two colors</summary>
public partial class TwoColorPanel : UserControl
{
#region Private Constant/Read-Only Fields
/// <summary>Checkered size</summary>
private readonly int CHECK = 10;
#endregion Private Constant/Read-Only Fields
#region Private Fields
private Bitmap _bkBuff1 = null;
private Bitmap _bkBuff2 = null;
private int _bkHeight;
private int _bkWidth;
private Color _c1 = Color.Red;
private Color _c2 = Color.Orange;
#endregion Private Fields
#region Constructors
/// <summary>Constructor</summary>
public TwoColorPanel()
: this(Color.Red, Color.Orange)
{
}
/// <summary>Constructor</summary>
/// <param name="c1">Color 1</param>
/// <param name="c2">Color 2</param>
public TwoColorPanel(Color c1, Color c2)
{
InitializeComponent();
this.Disposed += twoColorPanel_Disposed;
_c1 = c1;
_c2 = c2;
createBkBuff();
}
#endregion Constructors
#region Public Properties
/// <summary>Color 1</summary>
public Color Color1
{
get => _c1;
set
{
_c1 = value;
createBkBuff();
draw();
this.Invalidate();
}
}
/// <summary>Color 2</summary>
public Color Color2
{
get => _c2;
set
{
_c2 = value;
draw();
this.Invalidate();
}
}
#endregion Public Properties
#region Private Methods
/// <summary>Create the backgroubd Bitmaps</summary>
private void createBkBuff()
{
_bkHeight = this.Height;
_bkWidth = this.Width;
if (_bkBuff1 != null)
_bkBuff1.Dispose();
_bkBuff1 = new Bitmap(_bkWidth, _bkHeight);
using (Graphics g = Graphics.FromImage(_bkBuff1))
{
for (int x = 0; x < _bkWidth; x += CHECK)
{
for (int y = 0; y < _bkHeight; y += CHECK)
{
g.FillRectangle((x + y) / CHECK % 2 == 0 ? Brushes.White : Brushes.Black, x, y, CHECK, CHECK);
}
}
using (SolidBrush b1 = new SolidBrush(Color1))
{
g.FillRectangle(b1, 0, 0, _bkWidth, _bkHeight / 2);
}
}
if (_bkBuff2 != null)
_bkBuff2.Dispose();
_bkBuff2 = new Bitmap(_bkWidth, _bkHeight);
}
/// <summary>Draw then background Bitmap</summary>
private void draw()
{
using (Graphics g = Graphics.FromImage(_bkBuff2))
{
g.DrawImage(_bkBuff1, 0, 0);
int h2 = _bkHeight / 2;
using (SolidBrush b2 = new SolidBrush(Color2))
{
g.FillRectangle(b2, 0, h2, _bkWidth, _bkHeight - h2);
}
}
}
/// <summary>Dispose the background Bitmaps</summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void twoColorPanel_Disposed(object sender, System.EventArgs e)
{
if (_bkBuff1 != null)
{
_bkBuff1.Dispose();
_bkBuff1 = null;
}
if (_bkBuff2 != null)
{
_bkBuff2.Dispose();
_bkBuff2 = null;
}
}
#endregion Private Methods
#region Protected Methods
/// <summary>Remove flickering</summary>
/// <param name="e"></param>
protected override void OnPaintBackground(PaintEventArgs e)
{
}
/// <summary>Paint the control</summary>
/// <param name="e"></param>
protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawImage(_bkBuff2, 0, 0);
}
/// <summary>Size changed</summary>
/// <param name="e"></param>
protected override void OnResize(EventArgs e)
{
createBkBuff();
}
#endregion Protected Methods
}
}
@@ -1,605 +0,0 @@
using System;
using System.Drawing;
using System.Windows.Forms;
namespace ColorPicker
{
/// <summary>
/// A vertical slider showing a range for a color property (Hue, Saturation, Value-Brightness, Red, Green, Blue)
/// and sends an event when the slider is changed
/// </summary>
public partial class VerticalColorSlider : UserControl
{
#region Private Constant/Read-Only Fields
private const int XMARGIN0 = 8; // Left and Right margin
private const int XMARGIN1 = 11; // Starting color image position -> Left margin + 3d border size + 1 (XMARGIN0 + 2 + 1)
private const int XMARGIN2 = 22; // Complete right margin (to find the color image width) (XMARGIN1 * 2);
private const int YMARGIN0 = 2; // Top and bottom margin
private const int YMARGIN1 = 4; // Top margin + 3d border size (YMARGIN0 + 2)
private const int YMARGIN2 = 9; // YMARGIN1 * 2 + 1
private readonly Point[] lArrow = null;
private readonly Point[] rArrow = null;
#endregion Private Constant/Read-Only Fields
#region Private Fields
private Bitmap _bkBuff = null; // Buffer where to draw the colors
private int _bkHeight, _bkWidth; // Buffer size
private DrawStyles _drawStyle = DrawStyles.Hue;
private double _h, _s, _v;
private bool _isDragging = false;
private int _markerStartY = 0;
private int _r, _g, _b;
#endregion Private Fields
#region Constructors
/// <summary>Constructor</summary>
public VerticalColorSlider()
{
InitializeComponent();
this.Disposed += verticalColorSlider_Disposed;
// Initialize Colors
_h = 360.0;
_s = 1.0;
_v = 1.0;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
_drawStyle = DrawStyles.Hue;
int w = this.Width;
lArrow = new Point[7];
lArrow[0] = new Point(1, 0);
lArrow[1] = new Point(3, 0);
lArrow[2] = new Point(7, 4);
lArrow[3] = new Point(3, 8);
lArrow[4] = new Point(1, 8);
lArrow[5] = new Point(0, 7);
lArrow[6] = new Point(0, 1);
rArrow = new Point[7];
rArrow[0] = new Point(w - 2, 0);
rArrow[1] = new Point(w - 4, 0);
rArrow[2] = new Point(w - 8, 4);
rArrow[3] = new Point(w - 4, 8);
rArrow[4] = new Point(w - 2, 8);
rArrow[5] = new Point(w - 1, 7);
rArrow[6] = new Point(w - 1, 1);
createBkBuff();
}
#endregion Constructors
#region Public Events
/// <summary>It fires when we move the Slider</summary>
public event EventHandler Scrolled;
#endregion Public Events
#region Public Properties
/// <summary>Blue value</summary>
public int B => _b;
/// <summary>Control value as a System.Drawing.Color</summary>
public Color Color
{
get => Color.FromArgb(_r, _g, _b);
set
{
if (_r != value.R || _g != value.G || B != value.B)
{
_r = value.R;
_g = value.G;
_b = value.B;
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
resetSlider(true);
drawContent();
this.Invalidate();
}
}
}
/// <summary>The DrawStyle of the control (Hue, Saturation, Brightness, Red, Green or Blue)</summary>
public DrawStyles DrawStyle
{
get => _drawStyle;
set
{
if (_drawStyle != value)
{
_drawStyle = value;
resetSlider(true);
drawContent();
this.Invalidate();
}
}
}
/// <summary>Green value</summary>
public int G => _g;
/// <summary>Hue value</summary>
public double H => _h;
/// <summary>Red value</summary>
public int R => _r;
/// <summary>Control value as an int</summary>
public int RGB
{
get => ((_r & 0xFF) << 16) + ((_g & 0xFF) << 8) + (_b & 0xFF);
set
{
if (_r != ((value >> 16) & 0xFF) || _g != ((value >> 8) & 0xFF) || _b != (value & 0xFF))
{
_r = (value >> 16) & 0xFF;
_g = (value >> 8) & 0xFF;
_b = value & 0xFF;
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
// Redibuixem el control
resetSlider(true);
drawContent();
this.Invalidate();
}
}
}
/// <summary>Saturation value</summary>
public double S => _s;
/// <summary>Value-Brightness value</summary>
public double V => _v;
#endregion Public Properties
#region Private Methods
/// <summary>Repaints the background of the sliders zones</summary>
/// <param name="g">Graphics to draw on</param>
private void clearSlider(Graphics g)
{
Brush brush = SystemBrushes.Control;
int h = this.Height;
g.FillRectangle(brush, 0, 0, XMARGIN0, h); // Left slider
g.FillRectangle(brush, this.Width - XMARGIN0, 0, XMARGIN0, h); // Right slider
}
/// <summary>Creates the background Bitmap</summary>
private void createBkBuff()
{
_bkHeight = this.Height - YMARGIN2;
_bkWidth = this.Width - XMARGIN2;
if (_bkBuff != null)
_bkBuff.Dispose();
_bkBuff = new Bitmap(_bkWidth, _bkHeight + 1);
}
/// <summary>Draws the 3d border</summary>
/// <param name="g">Graphics to draw on</param>
private void drawBorder(Graphics g)
{
ControlPaint.DrawBorder3D(g, XMARGIN0 + 1, YMARGIN0, this.Width - (XMARGIN2 - 4), this.Height - YMARGIN1, Border3DStyle.Sunken);
}
/// <summary>Draws the content</summary>
private void drawContent()
{
switch (_drawStyle)
{
case DrawStyles.Hue:
drawStyleHue();
break;
case DrawStyles.Saturation:
drawStyleSaturation();
break;
case DrawStyles.Brightness:
drawStyleBrightness();
break;
case DrawStyles.Red:
drawStyleRed();
break;
case DrawStyles.Green:
drawStyleGreen();
break;
case DrawStyles.Blue:
drawStyleBlue();
break;
}
}
/// <summary>Draws the sliders</summary>
/// <param name="g">Graphics to draw on</param>
/// <param name="y">Slider position</param>
private void drawSlider(Graphics g, int y)
{
// Delete old slider
this.clearSlider(g);
// Adjust y position
_markerStartY = y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y);
// Draw sliders
lArrow[0].Y = _markerStartY;
lArrow[1].Y = _markerStartY;
lArrow[2].Y = _markerStartY + 4;
lArrow[3].Y = _markerStartY + 8;
lArrow[4].Y = _markerStartY + 8;
lArrow[5].Y = _markerStartY + 7;
lArrow[6].Y = _markerStartY + 1;
g.FillPolygon(Brushes.White, lArrow);
g.DrawPolygon(Pens.DarkGray, lArrow);
rArrow[0].Y = _markerStartY;
rArrow[1].Y = _markerStartY;
rArrow[2].Y = _markerStartY + 4;
rArrow[3].Y = _markerStartY + 8;
rArrow[4].Y = _markerStartY + 8;
rArrow[5].Y = _markerStartY + 7;
rArrow[6].Y = _markerStartY + 1;
g.FillPolygon(Brushes.White, rArrow);
g.DrawPolygon(Pens.DarkGray, rArrow);
}
/// <summary>Draws the sliders</summary>
/// <param name="y">Slider position</param>
/// <param name="force">Draw the slider even if y value has not changed</param>
private void drawSlider(int y, bool force)
{
if (force || _markerStartY != (y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y)))
{
using (Graphics g = this.CreateGraphics())
{
drawSlider(g, y);
}
}
}
/// <summary>Draw all the Blue colors</summary>
private void drawStyleBlue()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
int b = 255 - (int)Math.Round(255.0 * i / _bkHeight);
using (Pen pen = new Pen(Color.FromArgb(_r, _g, b)))
{
gr.DrawLine(pen, 0, i, _bkWidth, i);
}
}
}
}
/// <summary>Draw all the Value/Brightness colors</summary>
private void drawStyleBrightness()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
double v = 1.0 - (double)i / _bkHeight;
ColorUtil.HSV2RGB(_h, _s, v, out int r, out int g, out int b);
using (Pen pen = new Pen(Color.FromArgb(r, g, b)))
{
gr.DrawLine(pen, 0, i, _bkWidth, i);
}
}
}
}
/// <summary>Draw all the Green colors</summary>
private void drawStyleGreen()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
int g = 255 - (int)Math.Round(255.0 * i / _bkHeight);
using (Pen pen = new Pen(Color.FromArgb(_r, g, _b)))
{
gr.DrawLine(pen, 0, i, _bkWidth, i);
}
}
}
}
/// <summary>Draw all the Hue colors</summary>
private void drawStyleHue()
{
using(Graphics gr = Graphics.FromImage(_bkBuff))
{
double s = 1.0;
double l = 1.0;
for (int i = 0; i <= _bkHeight; i++)
{
double h = 360.0 * (1.0 - (double)i / _bkHeight);
ColorUtil.HSV2RGB(h, s, l, out int r, out int g, out int b);
using (Pen pen = new Pen(Color.FromArgb(r, g, b)))
{
gr.DrawLine(pen, 0, i, _bkWidth, i);
}
}
}
}
/// <summary>Draw all the Red colors</summary>
private void drawStyleRed()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
int r = 255 - (int)Math.Round(255.0 * i / _bkHeight);
using (Pen pen = new Pen(Color.FromArgb(r, _g, _b)))
{
gr.DrawLine(pen, 0, i, _bkWidth, i);
}
}
}
}
/// <summary>Draw all the Saturation colors</summary>
private void drawStyleSaturation()
{
using (Graphics gr = Graphics.FromImage(_bkBuff))
{
for (int i = 0; i <= _bkHeight; i++)
{
double s = 1.0 - (double)i / _bkHeight;
ColorUtil.HSV2RGB(_h, s, _v, out int r, out int g, out int b);
using (Pen pen = new Pen(Color.FromArgb(r, g, b)))
{
gr.DrawLine(pen, 0, i, _bkWidth, i);
}
}
}
}
/// <summary>Set the color from the slider position</summary>
private void resetHSVRGB()
{
switch (_drawStyle)
{
case DrawStyles.Hue:
_h = 360.0 * (1.0 - (double)_markerStartY / _bkHeight);
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
break;
case DrawStyles.Saturation:
_s = 1.0 - (double)_markerStartY / _bkHeight;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
break;
case DrawStyles.Brightness:
_v = 1.0 - (double)_markerStartY / _bkHeight;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
break;
case DrawStyles.Red:
_r = 255 - (int)Math.Round(255.0 * _markerStartY / _bkHeight);
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
break;
case DrawStyles.Green:
_g = 255 - (int)Math.Round(255.0 * _markerStartY / _bkHeight);
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
break;
case DrawStyles.Blue:
_b = 255 - (int)Math.Round(255.0 * _markerStartY / _bkHeight);
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
break;
}
}
/// <summary>Set the slider position from the color</summary>
/// <param name="redraw">Redraw the control after setting the slider position</param>
private void resetSlider(bool redraw)
{
switch (_drawStyle)
{
case DrawStyles.Hue:
_markerStartY = _bkHeight - (int)Math.Round(_bkHeight * _h / 360.0);
break;
case DrawStyles.Saturation:
_markerStartY = _bkHeight - (int)Math.Round(_bkHeight * _s);
break;
case DrawStyles.Brightness:
_markerStartY = _bkHeight - (int)Math.Round(_bkHeight * _v);
break;
case DrawStyles.Red:
_markerStartY = _bkHeight - (int)Math.Round(_bkHeight * _r / 255.0);
break;
case DrawStyles.Green:
_markerStartY = _bkHeight - (int)Math.Round(_bkHeight * _g / 255.0);
break;
case DrawStyles.Blue:
_markerStartY = _bkHeight - (int)Math.Round(_bkHeight * _b / 255.0);
break;
}
if (redraw)
drawSlider(_markerStartY, true);
}
/// <summary>Dispose the background Bitmap</summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void verticalColorSlider_Disposed(object sender, EventArgs e)
{
if (_bkBuff != null)
{
_bkBuff.Dispose();
_bkBuff = null;
}
}
#endregion Private Methods
#region Protected Methods
/// <summary>The control has been loaded</summary>
/// <param name="e"></param>
protected override void OnLoad(EventArgs e)
{
drawContent();
this.Invalidate();
}
/// <summary>Process MouseDown event</summary>
/// <param name="e"></param>
protected override void OnMouseDown(MouseEventArgs e)
{
// Only check left button
if (e.Button != MouseButtons.Left)
return;
// Start dragging
_isDragging = true;
// Get the slider position
int y = e.Y - YMARGIN1;
y = y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y);
// Check that there has been a change in the position
if (y == _markerStartY)
return;
drawSlider(y, false); // Redraw the slider
resetHSVRGB(); // Redraw the colors
Scrolled?.Invoke(this, e); // Send "Scrolled" event
}
/// <summary>Process MouseMove event</summary>
/// <param name="e"></param>
protected override void OnMouseMove(MouseEventArgs e)
{
// Check we are "dragging"
if (!_isDragging)
return;
// Get the slider position
int y = e.Y - YMARGIN1;
y = y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y);
// Check that there has been a change in the position
if (y == _markerStartY)
return;
drawSlider(y, false); // Redraw the slider
resetHSVRGB(); // Redraw the colors
Scrolled?.Invoke(this, e); // Send "Scrolled" event
}
/// <summary>Process MouseUp event</summary>
/// <param name="e"></param>
protected override void OnMouseUp(MouseEventArgs e)
{
// Only check left button and "dragging"
if (e.Button != MouseButtons.Left || !_isDragging)
return;
// End "dragging"
_isDragging = false;
// Get the slider position
int y = e.Y - YMARGIN1;
y = y < 0 ? 0 : (y > _bkHeight ? _bkHeight : y);
// Check that there has been a change in the position
if (y == _markerStartY)
return;
drawSlider(y, false); // Redraw the slider
resetHSVRGB(); // Redraw the colors
Scrolled?.Invoke(this, e); // Send "Scrolled" event
}
/// <summary>Repaint the control</summary>
/// <param name="e"></param>
protected override void OnPaint(PaintEventArgs e)
{
drawSlider(e.Graphics, _markerStartY);
drawBorder(e.Graphics);
e.Graphics.DrawImage(_bkBuff, XMARGIN1, YMARGIN1);
}
/// <summary>Repaint the background</summary>
/// <param name="e"></param>
protected override void OnPaintBackground(PaintEventArgs e)
{
using (SolidBrush b = new SolidBrush(this.BackColor))
{
int w = this.Width;
int h = this.Height;
e.Graphics.FillRectangle(b, 0, 0, w, YMARGIN0);
e.Graphics.FillRectangle(b, XMARGIN0, YMARGIN0, 1, h - YMARGIN0 * 2);
e.Graphics.FillRectangle(b, w - XMARGIN0 - 1, YMARGIN0, 1, h - YMARGIN0 * 2);
e.Graphics.FillRectangle(b, 0, h - YMARGIN0, w, YMARGIN0);
}
}
/// <summary>The control has been resized</summary>
/// <param name="e"></param>
protected override void OnResize(EventArgs e)
{
if (rArrow != null)
{
int w = this.Width;
rArrow[0].X = w - 2;
rArrow[1].X = w - 4;
rArrow[2].X = w - 8;
rArrow[3].X = w - 4;
rArrow[4].X = w - 2;
rArrow[5].X = w - 1;
rArrow[6].X = w - 1;
createBkBuff();
drawContent();
this.Invalidate();
}
}
#endregion Protected Methods
#region Public Methods
/// <summary>Set the control color from HSV values</summary>
/// <param name="h">Hue</param>
/// <param name="s">Saturation</param>
/// <param name="v">Value</param>
public void SetHSV(double h, double s, double v)
{
if (_h != (h < 0.0 ? 0.0 : h > 360.0 ? 360.0 : h) || _s != (s < 0.0 ? 0.0 : s > 1.0 ? 1.0 : s) || _v != (v < 0.0 ? 0.0 : v > 1.0 ? 1.0 : v))
{
_h = (h < 0.0 ? 0.0 : h > 360.0 ? 360.0 : h);
_s = s < 0.0 ? 0.0 : s > 1.0 ? 1.0 : s;
_v = v < 0.0 ? 0.0 : v > 1.0 ? 1.0 : v;
ColorUtil.HSV2RGB(_h, _s, _v, out _r, out _g, out _b);
resetSlider(true);
drawContent();
this.Invalidate();
}
}
/// <summary>Set the control color from RGB values</summary>
/// <param name="r">Red</param>
/// <param name="g">Green</param>
/// <param name="b">Blue</param>
public void SetRGB(int r, int g, int b)
{
if (_r != (r & 0xFF) || _g != (g & 0xFF) || _b != (b & 0xFF))
{
_r = r & 0xFF;
_g = g & 0xFF;
_b = b & 0xFF;
ColorUtil.RGB2HSV(_r, _g, _b, out _h, out _s, out _v);
resetSlider(true);
drawContent();
this.Invalidate();
}
}
#endregion Public Methods
}
}
@@ -1,47 +0,0 @@
namespace ColorPicker
{
partial class VerticalColorSlider
{
/// <summary>
/// Variable del diseñador necesaria.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Limpiar los recursos que se estén usando.
/// </summary>
/// <param name="disposing">true si los recursos administrados se deben desechar; false en caso contrario.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Código generado por el Diseñador de componentes
/// <summary>
/// Método necesario para admitir el Diseñador. No se puede modificar
/// el contenido de este método con el editor de código.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// VerticalColorSlider
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.MinimumSize = new System.Drawing.Size(39, 265);
this.Name = "VerticalColorSlider";
this.Size = new System.Drawing.Size(39, 265);
this.ResumeLayout(false);
}
#endregion
}
}
@@ -1,120 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
@@ -29,13 +29,63 @@
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CreateTexturePack));
this.OkButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.label1 = new System.Windows.Forms.Label();
this.metroComboBox1 = new MetroFramework.Controls.MetroComboBox();
this.TextLabel = new System.Windows.Forms.Label();
this.InputTextBox = new MetroFramework.Controls.MetroTextBox();
this.metroComboBox1 = new MetroFramework.Controls.MetroComboBox();
this.label1 = new System.Windows.Forms.Label();
this.OkButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.SuspendLayout();
//
// OkButton
//
this.OkButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.OkButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.OkButton.BorderRadius = 10;
this.OkButton.BorderSize = 1;
this.OkButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.OkButton.FlatAppearance.BorderSize = 0;
this.OkButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.OkButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
resources.ApplyResources(this.OkButton, "OkButton");
this.OkButton.ForeColor = System.Drawing.Color.White;
this.OkButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.OkButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.OkButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.OkButton.Name = "OkButton";
this.OkButton.TextColor = System.Drawing.Color.White;
this.OkButton.UseVisualStyleBackColor = false;
this.OkButton.Click += new System.EventHandler(this.LockPCKButton_Click);
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Name = "label1";
//
// metroComboBox1
//
this.metroComboBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.metroComboBox1.ForeColor = System.Drawing.Color.White;
this.metroComboBox1.FormattingEnabled = true;
resources.ApplyResources(this.metroComboBox1, "metroComboBox1");
this.metroComboBox1.Items.AddRange(new object[] {
resources.GetString("metroComboBox1.Items"),
resources.GetString("metroComboBox1.Items1"),
resources.GetString("metroComboBox1.Items2"),
resources.GetString("metroComboBox1.Items3"),
resources.GetString("metroComboBox1.Items4"),
resources.GetString("metroComboBox1.Items5"),
resources.GetString("metroComboBox1.Items6"),
resources.GetString("metroComboBox1.Items7"),
resources.GetString("metroComboBox1.Items8")});
this.metroComboBox1.Name = "metroComboBox1";
this.metroComboBox1.Style = MetroFramework.MetroColorStyle.Silver;
this.metroComboBox1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroComboBox1.UseCustomBackColor = true;
this.metroComboBox1.UseCustomForeColor = true;
this.metroComboBox1.UseSelectable = true;
//
// TextLabel
//
resources.ApplyResources(this.TextLabel, "TextLabel");
@@ -49,6 +99,7 @@
//
//
this.InputTextBox.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image")));
this.InputTextBox.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode")));
this.InputTextBox.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location")));
this.InputTextBox.CustomButton.Name = "";
this.InputTextBox.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size")));
@@ -76,56 +127,6 @@
this.InputTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.InputTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// metroComboBox1
//
this.metroComboBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.metroComboBox1.ForeColor = System.Drawing.Color.White;
this.metroComboBox1.FormattingEnabled = true;
resources.ApplyResources(this.metroComboBox1, "metroComboBox1");
this.metroComboBox1.Items.AddRange(new object[] {
resources.GetString("metroComboBox1.Items"),
resources.GetString("metroComboBox1.Items1"),
resources.GetString("metroComboBox1.Items2"),
resources.GetString("metroComboBox1.Items3"),
resources.GetString("metroComboBox1.Items4"),
resources.GetString("metroComboBox1.Items5"),
resources.GetString("metroComboBox1.Items6"),
resources.GetString("metroComboBox1.Items7"),
resources.GetString("metroComboBox1.Items8")});
this.metroComboBox1.Name = "metroComboBox1";
this.metroComboBox1.Style = MetroFramework.MetroColorStyle.Silver;
this.metroComboBox1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroComboBox1.UseCustomBackColor = true;
this.metroComboBox1.UseCustomForeColor = true;
this.metroComboBox1.UseSelectable = true;
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Name = "label1";
//
// OkButton
//
this.OkButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.OkButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.OkButton.BorderRadius = 10;
this.OkButton.BorderSize = 1;
this.OkButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.OkButton.FlatAppearance.BorderSize = 0;
this.OkButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.OkButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
resources.ApplyResources(this.OkButton, "OkButton");
this.OkButton.ForeColor = System.Drawing.Color.White;
this.OkButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.OkButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.OkButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.OkButton.Name = "OkButton";
this.OkButton.TextColor = System.Drawing.Color.White;
this.OkButton.UseVisualStyleBackColor = false;
this.OkButton.Click += new System.EventHandler(this.LockPCKButton_Click);
//
// CreateTexturePack
//
resources.ApplyResources(this, "$this");
@@ -117,75 +117,88 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="TextLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="OkButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="TextLabel.Location" type="System.Drawing.Point, System.Drawing">
<value>43, 9</value>
<data name="OkButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="TextLabel.Size" type="System.Drawing.Size, System.Drawing">
<value>36, 13</value>
<data name="OkButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAABBSURBVFhH7dIxCgAgFMPQ3v/SumR3sHwQ8zZBagYjPW2B4zzeN8AAAwzoB7Bbx/wZ9+uY72HX
T2iAAQZ8HCDdSzYZRU7AU4PQAAAAAABJRU5ErkJggg==
</value>
</data>
<data name="TextLabel.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
<data name="OkButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="TextLabel.Text" xml:space="preserve">
<value>Name</value>
<data name="OkButton.Location" type="System.Drawing.Point, System.Drawing">
<value>72, 71</value>
</data>
<data name="TextLabel.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<data name="OkButton.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 40</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="OkButton.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
</data>
<data name="OkButton.Text" xml:space="preserve">
<value>Create!</value>
</data>
<data name="OkButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="OkButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;OkButton.Name" xml:space="preserve">
<value>OkButton</value>
</data>
<data name="&gt;&gt;OkButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;OkButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;OkButton.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 39</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>63, 13</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>Resolution</value>
</data>
<data name="label1.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleCenter</value>
</data>
<data name="&gt;&gt;TextLabel.Name" xml:space="preserve">
<value>TextLabel</value>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
</data>
<data name="&gt;&gt;TextLabel.Type" xml:space="preserve">
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;TextLabel.Parent" xml:space="preserve">
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;TextLabel.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="resource.Image" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="resource.Location" type="System.Drawing.Point, System.Drawing">
<value>143, 1</value>
</data>
<data name="resource.Size" type="System.Drawing.Size, System.Drawing">
<value>21, 21</value>
</data>
<data name="resource.TabIndex" type="System.Int32, mscorlib">
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="resource.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="InputTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>84, 9</value>
</data>
<data name="InputTextBox.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 23</value>
</data>
<data name="InputTextBox.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;InputTextBox.Name" xml:space="preserve">
<value>InputTextBox</value>
</data>
<data name="&gt;&gt;InputTextBox.Type" xml:space="preserve">
<value>MetroFramework.Controls.MetroTextBox, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
</data>
<data name="&gt;&gt;InputTextBox.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;InputTextBox.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="metroComboBox1.ItemHeight" type="System.Int32, mscorlib">
<value>23</value>
</data>
@@ -237,87 +250,77 @@
<data name="&gt;&gt;metroComboBox1.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<data name="TextLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="TextLabel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>16, 39</value>
<data name="TextLabel.Location" type="System.Drawing.Point, System.Drawing">
<value>43, 9</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>63, 13</value>
<data name="TextLabel.Size" type="System.Drawing.Size, System.Drawing">
<value>36, 13</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
<data name="TextLabel.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>Resolution</value>
<data name="TextLabel.Text" xml:space="preserve">
<value>Name</value>
</data>
<data name="label1.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<data name="TextLabel.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleCenter</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
<data name="&gt;&gt;TextLabel.Name" xml:space="preserve">
<value>TextLabel</value>
</data>
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<data name="&gt;&gt;TextLabel.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<data name="&gt;&gt;TextLabel.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>1</value>
<data name="&gt;&gt;TextLabel.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="OkButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
<data name="resource.Image" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="OkButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="OkButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAOxJREFUOE/F
k8sKAWEcR2fhspDbFnkQubwNXkdK2EviCcSLWLglFmLNxjif+c1MoxFFOXWa+Z/vG018rJ9j23YNJ3jE
s65jrGpLOGyIYA8XWMc8ZnVt4BY7GNUjQVjo4xQTSgHoGZxjT8mHaF57iUmlUFhP4RorSg6EEdY1etBs
3XqQmjjU6EA4YEGjBy3sA4q40+hAuGJM4+PBZ7Rk1uJ40ehA2GNeowft4zf4+jsoo/kVUkqhmHVcYUnJ
h9jGGaaVAtDdc9BSCsJCFLu4QXPycuo5ze5JjDweeAUbzKEaoDkwNzzh+//Cn7CsO8jFNZqJrNFHAAAA
AElFTkSuQmCC
</value>
</data>
<data name="OkButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<data name="resource.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="OkButton.Location" type="System.Drawing.Point, System.Drawing">
<value>72, 71</value>
<data name="resource.Location" type="System.Drawing.Point, System.Drawing">
<value>143, 1</value>
</data>
<data name="OkButton.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 40</value>
<data name="resource.Size" type="System.Drawing.Size, System.Drawing">
<value>21, 21</value>
</data>
<data name="OkButton.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
<data name="resource.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="OkButton.Text" xml:space="preserve">
<value>Create!</value>
<data name="resource.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="OkButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
<data name="InputTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>84, 9</value>
</data>
<data name="OkButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
<data name="InputTextBox.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 23</value>
</data>
<data name="&gt;&gt;OkButton.Name" xml:space="preserve">
<value>OkButton</value>
<data name="InputTextBox.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;OkButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<data name="&gt;&gt;InputTextBox.Name" xml:space="preserve">
<value>InputTextBox</value>
</data>
<data name="&gt;&gt;OkButton.Parent" xml:space="preserve">
<data name="&gt;&gt;InputTextBox.Type" xml:space="preserve">
<value>MetroFramework.Controls.MetroTextBox, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
</data>
<data name="&gt;&gt;InputTextBox.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;OkButton.ZOrder" xml:space="preserve">
<value>0</value>
<data name="&gt;&gt;InputTextBox.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
@@ -2551,6 +2554,9 @@
vbLH9tge22N7bI/tsT22x/bYHttjC+3/B71iqRn22EDpAAAAAElFTkSuQmCC
</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
@@ -2561,6 +2567,6 @@
<value>CreateTexturePack</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>PckStudio.Classes.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
+104 -70
View File
@@ -28,68 +28,94 @@
/// </summary>
private void InitializeComponent()
{
MetroFramework.Controls.MetroLabel metroLabel1;
MetroFramework.Controls.MetroLabel metroLabel2;
MetroFramework.Controls.MetroLabel metroLabel1;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddParameter));
this.NameTextBox = new MetroFramework.Controls.MetroTextBox();
this.CancelButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.CreateButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.ValueTextBox = new MetroFramework.Controls.MetroTextBox();
this.CancelBtn = new MetroFramework.Controls.MetroButton();
this.ConfirmBtn = new MetroFramework.Controls.MetroButton();
metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.NameTextBox = new MetroFramework.Controls.MetroTextBox();
metroLabel2 = new MetroFramework.Controls.MetroLabel();
metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.SuspendLayout();
//
// metroLabel1
//
metroLabel1.AutoSize = true;
metroLabel1.Location = new System.Drawing.Point(18, 27);
metroLabel1.Name = "metroLabel1";
metroLabel1.Size = new System.Drawing.Size(48, 19);
metroLabel1.TabIndex = 0;
metroLabel1.Text = "Name:";
metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// metroLabel2
//
metroLabel2.AutoSize = true;
metroLabel2.Location = new System.Drawing.Point(17, 56);
metroLabel2.Location = new System.Drawing.Point(44, 39);
metroLabel2.Name = "metroLabel2";
metroLabel2.Size = new System.Drawing.Size(42, 19);
metroLabel2.TabIndex = 1;
metroLabel2.Text = "Value:";
metroLabel2.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// NameTextBox
// metroLabel1
//
metroLabel1.AutoSize = true;
metroLabel1.Location = new System.Drawing.Point(45, 10);
metroLabel1.Name = "metroLabel1";
metroLabel1.Size = new System.Drawing.Size(48, 19);
metroLabel1.TabIndex = 0;
metroLabel1.Text = "Name:";
metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// CancelButton
//
this.CancelButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BorderRadius = 10;
this.CancelButton.BorderSize = 1;
this.CancelButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.BorderSize = 0;
this.CancelButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CancelButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.CancelButton.ForeColor = System.Drawing.Color.White;
this.CancelButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.Image = ((System.Drawing.Image)(resources.GetObject("CancelButton.Image")));
this.CancelButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.CancelButton.Location = new System.Drawing.Point(157, 69);
this.CancelButton.Name = "CancelButton";
this.CancelButton.Size = new System.Drawing.Size(120, 40);
this.CancelButton.TabIndex = 22;
this.CancelButton.Text = "Cancel";
this.CancelButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CancelButton.TextColor = System.Drawing.Color.White;
this.CancelButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.CancelButton.UseVisualStyleBackColor = false;
this.CancelButton.Click += new System.EventHandler(this.CancelButton_Click);
//
this.NameTextBox.CustomButton.Image = null;
this.NameTextBox.CustomButton.Location = new System.Drawing.Point(143, 1);
this.NameTextBox.CustomButton.Name = "";
this.NameTextBox.CustomButton.Size = new System.Drawing.Size(21, 21);
this.NameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.NameTextBox.CustomButton.TabIndex = 1;
this.NameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.NameTextBox.CustomButton.UseSelectable = true;
this.NameTextBox.CustomButton.Visible = false;
this.NameTextBox.Lines = new string[0];
this.NameTextBox.Location = new System.Drawing.Point(72, 27);
this.NameTextBox.MaxLength = 32767;
this.NameTextBox.Name = "NameTextBox";
this.NameTextBox.PasswordChar = '\0';
this.NameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.NameTextBox.SelectedText = "";
this.NameTextBox.SelectionLength = 0;
this.NameTextBox.SelectionStart = 0;
this.NameTextBox.ShortcutsEnabled = true;
this.NameTextBox.Size = new System.Drawing.Size(165, 23);
this.NameTextBox.Style = MetroFramework.MetroColorStyle.White;
this.NameTextBox.TabIndex = 2;
this.NameTextBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.NameTextBox.UseSelectable = true;
this.NameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.NameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
// CreateButton
//
this.CreateButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CreateButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CreateButton.BorderRadius = 10;
this.CreateButton.BorderSize = 1;
this.CreateButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CreateButton.FlatAppearance.BorderSize = 0;
this.CreateButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CreateButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.CreateButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CreateButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.CreateButton.ForeColor = System.Drawing.Color.White;
this.CreateButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CreateButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CreateButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.CreateButton.Image = ((System.Drawing.Image)(resources.GetObject("CreateButton.Image")));
this.CreateButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.CreateButton.Location = new System.Drawing.Point(31, 69);
this.CreateButton.Name = "CreateButton";
this.CreateButton.Size = new System.Drawing.Size(120, 40);
this.CreateButton.TabIndex = 21;
this.CreateButton.Text = "Create";
this.CreateButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CreateButton.TextColor = System.Drawing.Color.White;
this.CreateButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.CreateButton.UseVisualStyleBackColor = false;
this.CreateButton.Click += new System.EventHandler(this.CreateButton_Click);
//
// ValueTextBox
//
@@ -106,7 +132,7 @@
this.ValueTextBox.CustomButton.UseSelectable = true;
this.ValueTextBox.CustomButton.Visible = false;
this.ValueTextBox.Lines = new string[0];
this.ValueTextBox.Location = new System.Drawing.Point(72, 56);
this.ValueTextBox.Location = new System.Drawing.Point(99, 39);
this.ValueTextBox.MaxLength = 32767;
this.ValueTextBox.Name = "ValueTextBox";
this.ValueTextBox.PasswordChar = '\0';
@@ -123,45 +149,53 @@
this.ValueTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.ValueTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// CancelBtn
// NameTextBox
//
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.CancelBtn.Location = new System.Drawing.Point(23, 85);
this.CancelBtn.Name = "CancelBtn";
this.CancelBtn.Size = new System.Drawing.Size(95, 23);
this.CancelBtn.Style = MetroFramework.MetroColorStyle.White;
this.CancelBtn.TabIndex = 4;
this.CancelBtn.Text = "Cancel";
this.CancelBtn.Theme = MetroFramework.MetroThemeStyle.Dark;
this.CancelBtn.UseSelectable = true;
//
// ConfirmBtn
//
this.ConfirmBtn.Location = new System.Drawing.Point(141, 85);
this.ConfirmBtn.Name = "ConfirmBtn";
this.ConfirmBtn.Size = new System.Drawing.Size(96, 23);
this.ConfirmBtn.Style = MetroFramework.MetroColorStyle.White;
this.ConfirmBtn.TabIndex = 5;
this.ConfirmBtn.Text = "Confirm";
this.ConfirmBtn.Theme = MetroFramework.MetroThemeStyle.Dark;
this.ConfirmBtn.UseSelectable = true;
this.ConfirmBtn.Click += new System.EventHandler(this.ConfirmButton_Click);
//
this.NameTextBox.CustomButton.Image = null;
this.NameTextBox.CustomButton.Location = new System.Drawing.Point(143, 1);
this.NameTextBox.CustomButton.Name = "";
this.NameTextBox.CustomButton.Size = new System.Drawing.Size(21, 21);
this.NameTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.NameTextBox.CustomButton.TabIndex = 1;
this.NameTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.NameTextBox.CustomButton.UseSelectable = true;
this.NameTextBox.CustomButton.Visible = false;
this.NameTextBox.Lines = new string[0];
this.NameTextBox.Location = new System.Drawing.Point(99, 10);
this.NameTextBox.MaxLength = 32767;
this.NameTextBox.Name = "NameTextBox";
this.NameTextBox.PasswordChar = '\0';
this.NameTextBox.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.NameTextBox.SelectedText = "";
this.NameTextBox.SelectionLength = 0;
this.NameTextBox.SelectionStart = 0;
this.NameTextBox.ShortcutsEnabled = true;
this.NameTextBox.Size = new System.Drawing.Size(165, 23);
this.NameTextBox.Style = MetroFramework.MetroColorStyle.White;
this.NameTextBox.TabIndex = 2;
this.NameTextBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.NameTextBox.UseSelectable = true;
this.NameTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.NameTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// AddParameter
//
this.AcceptButton = this.ConfirmBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.ClientSize = new System.Drawing.Size(257, 126);
this.Controls.Add(this.ConfirmBtn);
this.Controls.Add(this.CancelBtn);
this.ClientSize = new System.Drawing.Size(309, 121);
this.Controls.Add(this.CancelButton);
this.Controls.Add(this.CreateButton);
this.Controls.Add(this.ValueTextBox);
this.Controls.Add(this.NameTextBox);
this.Controls.Add(metroLabel2);
this.Controls.Add(metroLabel1);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Location = new System.Drawing.Point(0, 0);
this.MaximizeBox = false;
@@ -176,8 +210,8 @@
#endregion
private MetroFramework.Controls.MetroTextBox ValueTextBox;
private MetroFramework.Controls.MetroButton CancelBtn;
private MetroFramework.Controls.MetroButton ConfirmBtn;
private MetroFramework.Controls.MetroTextBox NameTextBox;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton CancelButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton CreateButton;
}
}
@@ -24,12 +24,27 @@ namespace PckStudio.Forms.Additional_Popups.Grf
}
private void ConfirmButton_Click(object sender, EventArgs e)
{
}
private void CancelBtn_Click(object sender, EventArgs e)
{
}
private void CancelButton_Click(object sender, EventArgs e)
{
Close();
}
private void CreateButton_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(ParameterName) || string.IsNullOrWhiteSpace(ParameterValue))
{
MessageBox.Show("Name and Value need valid values");
return;
}
}
DialogResult = DialogResult.OK;
Close();
}
@@ -117,13 +117,29 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="metroLabel1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="metroLabel2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="metroLabel1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="CancelButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAOFJREFUSEvt
lTEOgzAQBHkCTZq8MMlTKdPlNc4O2pOMuIAtQsdIJ4xvd08CC4aLbkopD9XNt83gwevbHAleKnirmoeg
tQee3l6j5qiaZlkpH9XdrZ+gsRbwjm7lILAQNofQswb2wwOENkA6hD33oD08wGAjLIaw9h70hwcYHQDz
ENfx8EAB9QnhWq+7j3MKQQ4M/hcOCqsfCyzeySEUdN4jUsDqhbrS09UFRgfA4rSw9h70D8FgI6RHkT33
oH0IQhsgDQ/oWQP7QxBYCJvhARprYXuImud+rkGC8344F2uG4QvjMhwJEIsdYQAAAABJRU5ErkJggg==
</value>
</data>
<data name="CreateButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAABBSURBVFhH7dIxCgAgFMPQ3v/SumR3sHwQ8zZBagYjPW2B4zzeN8AAAwzoB7Bbx/wZ9+uY72HX
T2iAAQZ8HCDdSzYZRU7AU4PQAAAAAABJRU5ErkJggg==
</value>
</data>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAA0AAAAAAAEAIAD7NAAA1gAAAICAAAABACAAKAgBANE1AACAgAAAAQAIAChMAAD5PQEAQEAAAAEA
+35 -15
View File
@@ -28,15 +28,16 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AddLanguage));
this.LanguageComboBox = new MetroFramework.Controls.MetroComboBox();
this.AddBtn = new MetroFramework.Controls.MetroButton();
this.AddButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.SuspendLayout();
//
// LanguageComboBox
//
this.LanguageComboBox.FormattingEnabled = true;
this.LanguageComboBox.ItemHeight = 23;
this.LanguageComboBox.Location = new System.Drawing.Point(23, 63);
this.LanguageComboBox.Location = new System.Drawing.Point(23, 12);
this.LanguageComboBox.Name = "LanguageComboBox";
this.LanguageComboBox.Size = new System.Drawing.Size(243, 29);
this.LanguageComboBox.Style = MetroFramework.MetroColorStyle.Black;
@@ -44,28 +45,47 @@
this.LanguageComboBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.LanguageComboBox.UseSelectable = true;
//
// AddBtn
// AddButton
//
this.AddBtn.Location = new System.Drawing.Point(91, 98);
this.AddBtn.Name = "AddBtn";
this.AddBtn.Size = new System.Drawing.Size(101, 23);
this.AddBtn.TabIndex = 1;
this.AddBtn.Text = "Add";
this.AddBtn.Theme = MetroFramework.MetroThemeStyle.Dark;
this.AddBtn.UseSelectable = true;
this.AddBtn.Click += new System.EventHandler(this.AddBtn_Click);
this.AddButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.AddButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.AddButton.BorderRadius = 10;
this.AddButton.BorderSize = 1;
this.AddButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.AddButton.FlatAppearance.BorderSize = 0;
this.AddButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.AddButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.AddButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.AddButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.AddButton.ForeColor = System.Drawing.Color.White;
this.AddButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.AddButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.AddButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.AddButton.Image = ((System.Drawing.Image)(resources.GetObject("AddButton.Image")));
this.AddButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.AddButton.Location = new System.Drawing.Point(84, 49);
this.AddButton.Name = "AddButton";
this.AddButton.Size = new System.Drawing.Size(120, 40);
this.AddButton.TabIndex = 18;
this.AddButton.Text = "Add";
this.AddButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.AddButton.TextColor = System.Drawing.Color.White;
this.AddButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.AddButton.UseVisualStyleBackColor = false;
this.AddButton.Click += new System.EventHandler(this.AddButton_Click);
//
// AddLanguage
//
this.AcceptButton = this.AddBtn;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.ClientSize = new System.Drawing.Size(289, 140);
this.Controls.Add(this.AddBtn);
this.ClientSize = new System.Drawing.Size(289, 101);
this.Controls.Add(this.AddButton);
this.Controls.Add(this.LanguageComboBox);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Location = new System.Drawing.Point(0, 0);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(289, 140);
@@ -80,6 +100,6 @@
#endregion
private MetroFramework.Controls.MetroComboBox LanguageComboBox;
private MetroFramework.Controls.MetroButton AddBtn;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton AddButton;
}
}
@@ -15,13 +15,18 @@ namespace PckStudio.Forms.Additional_Popups.Loc
private void AddBtn_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
private void AddLanguage_Load(object sender, EventArgs e)
{
}
private void AddButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
}
}
@@ -117,4 +117,12 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="AddButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAABBSURBVFhH7dIxCgAgFMPQ3v/SumR3sHwQ8zZBagYjPW2B4zzeN8AAAwzoB7Bbx/wZ9+uY72HX
T2iAAQZ8HCDdSzYZRU7AU4PQAAAAAABJRU5ErkJggg==
</value>
</data>
</root>
+4 -4
View File
@@ -74,12 +74,12 @@
this.GenerateButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.GenerateButton.FlatAppearance.BorderSize = 0;
this.GenerateButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.GenerateButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.GenerateButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
resources.ApplyResources(this.GenerateButton, "GenerateButton");
this.GenerateButton.ForeColor = System.Drawing.Color.White;
this.GenerateButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.GenerateButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.GenerateButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.GenerateButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.GenerateButton.Name = "GenerateButton";
this.GenerateButton.TextColor = System.Drawing.Color.White;
this.GenerateButton.UseVisualStyleBackColor = false;
@@ -94,12 +94,12 @@
this.CancelButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.BorderSize = 0;
this.CancelButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.CancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
resources.ApplyResources(this.CancelButton, "CancelButton");
this.CancelButton.ForeColor = System.Drawing.Color.White;
this.CancelButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.CancelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.Name = "CancelButton";
this.CancelButton.TextColor = System.Drawing.Color.White;
this.CancelButton.UseVisualStyleBackColor = false;
@@ -150,7 +150,7 @@
<value>3</value>
</data>
<data name="numericUpDown1.Location" type="System.Drawing.Point, System.Drawing">
<value>72, 27</value>
<value>72, 33</value>
</data>
<data name="numericUpDown1.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 22</value>
@@ -179,13 +179,13 @@
</data>
<data name="GenerateButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAUtJREFUSEvt
lLtKQ0EURa8PgjYx5luiNrb+gLVgZWcvpLK0UlC0sfL1Af6CnWApFj4ba8FKBXFc+7K1mSQzE8EqCxY3
Z845MyS5c6oRxYQQ2niIt/iJKVSjWvXMepveUNDCJ3zDI+ziRkLVHOM7PmLL28WQ3HfhnJeyoWcBP3DP
SzEk7/HEYTH0nuGdwxiSX7jpsBj1ag+HMSTFXw8IDmOUhP87gM/nuILjXhqIejHvAJ5NvKlXQrjGZRyr
C/tAvvgbTOAq6v0WV9hxOoLccP8Baw3UhdJb1vVyhHqx7ADiadSNfVES1p2KIFf0H0ziGj5rES5xqS7s
A/nkAb8XjecUvuIFLtYFCdSLAy/aA546VNzBrFdUUJscFQeogTXMsJt3766XYkhqXOuV1ETVCN7K9Gdc
a1jOeLveqAB3UD9XLtp4G5veZkQuVfUNn99U065txsEAAAAASUVORK5CYII=
iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABGdBTUEAALGPC/xhBQAAASRJREFUSEvt
lr1qAkEURlfyB6aK2Aupbews0plNF7CxsbfKE6STKPgM1nY2KSzyGGnSBjRNaiHBHwybc3evXVZnxkEx
euDAsvPd+xUKO8GRwyaKohyGWLNUZq50jTkMnWILp+jKBJ/wRNeuh3BHJj3R1rWrIZjHeTzihxnmdH06
hO7iuF9CXZ8OoWqS9UpV16cjoSTrlf0rbuJb8uiEU/EQM+o9vqItTsVjfMRLPT/DBo7QlI1+4098wHPN
XWAbTfDy53rHumZv4jfr2bh4gV0saHYrxQMsaUxyRXyRAwOcij+wrMdyfo09/EFTnIq/MYtS2EebwiVG
xX99JJ7xK3l0wugjsZvPokBw+xcBgfBurj5LGJLLXgVvLZUZ+8vekX9EEPwCuNXOdC0GAskAAAAASUVO
RK5CYII=
</value>
</data>
<data name="GenerateButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
@@ -229,14 +229,13 @@
</data>
<data name="CancelButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAZJJREFUSEvd
lVsrBGEYx6fdZT+aQymljeLTsC4c1lq3KC5EwhehEHLI4VIoFyh3Xr//zPPu7DBjonHBr341z/993jm8
cwr+N865Ko7hNl7ho6ntLRzFqrV/DybW8AbFPeogTXMHH1Bc45BNy4fmCrY0E/axF0s23IasjH14iEIH
LttwNjQthO3OzWHF4kzUg/OaADMWp0PDSNSX05gCc3RCbzhgURIGdEO15ruYf6kf0BzUkl5gl8UxhP7s
eywKodaEKSvbkE3juZUh1P0oahbFEG7gLSZuKLVf34ZFyhpR5JoWhVDrKu5wzaIYQp3pupUJyOsoFnEp
2nR1G05AvomnVsYQPmPmzWVsEj2pOxeMzeKTlTGEL5h6APIS+jMXupJP74YgzzxA6hJpR7iMYhwnos3w
gGkvoJbozMoYwl+/yVmP6TFmPaZHVoZQf/mYduMl7mHxL5pgYBBF8Z8KDw1+fYv/2AmadKn+c32AxX6u
PTR3/nD0cynmh9MJE/WF1dO1iif4amp7BYfxZ7/MP0IQvAN0A71NbIj0UQAAAABJRU5ErkJggg==
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAASBJREFUWEft
lk0KgzAQhd1Ll0K76xW9iHdrN932JvZ95QXUiiRp/Fn4wWCYzLw3TQ1YnZwcmr7vL15mk62hxk7xVtyd
SoZea3ROxaGGWvFSAM+rt6JRz829wLP2VhxqaBRPukXSSVDrHkCj8VYaNFoAooagxrWQbx5AwEKwOAR7
roH/zQMIWRBmhyDnPShnHkDQwjAagrVzUN48gLAN4DuEY33zgAym12u4Tr6uWchoOARsZw4yGx47jN6J
VZHRfn+BDH5eOMfs7SgKwjaA0dvO2jkoPwSCFobZq0bOe1BuCIQsCLPmAfZcA/8PgYCFYNE8QI1rIX8I
Gi0AUeYBat0D6UOo4RAfJK3ioYj+5VPoVXASrVNpqHG/j9KTk22oqg+FO4+5CKyPOAAAAABJRU5ErkJg
gg==
</value>
</data>
<data name="CancelButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
@@ -2514,6 +2513,6 @@
<value>MipMapPrompt</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>PckStudio.Classes.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
+31 -19
View File
@@ -29,31 +29,18 @@
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RenamePrompt));
this.TextLabel = new System.Windows.Forms.Label();
this.OKButton = new System.Windows.Forms.Button();
this.InputTextBox = new MetroFramework.Controls.MetroTextBox();
this.TextLabel = new System.Windows.Forms.Label();
this.RenameButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.SuspendLayout();
//
// TextLabel
//
resources.ApplyResources(this.TextLabel, "TextLabel");
this.TextLabel.ForeColor = System.Drawing.Color.White;
this.TextLabel.Name = "TextLabel";
//
// OKButton
//
resources.ApplyResources(this.OKButton, "OKButton");
this.OKButton.ForeColor = System.Drawing.Color.White;
this.OKButton.Name = "OKButton";
this.OKButton.UseVisualStyleBackColor = true;
this.OKButton.Click += new System.EventHandler(this.OKBtn_Click);
//
// InputTextBox
//
//
//
//
this.InputTextBox.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image")));
this.InputTextBox.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode")));
this.InputTextBox.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location")));
this.InputTextBox.CustomButton.Name = "";
this.InputTextBox.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size")));
@@ -78,14 +65,39 @@
this.InputTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.InputTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// TextLabel
//
resources.ApplyResources(this.TextLabel, "TextLabel");
this.TextLabel.ForeColor = System.Drawing.Color.White;
this.TextLabel.Name = "TextLabel";
//
// RenameButton
//
this.RenameButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.RenameButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.RenameButton.BorderRadius = 10;
this.RenameButton.BorderSize = 1;
this.RenameButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.RenameButton.FlatAppearance.BorderSize = 0;
this.RenameButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.RenameButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
resources.ApplyResources(this.RenameButton, "RenameButton");
this.RenameButton.ForeColor = System.Drawing.Color.White;
this.RenameButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.RenameButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.RenameButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.RenameButton.Name = "RenameButton";
this.RenameButton.TextColor = System.Drawing.Color.White;
this.RenameButton.UseVisualStyleBackColor = false;
this.RenameButton.Click += new System.EventHandler(this.RenameButton_Click);
//
// RenamePrompt
//
this.AcceptButton = this.OKButton;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.Controls.Add(this.RenameButton);
this.Controls.Add(this.InputTextBox);
this.Controls.Add(this.OKButton);
this.Controls.Add(this.TextLabel);
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
@@ -98,8 +110,8 @@
}
#endregion
public System.Windows.Forms.Button OKButton;
public System.Windows.Forms.Label TextLabel;
private MetroFramework.Controls.MetroTextBox InputTextBox;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton RenameButton;
}
}
@@ -24,7 +24,7 @@ namespace PckStudio
private void OKBtn_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
private void InputTextBox_KeyDown(object sender, KeyEventArgs e)
@@ -32,5 +32,10 @@ namespace PckStudio
if (e.KeyCode == Keys.Enter)
OKBtn_Click(sender, e);
}
private void RenameButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
}
}
@@ -117,13 +117,56 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="resource.Image" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="resource.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="resource.Location" type="System.Drawing.Point, System.Drawing">
<value>143, 1</value>
</data>
<data name="resource.Size" type="System.Drawing.Size, System.Drawing">
<value>21, 21</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="resource.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="resource.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="InputTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>70, 18</value>
</data>
<data name="InputTextBox.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 23</value>
</data>
<data name="InputTextBox.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;InputTextBox.Name" xml:space="preserve">
<value>InputTextBox</value>
</data>
<data name="&gt;&gt;InputTextBox.Type" xml:space="preserve">
<value>MetroFramework.Controls.MetroTextBox, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
</data>
<data name="&gt;&gt;InputTextBox.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;InputTextBox.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="TextLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="TextLabel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="TextLabel.Location" type="System.Drawing.Point, System.Drawing">
<value>19, 46</value>
<value>29, 23</value>
</data>
<data name="TextLabel.Size" type="System.Drawing.Size, System.Drawing">
<value>36, 13</value>
@@ -149,68 +192,52 @@
<data name="&gt;&gt;TextLabel.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="OKButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<data name="RenameButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="OKButton.Location" type="System.Drawing.Point, System.Drawing">
<value>101, 74</value>
<data name="RenameButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="OKButton.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
<data name="RenameButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAADWSURBVFhH7ZZBCsIwEEVDF1256gF04b1Ez6iX0L1u1Av0BN3FH3xFaQgVktQW8uCB6QzzB1dj
CoUUWGtbeZVHuZcrPMiTvMmW9vRo+JCHfL5/fqA9PZrdyK3cyYvsOUv3zdUa2vOioEr2VHyeFsLz/eVj
kP/7AvRHwzhvAZ4elGe0AM9oGBecR3nGC/AMQlsQ2soCC14gFsYtcIFYGOcF8PSgPIMFUsP8fAFjkP+f
BZQ7/UGioFpuZOgkW8ua9vS4pAF3OelR2kl3CYfOclfraC8UvjDmBTcW9LuwEs8rAAAAAElFTkSuQmCC
</value>
</data>
<data name="OKButton.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
<data name="RenameButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="OKButton.Text" xml:space="preserve">
<data name="RenameButton.Location" type="System.Drawing.Point, System.Drawing">
<value>72, 53</value>
</data>
<data name="RenameButton.Size" type="System.Drawing.Size, System.Drawing">
<value>120, 40</value>
</data>
<data name="RenameButton.TabIndex" type="System.Int32, mscorlib">
<value>20</value>
</data>
<data name="RenameButton.Text" xml:space="preserve">
<value>Rename</value>
</data>
<data name="&gt;&gt;OKButton.Name" xml:space="preserve">
<value>OKButton</value>
<data name="RenameButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="&gt;&gt;OKButton.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<data name="RenameButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;OKButton.Parent" xml:space="preserve">
<data name="&gt;&gt;RenameButton.Name" xml:space="preserve">
<value>RenameButton</value>
</data>
<data name="&gt;&gt;RenameButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;RenameButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;OKButton.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="resource.Image" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="resource.Location" type="System.Drawing.Point, System.Drawing">
<value>143, 1</value>
</data>
<data name="resource.Size" type="System.Drawing.Size, System.Drawing">
<value>21, 21</value>
</data>
<data name="resource.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="resource.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="InputTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>60, 41</value>
</data>
<data name="InputTextBox.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 23</value>
</data>
<data name="InputTextBox.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;InputTextBox.Name" xml:space="preserve">
<value>InputTextBox</value>
</data>
<data name="&gt;&gt;InputTextBox.Type" xml:space="preserve">
<value>MetroFramework.Controls.MetroTextBox, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
</data>
<data name="&gt;&gt;InputTextBox.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;InputTextBox.ZOrder" xml:space="preserve">
<data name="&gt;&gt;RenameButton.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
@@ -2445,6 +2472,9 @@
vbLH9tge22N7bI/tsT22x/bYHttjC+3/B71iqRn22EDpAAAAAElFTkSuQmCC
</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
@@ -2455,6 +2485,6 @@
<value>RenamePrompt</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>PckStudio.Classes.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
+65 -31
View File
@@ -28,9 +28,10 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TextPrompt));
this.PromptTextBox = new MetroFramework.Controls.MetroTextBox();
this.okBtn = new MetroFramework.Controls.MetroButton();
this.cancelBtn = new MetroFramework.Controls.MetroButton();
this.CancelButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.SaveButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.SuspendLayout();
//
// PromptTextBox
@@ -39,7 +40,7 @@
//
//
this.PromptTextBox.CustomButton.Image = null;
this.PromptTextBox.CustomButton.Location = new System.Drawing.Point(34, 1);
this.PromptTextBox.CustomButton.Location = new System.Drawing.Point(61, 1);
this.PromptTextBox.CustomButton.Name = "";
this.PromptTextBox.CustomButton.Size = new System.Drawing.Size(283, 283);
this.PromptTextBox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
@@ -47,9 +48,8 @@
this.PromptTextBox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.PromptTextBox.CustomButton.UseSelectable = true;
this.PromptTextBox.CustomButton.Visible = false;
this.PromptTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.PromptTextBox.Lines = new string[0];
this.PromptTextBox.Location = new System.Drawing.Point(20, 60);
this.PromptTextBox.Location = new System.Drawing.Point(7, 9);
this.PromptTextBox.MaxLength = 32767;
this.PromptTextBox.Multiline = true;
this.PromptTextBox.Name = "PromptTextBox";
@@ -61,7 +61,7 @@
this.PromptTextBox.SelectionStart = 0;
this.PromptTextBox.ShortcutsEnabled = true;
this.PromptTextBox.ShowClearButton = true;
this.PromptTextBox.Size = new System.Drawing.Size(318, 285);
this.PromptTextBox.Size = new System.Drawing.Size(345, 285);
this.PromptTextBox.Style = MetroFramework.MetroColorStyle.Black;
this.PromptTextBox.TabIndex = 0;
this.PromptTextBox.Theme = MetroFramework.MetroThemeStyle.Dark;
@@ -70,38 +70,72 @@
this.PromptTextBox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.PromptTextBox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
//
// okBtn
// CancelButton
//
this.okBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.okBtn.Location = new System.Drawing.Point(264, 351);
this.okBtn.Name = "okBtn";
this.okBtn.Size = new System.Drawing.Size(74, 23);
this.okBtn.TabIndex = 1;
this.okBtn.Text = "OK";
this.okBtn.Theme = MetroFramework.MetroThemeStyle.Dark;
this.okBtn.UseSelectable = true;
this.okBtn.Click += new System.EventHandler(this.okBtn_Click);
this.CancelButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CancelButton.BorderRadius = 10;
this.CancelButton.BorderSize = 1;
this.CancelButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.BorderSize = 0;
this.CancelButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CancelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.CancelButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.CancelButton.ForeColor = System.Drawing.Color.White;
this.CancelButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CancelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(36)))), ((int)(((byte)(38)))));
this.CancelButton.Image = ((System.Drawing.Image)(resources.GetObject("CancelButton.Image")));
this.CancelButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.CancelButton.Location = new System.Drawing.Point(182, 300);
this.CancelButton.Name = "CancelButton";
this.CancelButton.Size = new System.Drawing.Size(120, 40);
this.CancelButton.TabIndex = 22;
this.CancelButton.Text = "Cancel";
this.CancelButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CancelButton.TextColor = System.Drawing.Color.White;
this.CancelButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.CancelButton.UseVisualStyleBackColor = false;
this.CancelButton.Click += new System.EventHandler(this.CancelButton_Click);
//
// cancelBtn
// SaveButton
//
this.cancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.cancelBtn.Location = new System.Drawing.Point(183, 351);
this.cancelBtn.Name = "cancelBtn";
this.cancelBtn.Size = new System.Drawing.Size(75, 23);
this.cancelBtn.TabIndex = 2;
this.cancelBtn.Text = "Cancel";
this.cancelBtn.Theme = MetroFramework.MetroThemeStyle.Dark;
this.cancelBtn.UseSelectable = true;
this.cancelBtn.Click += new System.EventHandler(this.cancelBtn_Click);
this.SaveButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SaveButton.BorderRadius = 10;
this.SaveButton.BorderSize = 1;
this.SaveButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.BorderSize = 0;
this.SaveButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SaveButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.SaveButton.Font = new System.Drawing.Font("Segoe UI", 12F);
this.SaveButton.ForeColor = System.Drawing.Color.White;
this.SaveButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SaveButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SaveButton.Image = ((System.Drawing.Image)(resources.GetObject("SaveButton.Image")));
this.SaveButton.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.SaveButton.Location = new System.Drawing.Point(56, 300);
this.SaveButton.Name = "SaveButton";
this.SaveButton.Size = new System.Drawing.Size(120, 40);
this.SaveButton.TabIndex = 21;
this.SaveButton.Text = "Save";
this.SaveButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.SaveButton.TextColor = System.Drawing.Color.White;
this.SaveButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.SaveButton.UseVisualStyleBackColor = false;
this.SaveButton.Click += new System.EventHandler(this.SaveButton_Click);
//
// TextPrompt
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.ClientSize = new System.Drawing.Size(358, 385);
this.Controls.Add(this.cancelBtn);
this.Controls.Add(this.okBtn);
this.ClientSize = new System.Drawing.Size(358, 348);
this.Controls.Add(this.CancelButton);
this.Controls.Add(this.SaveButton);
this.Controls.Add(this.PromptTextBox);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.ForeColor = System.Drawing.Color.White;
@@ -118,7 +152,7 @@
#endregion
private MetroFramework.Controls.MetroTextBox PromptTextBox;
private MetroFramework.Controls.MetroButton okBtn;
private MetroFramework.Controls.MetroButton cancelBtn;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton CancelButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton SaveButton;
}
}
@@ -15,10 +15,20 @@ namespace PckStudio.Forms.Additional_Popups
private void okBtn_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
private void cancelBtn_Click(object sender, EventArgs e)
{
}
private void SaveButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
private void CancelButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
@@ -117,4 +117,23 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="CancelButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAOFJREFUSEvt
lTEOgzAQBHkCTZq8MMlTKdPlNc4O2pOMuIAtQsdIJ4xvd08CC4aLbkopD9XNt83gwevbHAleKnirmoeg
tQee3l6j5qiaZlkpH9XdrZ+gsRbwjm7lILAQNofQswb2wwOENkA6hD33oD08wGAjLIaw9h70hwcYHQDz
ENfx8EAB9QnhWq+7j3MKQQ4M/hcOCqsfCyzeySEUdN4jUsDqhbrS09UFRgfA4rSw9h70D8FgI6RHkT33
oH0IQhsgDQ/oWQP7QxBYCJvhARprYXuImud+rkGC8344F2uG4QvjMhwJEIsdYQAAAABJRU5ErkJggg==
</value>
</data>
<data name="SaveButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAALtJREFUSEvt
1TEKwkAQheG9hKA23ke8T7TzpBZBD6HNOuv+ivDGxOyQLh9MYd5zVgwhaTFJzvlgc7GZqmPFMCv2td9k
/BCKmY+jqH8bPoRS5IDiTKwoRA/4/X3y+Q+IYp0iD2OdIg9jnSIPY50i99xtOpsdc7R52LhYp8g98gDZ
tVONFBVF7llT+bBrmxopKorc4x2wrZGiosg9s/9F75u8Yppv8rVWQnrWKQvLC+f2qrUpP3DPusU/UnoC
1EgDy/vtD/MAAAAASUVORK5CYII=
</value>
</data>
</root>
+6 -3
View File
@@ -116,7 +116,7 @@
// menuStrip
//
this.menuStrip.AutoSize = false;
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.editToolStripMenuItem,
@@ -132,8 +132,9 @@
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.saveToolStripMenuItem1});
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.Image = global::PckStudio.Properties.Resources.file_32px;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Size = new System.Drawing.Size(53, 20);
this.fileToolStripMenuItem.Text = "File";
//
// saveToolStripMenuItem1
@@ -152,8 +153,9 @@
this.exportJavaAnimationToolStripMenuItem,
this.changeTileToolStripMenuItem});
this.editToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.editToolStripMenuItem.Image = global::PckStudio.Properties.Resources.Tools_48px;
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
this.editToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
this.editToolStripMenuItem.Size = new System.Drawing.Size(62, 20);
this.editToolStripMenuItem.Text = "Tools";
//
// bulkAnimationSpeedToolStripMenuItem
@@ -312,6 +314,7 @@
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.ForeColor = System.Drawing.Color.White;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Location = new System.Drawing.Point(0, 0);
this.MinimumSize = new System.Drawing.Size(412, 362);
this.Name = "AnimationEditor";
this.Text = "Animation Editor";
+7 -1
View File
@@ -441,7 +441,13 @@ namespace PckStudio.Forms.Editor
private void addFrameToolStripMenuItem_Click(object sender, EventArgs e)
{
using FrameEditor diag = new FrameEditor(TextureIcons);
diag.SaveBtn.Text = "Add";
//Miku, MNL or Phoenix, this function needs a bit of fixing.
//I removed the SaveBtn and replaced it with a button with the name 'SaveButton'
//It does not want to work though so this part needs fixing.
// - EternalModz
//diag.SaveButton.Text = "Add";
if (diag.ShowDialog(this) == DialogResult.OK)
{
currentAnimation.AddFrame(diag.FrameTextureIndex, diag.FrameTime);
+279 -217
View File
@@ -33,10 +33,13 @@ namespace PckStudio.Forms.Editor
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(COLEditor));
this.metroPanel1 = new MetroFramework.Controls.MetroPanel();
this.metroTextBox1 = new MetroFramework.Controls.MetroTextBox();
this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
this.setColorBtn = new MetroFramework.Controls.MetroButton();
this.alphaLabel = new MetroFramework.Controls.MetroLabel();
this.blueLabel = new MetroFramework.Controls.MetroLabel();
this.greenLabel = new MetroFramework.Controls.MetroLabel();
this.redLabel = new MetroFramework.Controls.MetroLabel();
this.colorTextbox = new MetroFramework.Controls.MetroTextBox();
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -69,21 +72,17 @@ namespace PckStudio.Forms.Editor
this.underwaterTab = new System.Windows.Forms.TabPage();
this.fogTab = new System.Windows.Forms.TabPage();
this.panel1 = new System.Windows.Forms.Panel();
this.txHex = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
this.metroLabel4 = new MetroFramework.Controls.MetroLabel();
this.metroLabel5 = new MetroFramework.Controls.MetroLabel();
this.panel3 = new System.Windows.Forms.Panel();
this.metroLabel6 = new MetroFramework.Controls.MetroLabel();
this.txRed = new ColorPicker.NumericTextBox();
this.txGreen = new ColorPicker.NumericTextBox();
this.txBlue = new ColorPicker.NumericTextBox();
this.txTransp = new ColorPicker.NumericTextBox();
this.cBox = new ColorPicker.ColorBox();
this.verticalColorSlider1 = new ColorPicker.VerticalColorSlider();
this.metroPanel1.SuspendLayout();
this.crEaTiiOn_ModernSlider1 = new CBH.Controls.CrEaTiiOn_ModernSlider();
this.crEaTiiOn_ModernSlider2 = new CBH.Controls.CrEaTiiOn_ModernSlider();
this.crEaTiiOn_ModernSlider3 = new CBH.Controls.CrEaTiiOn_ModernSlider();
this.crEaTiiOn_ModernSlider4 = new CBH.Controls.CrEaTiiOn_ModernSlider();
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
this.numericUpDown4 = new System.Windows.Forms.NumericUpDown();
this.colorBox2D1 = new MechanikaDesign.WinForms.UI.ColorPicker.ColorBox2D();
this.colorSliderVertical1 = new MechanikaDesign.WinForms.UI.ColorPicker.ColorSliderVertical();
this.SetColorButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.menuStrip.SuspendLayout();
this.waterTab.SuspendLayout();
@@ -93,25 +92,12 @@ namespace PckStudio.Forms.Editor
this.underwaterTab.SuspendLayout();
this.fogTab.SuspendLayout();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
this.SuspendLayout();
//
// metroPanel1
//
this.metroPanel1.Controls.Add(this.panel2);
this.metroPanel1.Controls.Add(this.tabControl);
resources.ApplyResources(this.metroPanel1, "metroPanel1");
this.metroPanel1.HorizontalScrollbarBarColor = true;
this.metroPanel1.HorizontalScrollbarHighlightOnWheel = false;
this.metroPanel1.HorizontalScrollbarSize = 10;
this.metroPanel1.Name = "metroPanel1";
this.metroPanel1.Style = MetroFramework.MetroColorStyle.Silver;
this.metroPanel1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroPanel1.VerticalScrollbarBarColor = true;
this.metroPanel1.VerticalScrollbarHighlightOnWheel = false;
this.metroPanel1.VerticalScrollbarSize = 10;
//
// metroTextBox1
//
//
@@ -127,7 +113,8 @@ namespace PckStudio.Forms.Editor
this.metroTextBox1.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.metroTextBox1.CustomButton.UseSelectable = true;
this.metroTextBox1.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible")));
this.metroTextBox1.Lines = new string[0];
this.metroTextBox1.Lines = new string[] {
"Filter by searching..."};
resources.ApplyResources(this.metroTextBox1, "metroTextBox1");
this.metroTextBox1.MaxLength = 32767;
this.metroTextBox1.Name = "metroTextBox1";
@@ -143,19 +130,76 @@ namespace PckStudio.Forms.Editor
this.metroTextBox1.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
this.metroTextBox1.TextChanged += new System.EventHandler(this.metroTextBox1_TextChanged);
//
// metroLabel2
// alphaLabel
//
resources.ApplyResources(this.metroLabel2, "metroLabel2");
this.metroLabel2.Name = "metroLabel2";
this.metroLabel2.Theme = MetroFramework.MetroThemeStyle.Dark;
resources.ApplyResources(this.alphaLabel, "alphaLabel");
this.alphaLabel.Name = "alphaLabel";
this.alphaLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
this.alphaLabel.UseCustomBackColor = true;
this.alphaLabel.UseCustomForeColor = true;
//
// setColorBtn
// blueLabel
//
resources.ApplyResources(this.setColorBtn, "setColorBtn");
this.setColorBtn.Name = "setColorBtn";
this.setColorBtn.Theme = MetroFramework.MetroThemeStyle.Dark;
this.setColorBtn.UseSelectable = true;
this.setColorBtn.Click += new System.EventHandler(this.setColorBtn_Click);
resources.ApplyResources(this.blueLabel, "blueLabel");
this.blueLabel.Name = "blueLabel";
this.blueLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
this.blueLabel.UseCustomBackColor = true;
this.blueLabel.UseCustomForeColor = true;
//
// greenLabel
//
resources.ApplyResources(this.greenLabel, "greenLabel");
this.greenLabel.Name = "greenLabel";
this.greenLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
this.greenLabel.UseCustomBackColor = true;
this.greenLabel.UseCustomForeColor = true;
//
// redLabel
//
resources.ApplyResources(this.redLabel, "redLabel");
this.redLabel.Name = "redLabel";
this.redLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
this.redLabel.UseCustomBackColor = true;
this.redLabel.UseCustomForeColor = true;
//
// colorTextbox
//
//
//
//
this.colorTextbox.CustomButton.Image = ((System.Drawing.Image)(resources.GetObject("resource.Image1")));
this.colorTextbox.CustomButton.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("resource.ImeMode1")));
this.colorTextbox.CustomButton.Location = ((System.Drawing.Point)(resources.GetObject("resource.Location1")));
this.colorTextbox.CustomButton.Name = "";
this.colorTextbox.CustomButton.Size = ((System.Drawing.Size)(resources.GetObject("resource.Size1")));
this.colorTextbox.CustomButton.Style = MetroFramework.MetroColorStyle.Blue;
this.colorTextbox.CustomButton.TabIndex = ((int)(resources.GetObject("resource.TabIndex1")));
this.colorTextbox.CustomButton.Theme = MetroFramework.MetroThemeStyle.Light;
this.colorTextbox.CustomButton.UseSelectable = true;
this.colorTextbox.CustomButton.Visible = ((bool)(resources.GetObject("resource.Visible1")));
this.colorTextbox.Lines = new string[0];
resources.ApplyResources(this.colorTextbox, "colorTextbox");
this.colorTextbox.MaxLength = 32767;
this.colorTextbox.Name = "colorTextbox";
this.colorTextbox.PasswordChar = '\0';
this.colorTextbox.ScrollBars = System.Windows.Forms.ScrollBars.None;
this.colorTextbox.SelectedText = "";
this.colorTextbox.SelectionLength = 0;
this.colorTextbox.SelectionStart = 0;
this.colorTextbox.ShortcutsEnabled = true;
this.colorTextbox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.colorTextbox.UseSelectable = true;
this.colorTextbox.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
this.colorTextbox.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
this.colorTextbox.TextChanged += new System.EventHandler(this.colorBox_TextChanged);
//
// metroLabel1
//
resources.ApplyResources(this.metroLabel1, "metroLabel1");
this.metroLabel1.Name = "metroLabel1";
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroLabel1.UseCustomBackColor = true;
this.metroLabel1.UseCustomForeColor = true;
//
// pictureBox1
//
@@ -167,7 +211,7 @@ namespace PckStudio.Forms.Editor
// menuStrip
//
resources.ApplyResources(this.menuStrip, "menuStrip");
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.targetUpdateToolToolStripMenuItem});
@@ -178,8 +222,8 @@ namespace PckStudio.Forms.Editor
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.saveToolStripMenuItem1});
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
resources.ApplyResources(this.fileToolStripMenuItem, "fileToolStripMenuItem");
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
//
// saveToolStripMenuItem1
//
@@ -204,8 +248,8 @@ namespace PckStudio.Forms.Editor
this.TU69ToolStripMenuItem,
this._1_9_1ToolStripMenuItem});
this.targetUpdateToolToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.targetUpdateToolToolStripMenuItem.Name = "targetUpdateToolToolStripMenuItem";
resources.ApplyResources(this.targetUpdateToolToolStripMenuItem, "targetUpdateToolToolStripMenuItem");
this.targetUpdateToolToolStripMenuItem.Name = "targetUpdateToolToolStripMenuItem";
//
// TU12ToolStripMenuItem
//
@@ -281,7 +325,7 @@ namespace PckStudio.Forms.Editor
//
// waterTreeView
//
this.waterTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.waterTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10)))));
this.waterTreeView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.waterTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.waterTreeView, "waterTreeView");
@@ -319,8 +363,8 @@ namespace PckStudio.Forms.Editor
//
// underwaterTreeView
//
this.underwaterTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.underwaterTreeView.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.underwaterTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10)))));
this.underwaterTreeView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.underwaterTreeView.ContextMenuStrip = this.ColorContextMenu;
this.underwaterTreeView.ForeColor = System.Drawing.Color.White;
resources.ApplyResources(this.underwaterTreeView, "underwaterTreeView");
@@ -330,8 +374,8 @@ namespace PckStudio.Forms.Editor
//
// fogTreeView
//
this.fogTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.fogTreeView.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.fogTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10)))));
this.fogTreeView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.fogTreeView.ContextMenuStrip = this.ColorContextMenu;
this.fogTreeView.ForeColor = System.Drawing.Color.White;
resources.ApplyResources(this.fogTreeView, "fogTreeView");
@@ -348,7 +392,7 @@ namespace PckStudio.Forms.Editor
//
// colorTreeView
//
this.colorTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.colorTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(10)))), ((int)(((byte)(10)))));
this.colorTreeView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.colorTreeView.ContextMenuStrip = this.ColorContextMenu;
resources.ApplyResources(this.colorTreeView, "colorTreeView");
@@ -359,11 +403,11 @@ namespace PckStudio.Forms.Editor
//
// tabControl
//
resources.ApplyResources(this.tabControl, "tabControl");
this.tabControl.Controls.Add(this.colorsTab);
this.tabControl.Controls.Add(this.waterTab);
this.tabControl.Controls.Add(this.underwaterTab);
this.tabControl.Controls.Add(this.fogTab);
resources.ApplyResources(this.tabControl, "tabControl");
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 0;
this.tabControl.Style = MetroFramework.MetroColorStyle.White;
@@ -372,191 +416,209 @@ namespace PckStudio.Forms.Editor
//
// underwaterTab
//
this.underwaterTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.underwaterTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.underwaterTab.Controls.Add(this.underwaterTreeView);
resources.ApplyResources(this.underwaterTab, "underwaterTab");
this.underwaterTab.Name = "underwaterTab";
//
// fogTab
//
this.fogTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.fogTab.BackColor = System.Drawing.SystemColors.WindowFrame;
this.fogTab.Controls.Add(this.fogTreeView);
resources.ApplyResources(this.fogTab, "fogTab");
this.fogTab.Name = "fogTab";
//
// panel1
//
this.panel1.Controls.Add(this.verticalColorSlider1);
this.panel1.Controls.Add(this.cBox);
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.SetColorButton);
this.panel1.Controls.Add(this.colorSliderVertical1);
this.panel1.Controls.Add(this.colorBox2D1);
this.panel1.Controls.Add(this.numericUpDown4);
this.panel1.Controls.Add(this.numericUpDown3);
this.panel1.Controls.Add(this.numericUpDown2);
this.panel1.Controls.Add(this.numericUpDown1);
this.panel1.Controls.Add(this.crEaTiiOn_ModernSlider3);
this.panel1.Controls.Add(this.crEaTiiOn_ModernSlider4);
this.panel1.Controls.Add(this.crEaTiiOn_ModernSlider2);
this.panel1.Controls.Add(this.crEaTiiOn_ModernSlider1);
this.panel1.Controls.Add(this.blueLabel);
this.panel1.Controls.Add(this.alphaLabel);
this.panel1.Controls.Add(this.greenLabel);
this.panel1.Controls.Add(this.redLabel);
this.panel1.Controls.Add(this.colorTextbox);
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.metroLabel1);
resources.ApplyResources(this.panel1, "panel1");
this.panel1.Name = "panel1";
//
// txHex
// crEaTiiOn_ModernSlider1
//
resources.ApplyResources(this.txHex, "txHex");
this.txHex.Name = "txHex";
this.crEaTiiOn_ModernSlider1.BarThickness = 4;
this.crEaTiiOn_ModernSlider1.BigStepIncrement = 10;
this.crEaTiiOn_ModernSlider1.Colors = ((System.Collections.Generic.List<System.Drawing.Color>)(resources.GetObject("crEaTiiOn_ModernSlider1.Colors")));
this.crEaTiiOn_ModernSlider1.CompositingQualityType = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
this.crEaTiiOn_ModernSlider1.Cursor = System.Windows.Forms.Cursors.Hand;
this.crEaTiiOn_ModernSlider1.FilledColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(119)))), ((int)(((byte)(215)))));
this.crEaTiiOn_ModernSlider1.InterpolationType = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear;
this.crEaTiiOn_ModernSlider1.KnobColor = System.Drawing.Color.Gray;
this.crEaTiiOn_ModernSlider1.KnobImage = null;
resources.ApplyResources(this.crEaTiiOn_ModernSlider1, "crEaTiiOn_ModernSlider1");
this.crEaTiiOn_ModernSlider1.Max = 100;
this.crEaTiiOn_ModernSlider1.Name = "crEaTiiOn_ModernSlider1";
this.crEaTiiOn_ModernSlider1.Percentage = 50;
this.crEaTiiOn_ModernSlider1.PixelOffsetType = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
this.crEaTiiOn_ModernSlider1.Positions = ((System.Collections.Generic.List<float>)(resources.GetObject("crEaTiiOn_ModernSlider1.Positions")));
this.crEaTiiOn_ModernSlider1.QuickHopping = false;
this.crEaTiiOn_ModernSlider1.SliderStyle = CBH.Controls.CrEaTiiOn_ModernSlider.Style.Windows10;
this.crEaTiiOn_ModernSlider1.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
this.crEaTiiOn_ModernSlider1.UnfilledColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(169)))), ((int)(((byte)(219)))));
//
// panel2
// crEaTiiOn_ModernSlider2
//
this.panel2.Controls.Add(this.panel1);
this.panel2.Controls.Add(this.pictureBox1);
this.panel2.Controls.Add(this.setColorBtn);
resources.ApplyResources(this.panel2, "panel2");
this.panel2.Name = "panel2";
this.crEaTiiOn_ModernSlider2.BarThickness = 4;
this.crEaTiiOn_ModernSlider2.BigStepIncrement = 10;
this.crEaTiiOn_ModernSlider2.Colors = ((System.Collections.Generic.List<System.Drawing.Color>)(resources.GetObject("crEaTiiOn_ModernSlider2.Colors")));
this.crEaTiiOn_ModernSlider2.CompositingQualityType = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
this.crEaTiiOn_ModernSlider2.Cursor = System.Windows.Forms.Cursors.Hand;
this.crEaTiiOn_ModernSlider2.FilledColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(119)))), ((int)(((byte)(215)))));
this.crEaTiiOn_ModernSlider2.InterpolationType = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear;
this.crEaTiiOn_ModernSlider2.KnobColor = System.Drawing.Color.Gray;
this.crEaTiiOn_ModernSlider2.KnobImage = null;
resources.ApplyResources(this.crEaTiiOn_ModernSlider2, "crEaTiiOn_ModernSlider2");
this.crEaTiiOn_ModernSlider2.Max = 100;
this.crEaTiiOn_ModernSlider2.Name = "crEaTiiOn_ModernSlider2";
this.crEaTiiOn_ModernSlider2.Percentage = 50;
this.crEaTiiOn_ModernSlider2.PixelOffsetType = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
this.crEaTiiOn_ModernSlider2.Positions = ((System.Collections.Generic.List<float>)(resources.GetObject("crEaTiiOn_ModernSlider2.Positions")));
this.crEaTiiOn_ModernSlider2.QuickHopping = false;
this.crEaTiiOn_ModernSlider2.SliderStyle = CBH.Controls.CrEaTiiOn_ModernSlider.Style.Windows10;
this.crEaTiiOn_ModernSlider2.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
this.crEaTiiOn_ModernSlider2.UnfilledColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(169)))), ((int)(((byte)(219)))));
//
// metroLabel1
// crEaTiiOn_ModernSlider3
//
resources.ApplyResources(this.metroLabel1, "metroLabel1");
this.metroLabel1.Name = "metroLabel1";
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroLabel1.UseCustomBackColor = true;
this.metroLabel1.UseCustomForeColor = true;
this.crEaTiiOn_ModernSlider3.BarThickness = 4;
this.crEaTiiOn_ModernSlider3.BigStepIncrement = 10;
this.crEaTiiOn_ModernSlider3.Colors = ((System.Collections.Generic.List<System.Drawing.Color>)(resources.GetObject("crEaTiiOn_ModernSlider3.Colors")));
this.crEaTiiOn_ModernSlider3.CompositingQualityType = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
this.crEaTiiOn_ModernSlider3.Cursor = System.Windows.Forms.Cursors.Hand;
this.crEaTiiOn_ModernSlider3.FilledColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(119)))), ((int)(((byte)(215)))));
this.crEaTiiOn_ModernSlider3.InterpolationType = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear;
this.crEaTiiOn_ModernSlider3.KnobColor = System.Drawing.Color.Gray;
this.crEaTiiOn_ModernSlider3.KnobImage = null;
resources.ApplyResources(this.crEaTiiOn_ModernSlider3, "crEaTiiOn_ModernSlider3");
this.crEaTiiOn_ModernSlider3.Max = 100;
this.crEaTiiOn_ModernSlider3.Name = "crEaTiiOn_ModernSlider3";
this.crEaTiiOn_ModernSlider3.Percentage = 50;
this.crEaTiiOn_ModernSlider3.PixelOffsetType = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
this.crEaTiiOn_ModernSlider3.Positions = ((System.Collections.Generic.List<float>)(resources.GetObject("crEaTiiOn_ModernSlider3.Positions")));
this.crEaTiiOn_ModernSlider3.QuickHopping = false;
this.crEaTiiOn_ModernSlider3.SliderStyle = CBH.Controls.CrEaTiiOn_ModernSlider.Style.Windows10;
this.crEaTiiOn_ModernSlider3.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
this.crEaTiiOn_ModernSlider3.UnfilledColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(169)))), ((int)(((byte)(219)))));
//
// metroLabel3
// crEaTiiOn_ModernSlider4
//
resources.ApplyResources(this.metroLabel3, "metroLabel3");
this.metroLabel3.Name = "metroLabel3";
this.metroLabel3.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroLabel3.UseCustomBackColor = true;
this.metroLabel3.UseCustomForeColor = true;
this.crEaTiiOn_ModernSlider4.BarThickness = 4;
this.crEaTiiOn_ModernSlider4.BigStepIncrement = 10;
this.crEaTiiOn_ModernSlider4.Colors = ((System.Collections.Generic.List<System.Drawing.Color>)(resources.GetObject("crEaTiiOn_ModernSlider4.Colors")));
this.crEaTiiOn_ModernSlider4.CompositingQualityType = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
this.crEaTiiOn_ModernSlider4.Cursor = System.Windows.Forms.Cursors.Hand;
this.crEaTiiOn_ModernSlider4.FilledColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(119)))), ((int)(((byte)(215)))));
this.crEaTiiOn_ModernSlider4.InterpolationType = System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear;
this.crEaTiiOn_ModernSlider4.KnobColor = System.Drawing.Color.Gray;
this.crEaTiiOn_ModernSlider4.KnobImage = null;
resources.ApplyResources(this.crEaTiiOn_ModernSlider4, "crEaTiiOn_ModernSlider4");
this.crEaTiiOn_ModernSlider4.Max = 100;
this.crEaTiiOn_ModernSlider4.Name = "crEaTiiOn_ModernSlider4";
this.crEaTiiOn_ModernSlider4.Percentage = 50;
this.crEaTiiOn_ModernSlider4.PixelOffsetType = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
this.crEaTiiOn_ModernSlider4.Positions = ((System.Collections.Generic.List<float>)(resources.GetObject("crEaTiiOn_ModernSlider4.Positions")));
this.crEaTiiOn_ModernSlider4.QuickHopping = false;
this.crEaTiiOn_ModernSlider4.SliderStyle = CBH.Controls.CrEaTiiOn_ModernSlider.Style.Windows10;
this.crEaTiiOn_ModernSlider4.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
this.crEaTiiOn_ModernSlider4.UnfilledColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(169)))), ((int)(((byte)(219)))));
//
// metroLabel4
// numericUpDown1
//
resources.ApplyResources(this.metroLabel4, "metroLabel4");
this.metroLabel4.Name = "metroLabel4";
this.metroLabel4.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroLabel4.UseCustomBackColor = true;
this.metroLabel4.UseCustomForeColor = true;
this.numericUpDown1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.numericUpDown1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.numericUpDown1.ForeColor = System.Drawing.Color.White;
resources.ApplyResources(this.numericUpDown1, "numericUpDown1");
this.numericUpDown1.Name = "numericUpDown1";
//
// metroLabel5
// numericUpDown2
//
resources.ApplyResources(this.metroLabel5, "metroLabel5");
this.metroLabel5.Name = "metroLabel5";
this.metroLabel5.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroLabel5.UseCustomBackColor = true;
this.metroLabel5.UseCustomForeColor = true;
this.numericUpDown2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.numericUpDown2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.numericUpDown2.ForeColor = System.Drawing.Color.White;
resources.ApplyResources(this.numericUpDown2, "numericUpDown2");
this.numericUpDown2.Name = "numericUpDown2";
//
// panel3
// numericUpDown3
//
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.panel3.Controls.Add(this.metroLabel6);
this.panel3.Controls.Add(this.metroLabel5);
this.panel3.Controls.Add(this.txRed);
this.panel3.Controls.Add(this.metroLabel4);
this.panel3.Controls.Add(this.txGreen);
this.panel3.Controls.Add(this.metroLabel3);
this.panel3.Controls.Add(this.txBlue);
this.panel3.Controls.Add(this.metroLabel1);
this.panel3.Controls.Add(this.txHex);
this.panel3.Controls.Add(this.txTransp);
resources.ApplyResources(this.panel3, "panel3");
this.panel3.Name = "panel3";
this.numericUpDown3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.numericUpDown3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.numericUpDown3.ForeColor = System.Drawing.Color.White;
resources.ApplyResources(this.numericUpDown3, "numericUpDown3");
this.numericUpDown3.Name = "numericUpDown3";
//
// metroLabel6
// numericUpDown4
//
resources.ApplyResources(this.metroLabel6, "metroLabel6");
this.metroLabel6.Name = "metroLabel6";
this.metroLabel6.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroLabel6.UseCustomBackColor = true;
this.metroLabel6.UseCustomForeColor = true;
this.numericUpDown4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.numericUpDown4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.numericUpDown4.ForeColor = System.Drawing.Color.White;
resources.ApplyResources(this.numericUpDown4, "numericUpDown4");
this.numericUpDown4.Name = "numericUpDown4";
//
// txRed
// colorBox2D1
//
this.txRed.AllowDecimal = false;
this.txRed.AllowNull = false;
this.txRed.AllowSign = false;
this.txRed.DecimalValue = new decimal(new int[] {
0,
0,
0,
0});
this.txRed.DoubleValue = 0D;
this.txRed.Format = "";
this.txRed.Int32Value = 0;
resources.ApplyResources(this.txRed, "txRed");
this.txRed.Name = "txRed";
this.txRed.UInt32Value = ((uint)(0u));
this.colorBox2D1.ColorMode = MechanikaDesign.WinForms.UI.ColorPicker.ColorModes.Hue;
this.colorBox2D1.ColorRGB = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
resources.ApplyResources(this.colorBox2D1, "colorBox2D1");
this.colorBox2D1.Name = "colorBox2D1";
//
// txGreen
// colorSliderVertical1
//
this.txGreen.AllowDecimal = false;
this.txGreen.AllowNull = false;
this.txGreen.AllowSign = false;
this.txGreen.DecimalValue = new decimal(new int[] {
0,
0,
0,
0});
this.txGreen.DoubleValue = 0D;
this.txGreen.Format = "";
this.txGreen.Int32Value = 0;
resources.ApplyResources(this.txGreen, "txGreen");
this.txGreen.Name = "txGreen";
this.txGreen.UInt32Value = ((uint)(0u));
this.colorSliderVertical1.BackColor = System.Drawing.Color.Transparent;
this.colorSliderVertical1.ColorMode = MechanikaDesign.WinForms.UI.ColorPicker.ColorModes.Hue;
this.colorSliderVertical1.ColorRGB = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
resources.ApplyResources(this.colorSliderVertical1, "colorSliderVertical1");
this.colorSliderVertical1.Name = "colorSliderVertical1";
this.colorSliderVertical1.NubColor = System.Drawing.Color.Empty;
this.colorSliderVertical1.Position = 0;
//
// txBlue
// SetColorButton
//
this.txBlue.AllowDecimal = false;
this.txBlue.AllowNull = false;
this.txBlue.AllowSign = false;
this.txBlue.DecimalValue = new decimal(new int[] {
0,
0,
0,
0});
this.txBlue.DoubleValue = 0D;
this.txBlue.Format = "";
this.txBlue.Int32Value = 0;
resources.ApplyResources(this.txBlue, "txBlue");
this.txBlue.Name = "txBlue";
this.txBlue.UInt32Value = ((uint)(0u));
//
// txTransp
//
this.txTransp.AllowDecimal = false;
this.txTransp.AllowNull = false;
this.txTransp.AllowSign = false;
this.txTransp.DecimalValue = new decimal(new int[] {
0,
0,
0,
0});
this.txTransp.DoubleValue = 0D;
this.txTransp.Format = "";
this.txTransp.Int32Value = 0;
resources.ApplyResources(this.txTransp, "txTransp");
this.txTransp.Name = "txTransp";
this.txTransp.UInt32Value = ((uint)(0u));
//
// cBox
//
this.cBox.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.cBox.DrawStyle = ColorPicker.DrawStyles.Hue;
resources.ApplyResources(this.cBox, "cBox");
this.cBox.Name = "cBox";
this.cBox.RGB = 16711680;
//
// verticalColorSlider1
//
this.verticalColorSlider1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
this.verticalColorSlider1.DrawStyle = ColorPicker.DrawStyles.Hue;
resources.ApplyResources(this.verticalColorSlider1, "verticalColorSlider1");
this.verticalColorSlider1.Name = "verticalColorSlider1";
this.verticalColorSlider1.RGB = 16711680;
this.SetColorButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SetColorButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.SetColorButton.BorderRadius = 10;
this.SetColorButton.BorderSize = 1;
this.SetColorButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SetColorButton.FlatAppearance.BorderSize = 0;
this.SetColorButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.SetColorButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
resources.ApplyResources(this.SetColorButton, "SetColorButton");
this.SetColorButton.ForeColor = System.Drawing.Color.White;
this.SetColorButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SetColorButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.SetColorButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.SetColorButton.Name = "SetColorButton";
this.SetColorButton.TextColor = System.Drawing.Color.White;
this.SetColorButton.UseVisualStyleBackColor = false;
this.SetColorButton.Click += new System.EventHandler(this.SetColorButton_Click);
//
// COLEditor
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.Controls.Add(this.metroPanel1);
this.Controls.Add(this.tabControl);
this.Controls.Add(this.panel1);
this.Controls.Add(this.metroTextBox1);
this.Controls.Add(this.metroLabel2);
this.Controls.Add(this.menuStrip);
this.ForeColor = System.Drawing.Color.White;
this.Name = "COLEditor";
this.metroPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
@@ -567,17 +629,16 @@ namespace PckStudio.Forms.Editor
this.underwaterTab.ResumeLayout(false);
this.fogTab.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private MetroFramework.Controls.MetroPanel metroPanel1;
private TreeView colorTreeView;
private TreeView waterTreeView;
private TreeView fogTreeView;
@@ -586,16 +647,20 @@ namespace PckStudio.Forms.Editor
private System.Windows.Forms.MenuStrip menuStrip;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem1;
private MetroFramework.Controls.MetroLabel blueLabel;
private MetroFramework.Controls.MetroLabel greenLabel;
private MetroFramework.Controls.MetroLabel redLabel;
private MetroFramework.Controls.MetroLabel alphaLabel;
private TabPage waterTab;
private TabPage colorsTab;
private MetroFramework.Controls.MetroTabControl tabControl;
private MetroFramework.Controls.MetroButton setColorBtn;
private TabPage underwaterTab;
private TabPage fogTab;
private MetroFramework.Controls.MetroTextBox colorTextbox;
private MetroFramework.Controls.MetroLabel metroLabel1;
private MetroFramework.Controls.MetroContextMenu ColorContextMenu;
private ToolStripMenuItem restoreOriginalColorToolStripMenuItem;
private MetroFramework.Controls.MetroTextBox metroTextBox1;
private MetroFramework.Controls.MetroLabel metroLabel2;
private ToolStripMenuItem targetUpdateToolToolStripMenuItem;
private ToolStripMenuItem TU12ToolStripMenuItem;
private ToolStripMenuItem TU13ToolStripMenuItem;
@@ -612,20 +677,17 @@ namespace PckStudio.Forms.Editor
private ToolStripMenuItem _1_9_1ToolStripMenuItem;
private ToolStripMenuItem copyColorToolStripMenuItem;
private ToolStripMenuItem pasteColorToolStripMenuItem;
private Panel panel2;
private Panel panel1;
private Panel panel3;
private MetroFramework.Controls.MetroLabel metroLabel6;
private MetroFramework.Controls.MetroLabel metroLabel5;
private ColorPicker.NumericTextBox txRed;
private MetroFramework.Controls.MetroLabel metroLabel4;
private ColorPicker.NumericTextBox txGreen;
private MetroFramework.Controls.MetroLabel metroLabel3;
private ColorPicker.NumericTextBox txBlue;
private MetroFramework.Controls.MetroLabel metroLabel1;
private TextBox txHex;
private ColorPicker.NumericTextBox txTransp;
private ColorPicker.ColorBox cBox;
private ColorPicker.VerticalColorSlider verticalColorSlider1;
private MechanikaDesign.WinForms.UI.ColorPicker.ColorSliderVertical colorSliderVertical1;
private MechanikaDesign.WinForms.UI.ColorPicker.ColorBox2D colorBox2D1;
private NumericUpDown numericUpDown4;
private NumericUpDown numericUpDown3;
private NumericUpDown numericUpDown2;
private NumericUpDown numericUpDown1;
private CBH.Controls.CrEaTiiOn_ModernSlider crEaTiiOn_ModernSlider3;
private CBH.Controls.CrEaTiiOn_ModernSlider crEaTiiOn_ModernSlider4;
private CBH.Controls.CrEaTiiOn_ModernSlider crEaTiiOn_ModernSlider2;
private CBH.Controls.CrEaTiiOn_ModernSlider crEaTiiOn_ModernSlider1;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton SetColorButton;
}
}
+138 -58
View File
@@ -4,9 +4,10 @@ using System.Drawing;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using PckStudio.ToolboxItems;
using MetroFramework.Forms;
using PckStudio.Classes.FileTypes;
using PckStudio.Classes.IO.COL;
using PckStudio.ToolboxItems;
namespace PckStudio.Forms.Editor
{
@@ -119,8 +120,22 @@ namespace PckStudio.Forms.Editor
void SetUpValueChanged(bool add)
{
//This function has been removed because of the new coloring system. -EternalModz
}
if(add)
{
//NML Miku PhoenixARC, more errors
//alphaUpDown.ValueChanged += color_ValueChanged;
//redUpDown.ValueChanged += color_ValueChanged;
//greenUpDown.ValueChanged += color_ValueChanged;
//blueUpDown.ValueChanged += color_ValueChanged;
}
else
{
//alphaUpDown.ValueChanged -= color_ValueChanged;
//redUpDown.ValueChanged -= color_ValueChanged;
//greenUpDown.ValueChanged -= color_ValueChanged;
//blueUpDown.ValueChanged -= color_ValueChanged;
}
}
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{
@@ -129,7 +144,12 @@ namespace PckStudio.Forms.Editor
var colorEntry = (COLFile.ColorEntry)colorTreeView.SelectedNode.Tag;
var color = colorEntry.color;
SetUpValueChanged(false);
pictureBox1.BackColor = Color.FromArgb(0xff << 24 | (int)color);
//alphaUpDown.Visible = false;
//alphaLabel.Visible = false;
//redUpDown.Value = color >> 16 & 0xff;
//greenUpDown.Value = color >> 8 & 0xff;
//blueUpDown.Value = color & 0xff;
pictureBox1.BackColor = Color.FromArgb(0xff << 24 | (int)color);
SetUpValueChanged(true);
}
@@ -140,7 +160,14 @@ namespace PckStudio.Forms.Editor
var colorEntry = (COLFile.ExtendedColorEntry)waterTreeView.SelectedNode.Tag;
int color = (int)colorEntry.color;
SetUpValueChanged(false);
pictureBox1.BackColor = Color.FromArgb(color);
//alphaUpDown.Enabled = true;
//alphaUpDown.Visible = true;
//alphaLabel.Visible = true;
//alphaUpDown.Value = color >> 24 & 0xff;
//redUpDown.Value = color >> 16 & 0xff;
//greenUpDown.Value = color >> 8 & 0xff;
//blueUpDown.Value = color & 0xff;
pictureBox1.BackColor = Color.FromArgb(color);
SetUpValueChanged(true);
}
@@ -151,8 +178,13 @@ namespace PckStudio.Forms.Editor
var colorEntry = (COLFile.ExtendedColorEntry)underwaterTreeView.SelectedNode.Tag;
int color = (int)colorEntry.color_b;
SetUpValueChanged(false);
pictureBox1.BackColor = Color.FromArgb(255, Color.FromArgb(0xff << 24 | color));
SetUpValueChanged(true);
//alphaUpDown.Visible = false;
alphaLabel.Visible = false;
//redUpDown.Value = color >> 16 & 0xff;
//greenUpDown.Value = color >> 8 & 0xff;
//blueUpDown.Value = color & 0xff;
//pictureBox1.BackColor = Color.FromArgb(255, Color.FromArgb(0xff << 24 | color));
SetUpValueChanged(true);
}
private void treeView4_AfterSelect(object sender, TreeViewEventArgs e)
@@ -162,7 +194,12 @@ namespace PckStudio.Forms.Editor
var colorEntry = (COLFile.ExtendedColorEntry)fogTreeView.SelectedNode.Tag;
int color = (int)colorEntry.color_c;
SetUpValueChanged(false);
pictureBox1.BackColor = Color.FromArgb(255, Color.FromArgb(0xff << 24 | color));
//alphaUpDown.Visible = false;
alphaLabel.Visible = false;
//redUpDown.Value = color >> 16 & 0xff;
//greenUpDown.Value = color >> 8 & 0xff;
//blueUpDown.Value = color & 0xff;
pictureBox1.BackColor = Color.FromArgb(255, Color.FromArgb(0xff << 24 | color));
SetUpValueChanged(true);
}
@@ -320,12 +357,14 @@ namespace PckStudio.Forms.Editor
if (tabControl.SelectedTab == colorsTab)
{
var colorEntry = (COLFile.ColorEntry)colorTreeView.SelectedNode.Tag;
colorEntry.color = (uint)(((255 << 24) | (fixed_color.R << 16) | (fixed_color.G << 8) | fixed_color.B) & 0xffffffffL);
//fixed_color = Color.FromArgb(255, (int)redUpDown.Value, (int)greenUpDown.Value, (int)blueUpDown.Value);
colorEntry.color = (uint)(((255 << 24) | (fixed_color.R << 16) | (fixed_color.G << 8) | fixed_color.B) & 0xffffffffL);
}
else if (tabControl.SelectedTab != null && waterTreeView.SelectedNode != null) // just in case
{
var colorEntry = (COLFile.ExtendedColorEntry)waterTreeView.SelectedNode.Tag;
uint value = (uint)(((fixed_color.A << 24) | (fixed_color.R << 16) | (fixed_color.G << 8) | fixed_color.B) & 0xffffffffL);
//fixed_color = Color.FromArgb(tabControl.SelectedTab == waterTab ? (int)alphaUpDown.Value : 255, (int)redUpDown.Value, (int)greenUpDown.Value, (int)blueUpDown.Value);
uint value = (uint)(((fixed_color.A << 24) | (fixed_color.R << 16) | (fixed_color.G << 8) | fixed_color.B) & 0xffffffffL);
if (tabControl.SelectedTab == waterTab) colorEntry.color = value;
else if (tabControl.SelectedTab == underwaterTab) colorEntry.color_b = value;
else colorEntry.color_c = value;
@@ -337,42 +376,7 @@ namespace PckStudio.Forms.Editor
private void setColorBtn_Click(object sender, EventArgs e)
{
ColorDialog colorPick = new ColorDialog();
colorPick.AllowFullOpen = true;
colorPick.AnyColor = true;
colorPick.SolidColorOnly = tabControl.SelectedTab == colorsTab;
if (colorPick.ShowDialog() != DialogResult.OK) return;
pictureBox1.BackColor = colorPick.Color;
if (tabControl.SelectedTab == waterTab && waterTreeView.SelectedNode != null &&
waterTreeView.SelectedNode.Tag != null && waterTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry)
{
var colorEntry = ((COLFile.ExtendedColorEntry)waterTreeView.SelectedNode.Tag);
// preserves the alpha so the user can handle it since the color picker doesn't support alpha
Color fixed_color = Color.FromArgb(Color.FromArgb((int)colorEntry.color).A, colorPick.Color);
colorEntry.color = (uint)fixed_color.ToArgb();
pictureBox1.BackColor = fixed_color;
}
else if (tabControl.SelectedTab == underwaterTab && underwaterTreeView.SelectedNode != null &&
underwaterTreeView.SelectedNode.Tag != null && underwaterTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry)
{
var colorEntry = ((COLFile.ExtendedColorEntry)underwaterTreeView.SelectedNode.Tag);
// the game doesn't care about the alpha value for underwater colors
colorEntry.color_b = (uint)Color.FromArgb(0, colorPick.Color).ToArgb();
}
else if (tabControl.SelectedTab == fogTab && fogTreeView.SelectedNode != null &&
fogTreeView.SelectedNode.Tag != null && fogTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry)
{
var colorEntry = ((COLFile.ExtendedColorEntry)fogTreeView.SelectedNode.Tag);
// the game doesn't care about the alpha value for fog colors
colorEntry.color_c = (uint)Color.FromArgb(0, colorPick.Color).ToArgb();
}
else if (tabControl.SelectedTab == colorsTab && colorTreeView.SelectedNode != null &&
colorTreeView.SelectedNode.Tag != null && colorTreeView.SelectedNode.Tag is COLFile.ColorEntry)
{
var colorEntry = ((COLFile.ColorEntry)colorTreeView.SelectedNode.Tag);
colorEntry.color = (uint)colorPick.Color.ToArgb() & 0xffffff;
}
colorPick.Dispose();
}
private void alpha_ValueChanged(object sender, EventArgs e)
@@ -380,9 +384,13 @@ namespace PckStudio.Forms.Editor
if (tabControl.SelectedTab == waterTab && waterTreeView.SelectedNode != null &&
waterTreeView.SelectedNode.Tag != null && waterTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry)
{
var colorEntry = ((COLFile.ExtendedColorEntry)waterTreeView.SelectedNode.Tag);
}
}
//NML Miku PhoenixARC, more errors
var colorEntry = ((COLFile.ExtendedColorEntry)waterTreeView.SelectedNode.Tag);
//Color fixed_color = Color.FromArgb((int)alphaUpDown.Value, Color.FromArgb((int)colorEntry.color));
//colorEntry.color = (uint)fixed_color.ToArgb();
//pictureBox1.BackColor = fixed_color;
}
}
private void restoreOriginalColorToolStripMenuItem_Click(object sender, EventArgs e)
{
@@ -392,29 +400,45 @@ namespace PckStudio.Forms.Editor
{
COLFile.ColorEntry entry = default_colourfile.entries.Find(color => color.name == colorTreeView.SelectedNode.Text);
colorInfoD.color = entry.color;
pictureBox1.BackColor = Color.FromArgb(0xff << 24 | (int)colorInfoD.color);
//redUpDown.Value = colorInfoD.color >> 16 & 0xff;
//greenUpDown.Value = colorInfoD.color >> 8 & 0xff;
//blueUpDown.Value = colorInfoD.color & 0xff;
pictureBox1.BackColor = Color.FromArgb(0xff << 24 | (int)colorInfoD.color);
}
else if (tabControl.SelectedTab == waterTab && waterTreeView.SelectedNode != null &&
waterTreeView.SelectedNode.Tag != null && waterTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry colorInfo)
{
COLFile.ExtendedColorEntry entry = default_colourfile.waterEntries.Find(color => color.name == waterTreeView.SelectedNode.Text);
colorInfo.color = entry.color;
pictureBox1.BackColor = Color.FromArgb((int)colorInfo.color);
//alphaUpDown.Value = colorInfo.color >> 24 & 0xff;
//redUpDown.Value = colorInfo.color >> 16 & 0xff;
//greenUpDown.Value = colorInfo.color >> 8 & 0xff;
//blueUpDown.Value = colorInfo.color & 0xff;
pictureBox1.BackColor = Color.FromArgb((int)colorInfo.color);
}
else if (tabControl.SelectedTab == underwaterTab && underwaterTreeView.SelectedNode != null &&
underwaterTreeView.SelectedNode.Tag != null && underwaterTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry colorInfoB)
{
COLFile.ExtendedColorEntry entry = default_colourfile.waterEntries.Find(color => color.name == underwaterTreeView.SelectedNode.Text);
colorInfoB.color_b = entry.color_b;
pictureBox1.BackColor = Color.FromArgb(0xff << 24 | (int)colorInfoB.color_b);
//alphaUpDown.Value = colorInfoB.color_b >> 24 & 0xff;
//redUpDown.Value = colorInfoB.color_b >> 16 & 0xff;
//greenUpDown.Value = colorInfoB.color_b >> 8 & 0xff;
//blueUpDown.Value = colorInfoB.color_b & 0xff;
pictureBox1.BackColor = Color.FromArgb(0xff << 24 | (int)colorInfoB.color_b);
}
else if (tabControl.SelectedTab == fogTab && fogTreeView.SelectedNode != null &&
fogTreeView.SelectedNode.Tag != null && fogTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry colorInfoC)
{
COLFile.ExtendedColorEntry entry = default_colourfile.waterEntries.Find(color => color.name == fogTreeView.SelectedNode.Text);
colorInfoC.color_c = entry.color_c;
}
SetUpValueChanged(true);
//alphaUpDown.Value = colorInfoC.color_c >> 24 & 0xff;
//redUpDown.Value = colorInfoC.color_c >> 16 & 0xff;
//greenUpDown.Value = colorInfoC.color_c >> 8 & 0xff;
//blueUpDown.Value = colorInfoC.color_c & 0xff;
//pictureBox1.BackColor = Color.FromArgb(0xff << 24 | (int)colorInfoC.color_c);
}
SetUpValueChanged(true);
}
private void metroTextBox1_TextChanged(object sender, EventArgs e)
@@ -541,8 +565,64 @@ namespace PckStudio.Forms.Editor
colorEntry.color = (uint)fixed_color.ToArgb() & 0xffffff;
}
pictureBox1.BackColor = fixed_color;
SetUpValueChanged(true);
}
}
//redUpDown.Value = clipboard_color.color >> 16 & 0xff;
//greenUpDown.Value = clipboard_color.color >> 8 & 0xff;
//blueUpDown.Value = clipboard_color.color & 0xff;
//pictureBox1.BackColor = fixed_color;
//SetUpValueChanged(true);
}
private void SetColorButton_Click(object sender, EventArgs e)
{
ColorDialog colorPick = new ColorDialog();
colorPick.AllowFullOpen = true;
colorPick.AnyColor = true;
colorPick.SolidColorOnly = tabControl.SelectedTab == colorsTab;
if (colorPick.ShowDialog() != DialogResult.OK) return;
pictureBox1.BackColor = colorPick.Color;
if (tabControl.SelectedTab == waterTab && waterTreeView.SelectedNode != null &&
waterTreeView.SelectedNode.Tag != null && waterTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry)
{
var colorEntry = ((COLFile.ExtendedColorEntry)waterTreeView.SelectedNode.Tag);
// preserves the alpha so the user can handle it since the color picker doesn't support alpha
Color fixed_color = Color.FromArgb(Color.FromArgb((int)colorEntry.color).A, colorPick.Color);
colorEntry.color = (uint)fixed_color.ToArgb();
pictureBox1.BackColor = fixed_color;
//redUpDown.Value = colorPick.Color.R;
//greenUpDown.Value = colorPick.Color.G;
//blueUpDown.Value = colorPick.Color.B;
//MNL Miku or PhoenixARC all of these were errors
}
else if (tabControl.SelectedTab == underwaterTab && underwaterTreeView.SelectedNode != null &&
underwaterTreeView.SelectedNode.Tag != null && underwaterTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry)
{
var colorEntry = ((COLFile.ExtendedColorEntry)underwaterTreeView.SelectedNode.Tag);
// the game doesn't care about the alpha value for underwater colors
colorEntry.color_b = (uint)Color.FromArgb(0, colorPick.Color).ToArgb();
//redUpDown.Value = colorPick.Color.R;
//greenUpDown.Value = colorPick.Color.G;
//blueUpDown.Value = colorPick.Color.B;
}
else if (tabControl.SelectedTab == fogTab && fogTreeView.SelectedNode != null &&
fogTreeView.SelectedNode.Tag != null && fogTreeView.SelectedNode.Tag is COLFile.ExtendedColorEntry)
{
var colorEntry = ((COLFile.ExtendedColorEntry)fogTreeView.SelectedNode.Tag);
// the game doesn't care about the alpha value for fog colors
colorEntry.color_c = (uint)Color.FromArgb(0, colorPick.Color).ToArgb();
//redUpDown.Value = colorPick.Color.R;
//greenUpDown.Value = colorPick.Color.G;
//blueUpDown.Value = colorPick.Color.B;
}
else if (tabControl.SelectedTab == colorsTab && colorTreeView.SelectedNode != null &&
colorTreeView.SelectedNode.Tag != null && colorTreeView.SelectedNode.Tag is COLFile.ColorEntry)
{
var colorEntry = ((COLFile.ColorEntry)colorTreeView.SelectedNode.Tag);
colorEntry.color = (uint)colorPick.Color.ToArgb() & 0xffffff;
//redUpDown.Value = colorPick.Color.R;
//greenUpDown.Value = colorPick.Color.G;
//blueUpDown.Value = colorPick.Color.B;
}
colorPick.Dispose();
}
}
}
File diff suppressed because it is too large Load Diff
+4 -1
View File
@@ -148,7 +148,10 @@ namespace PckStudio.Forms.Editor
using (RenamePrompt prompt = new RenamePrompt(""))
{
prompt.OKButton.Text = "Add";
//Miku, NML or PhoenixARC, this happened after I replaced the old button, it needs fixing. Same issue as all of the other issues.
// - EternalModz
//prompt.SaveButton.Text = "Add";
if (MessageBox.Show($"Add Game Rule to {parentRule.Name}", "Attention",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes &&
prompt.ShowDialog() == DialogResult.OK &&
+32 -15
View File
@@ -41,10 +41,10 @@
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.locSort = new PckStudio.Forms.MyTablePanel();
this.buttonReplaceAll = new System.Windows.Forms.Button();
this.dataGridViewLocEntryData = new System.Windows.Forms.DataGridView();
this.textBoxReplaceAll = new System.Windows.Forms.TextBox();
this.treeViewLocKeys = new System.Windows.Forms.TreeView();
this.ReplaceAllButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.contextMenuStrip1.SuspendLayout();
this.GridContextMenu.SuspendLayout();
this.menuStrip.SuspendLayout();
@@ -94,7 +94,7 @@
//
// menuStrip
//
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13)))));
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem});
resources.ApplyResources(this.menuStrip, "menuStrip");
@@ -118,25 +118,18 @@
//
this.locSort.AccessibleRole = System.Windows.Forms.AccessibleRole.Table;
resources.ApplyResources(this.locSort, "locSort");
this.locSort.Controls.Add(this.buttonReplaceAll, 2, 0);
this.locSort.Controls.Add(this.dataGridViewLocEntryData, 1, 1);
this.locSort.Controls.Add(this.textBoxReplaceAll, 1, 0);
this.locSort.Controls.Add(this.treeViewLocKeys, 0, 0);
this.locSort.Controls.Add(this.ReplaceAllButton, 2, 0);
this.locSort.ForeColor = System.Drawing.Color.Black;
this.locSort.Name = "locSort";
//
// buttonReplaceAll
//
resources.ApplyResources(this.buttonReplaceAll, "buttonReplaceAll");
this.buttonReplaceAll.ForeColor = System.Drawing.Color.White;
this.buttonReplaceAll.Name = "buttonReplaceAll";
this.buttonReplaceAll.UseVisualStyleBackColor = true;
this.buttonReplaceAll.Click += new System.EventHandler(this.buttonReplaceAll_Click);
//
// dataGridViewLocEntryData
//
this.dataGridViewLocEntryData.AllowUserToAddRows = false;
this.dataGridViewLocEntryData.AllowUserToDeleteRows = false;
this.dataGridViewLocEntryData.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13)))));
this.dataGridViewLocEntryData.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.dataGridViewLocEntryData.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Segoe UI", 8.25F);
@@ -149,28 +142,52 @@
this.locSort.SetColumnSpan(this.dataGridViewLocEntryData, 2);
this.dataGridViewLocEntryData.ContextMenuStrip = this.GridContextMenu;
resources.ApplyResources(this.dataGridViewLocEntryData, "dataGridViewLocEntryData");
this.dataGridViewLocEntryData.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.dataGridViewLocEntryData.Name = "dataGridViewLocEntryData";
this.dataGridViewLocEntryData.RowHeadersVisible = false;
this.dataGridViewLocEntryData.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
//
// textBoxReplaceAll
//
this.textBoxReplaceAll.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.textBoxReplaceAll.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
resources.ApplyResources(this.textBoxReplaceAll, "textBoxReplaceAll");
this.textBoxReplaceAll.ForeColor = System.Drawing.Color.White;
this.textBoxReplaceAll.Name = "textBoxReplaceAll";
//
// treeViewLocKeys
//
this.treeViewLocKeys.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(13)))), ((int)(((byte)(13)))), ((int)(((byte)(13)))));
this.treeViewLocKeys.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.treeViewLocKeys.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.treeViewLocKeys.ContextMenuStrip = this.contextMenuStrip1;
resources.ApplyResources(this.treeViewLocKeys, "treeViewLocKeys");
this.treeViewLocKeys.ForeColor = System.Drawing.SystemColors.MenuBar;
this.treeViewLocKeys.ForeColor = System.Drawing.Color.White;
this.treeViewLocKeys.LabelEdit = true;
this.treeViewLocKeys.Name = "treeViewLocKeys";
this.locSort.SetRowSpan(this.treeViewLocKeys, 2);
this.treeViewLocKeys.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewLocKeys_AfterSelect);
this.treeViewLocKeys.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown);
//
// ReplaceAllButton
//
this.ReplaceAllButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.ReplaceAllButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.ReplaceAllButton.BorderRadius = 10;
this.ReplaceAllButton.BorderSize = 1;
this.ReplaceAllButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.ReplaceAllButton.FlatAppearance.BorderSize = 0;
this.ReplaceAllButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.ReplaceAllButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
resources.ApplyResources(this.ReplaceAllButton, "ReplaceAllButton");
this.ReplaceAllButton.ForeColor = System.Drawing.Color.White;
this.ReplaceAllButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.ReplaceAllButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.ReplaceAllButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.ReplaceAllButton.Name = "ReplaceAllButton";
this.ReplaceAllButton.TextColor = System.Drawing.Color.White;
this.ReplaceAllButton.UseVisualStyleBackColor = false;
this.ReplaceAllButton.Click += new System.EventHandler(this.ReplaceAllButton_Click);
//
// LOCEditor
//
resources.ApplyResources(this, "$this");
@@ -203,12 +220,12 @@
private System.Windows.Forms.ToolStripMenuItem deleteDisplayIDToolStripMenuItem;
private System.Windows.Forms.TextBox textBoxReplaceAll;
private PckStudio.Forms.MyTablePanel locSort;
private System.Windows.Forms.Button buttonReplaceAll;
private MetroFramework.Controls.MetroContextMenu GridContextMenu;
private System.Windows.Forms.ToolStripMenuItem addLanguageToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem removeLanguageToolStripMenuItem;
private System.Windows.Forms.MenuStrip menuStrip;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton ReplaceAllButton;
}
}
+15 -7
View File
@@ -58,7 +58,10 @@ namespace PckStudio.Forms.Editor
if (treeViewLocKeys.SelectedNode is TreeNode)
using (RenamePrompt prompt = new RenamePrompt(""))
{
prompt.OKButton.Text = "Add";
//Miku, NML, PhoenixARC, here is another one of those problems.
// - EternalModz
//prompt.OKButton.Text = "Add";
if (prompt.ShowDialog() == DialogResult.OK &&
!currentLoc.LocKeys.ContainsKey(prompt.NewText) &&
currentLoc.AddLocKey(prompt.NewText, ""))
@@ -95,12 +98,7 @@ namespace PckStudio.Forms.Editor
private void buttonReplaceAll_Click(object sender, EventArgs e)
{
for (int i = 0; i < tbl.Rows.Count; i++)
{
tbl.Rows[i][1] = textBoxReplaceAll.Text;
}
currentLoc.SetLocEntry(treeViewLocKeys.SelectedNode.Text, textBoxReplaceAll.Text);
}
private void LOCEditor_Resize(object sender, EventArgs e)
@@ -146,5 +144,15 @@ namespace PckStudio.Forms.Editor
}
DialogResult = DialogResult.OK;
}
}
private void ReplaceAllButton_Click(object sender, EventArgs e)
{
for (int i = 0; i < tbl.Rows.Count; i++)
{
tbl.Rows[i][1] = textBoxReplaceAll.Text;
}
currentLoc.SetLocEntry(treeViewLocKeys.SelectedNode.Text, textBoxReplaceAll.Text);
}
}
}
+59 -38
View File
@@ -207,36 +207,6 @@
<value>3</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="buttonReplaceAll.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="buttonReplaceAll.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonReplaceAll.Location" type="System.Drawing.Point, System.Drawing">
<value>783, 3</value>
</data>
<data name="buttonReplaceAll.Size" type="System.Drawing.Size, System.Drawing">
<value>74, 23</value>
</data>
<data name="buttonReplaceAll.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="buttonReplaceAll.Text" xml:space="preserve">
<value>Replace All</value>
</data>
<data name="&gt;&gt;buttonReplaceAll.Name" xml:space="preserve">
<value>buttonReplaceAll</value>
</data>
<data name="&gt;&gt;buttonReplaceAll.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonReplaceAll.Parent" xml:space="preserve">
<value>locSort</value>
</data>
<data name="&gt;&gt;buttonReplaceAll.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="dataGridViewLocEntryData.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
@@ -259,7 +229,7 @@
<value>locSort</value>
</data>
<data name="&gt;&gt;dataGridViewLocEntryData.ZOrder" xml:space="preserve">
<value>1</value>
<value>0</value>
</data>
<data name="textBoxReplaceAll.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
@@ -268,7 +238,7 @@
<value>303, 3</value>
</data>
<data name="textBoxReplaceAll.Size" type="System.Drawing.Size, System.Drawing">
<value>474, 22</value>
<value>457, 22</value>
</data>
<data name="textBoxReplaceAll.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
@@ -283,7 +253,7 @@
<value>locSort</value>
</data>
<data name="&gt;&gt;textBoxReplaceAll.ZOrder" xml:space="preserve">
<value>2</value>
<value>1</value>
</data>
<data name="treeViewLocKeys.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
@@ -307,10 +277,58 @@
<value>locSort</value>
</data>
<data name="&gt;&gt;treeViewLocKeys.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="ReplaceAllButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="ReplaceAllButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 8pt</value>
</data>
<data name="ReplaceAllButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAALRJREFUOE/N
kj0KAjEQRtPo2trqWVy8jYJgZbcg/oF4GAWx0SsorngRa7v4nP0gohhItw8ezHwzQ5q4euMrHnjGATY0
+g9LJ5UGfRtz3OIVOxqlw/EEb5gpChDuVEZhb49jtWlwuMZPVhrZMFcZhb2NnXq/UGRhUWV+qSgKe32V
1szsNDDXKA0OR3hQG4W9o8oAYYZ3nCpKh+Mulvj+ND1saWTQ/778DUtNHOIFn+g1qiXOvQBa2rm13mT7
rgAAAABJRU5ErkJggg==
</value>
</data>
<data name="ReplaceAllButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="ReplaceAllButton.Location" type="System.Drawing.Point, System.Drawing">
<value>766, 3</value>
</data>
<data name="ReplaceAllButton.Size" type="System.Drawing.Size, System.Drawing">
<value>91, 23</value>
</data>
<data name="ReplaceAllButton.TabIndex" type="System.Int32, mscorlib">
<value>21</value>
</data>
<data name="ReplaceAllButton.Text" xml:space="preserve">
<value>Replace All</value>
</data>
<data name="ReplaceAllButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="ReplaceAllButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;ReplaceAllButton.Name" xml:space="preserve">
<value>ReplaceAllButton</value>
</data>
<data name="&gt;&gt;ReplaceAllButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;ReplaceAllButton.Parent" xml:space="preserve">
<value>locSort</value>
</data>
<data name="&gt;&gt;ReplaceAllButton.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="locSort.Location" type="System.Drawing.Point, System.Drawing">
<value>20, 87</value>
<value>20, 34</value>
</data>
<data name="locSort.RowCount" type="System.Int32, mscorlib">
<value>2</value>
@@ -334,7 +352,7 @@
<value>3</value>
</data>
<data name="locSort.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="buttonReplaceAll" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /&gt;&lt;Control Name="dataGridViewLocEntryData" Row="1" RowSpan="1" Column="1" ColumnSpan="2" /&gt;&lt;Control Name="textBoxReplaceAll" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="treeViewLocKeys" Row="0" RowSpan="2" Column="0" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="Absolute,300,Percent,100,AutoSize,0" /&gt;&lt;Rows Styles="AutoSize,0,Percent,100,Absolute,20" /&gt;&lt;/TableLayoutSettings&gt;</value>
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="dataGridViewLocEntryData" Row="1" RowSpan="1" Column="1" ColumnSpan="2" /&gt;&lt;Control Name="textBoxReplaceAll" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="treeViewLocKeys" Row="0" RowSpan="2" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="ReplaceAllButton" Row="0" RowSpan="1" Column="2" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="Absolute,300,Percent,100,AutoSize,0" /&gt;&lt;Rows Styles="AutoSize,0,Percent,100,Absolute,20" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
@@ -343,7 +361,7 @@
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>900, 667</value>
<value>900, 611</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 8.25pt</value>
@@ -2073,8 +2091,11 @@
AABJRU5ErkJggg==
</value>
</data>
<data name="$this.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>900, 667</value>
<value>900, 650</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
@@ -2122,6 +2143,6 @@
<value>LOCEditor</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>PckStudio.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
+72 -47
View File
@@ -38,22 +38,21 @@
this.replaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuCape = new System.Windows.Forms.ContextMenuStrip(this.components);
this.replaceToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.buttonDone = new System.Windows.Forms.Button();
this.buttonModelGen = new System.Windows.Forms.Button();
this.buttonCape = new System.Windows.Forms.Button();
this.buttonSkin = new System.Windows.Forms.Button();
this.displayBox = new System.Windows.Forms.PictureBox();
this.radioAUTO = new System.Windows.Forms.RadioButton();
this.radioLOCAL = new System.Windows.Forms.RadioButton();
this.labelSelectTexture = new System.Windows.Forms.Label();
this.radioSERVER = new System.Windows.Forms.RadioButton();
this.textSkinID = new MetroFramework.Controls.MetroTextBox();
this.textSkinName = new MetroFramework.Controls.MetroTextBox();
this.textThemeName = new MetroFramework.Controls.MetroTextBox();
this.label4 = new System.Windows.Forms.Label();
this.buttonAnimGen = new System.Windows.Forms.Button();
this.capePictureBox = new PckStudio.ToolboxItems.PictureBoxWithInterpolationMode();
this.skinPictureBoxTexture = new PckStudio.ToolboxItems.PictureBoxWithInterpolationMode();
this.CreateSkinButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.EditFlagsButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
this.EditModelButton = new CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton();
label3 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
label1 = new System.Windows.Forms.Label();
@@ -113,22 +112,6 @@
this.replaceToolStripMenuItem1.Name = "replaceToolStripMenuItem1";
this.replaceToolStripMenuItem1.Click += new System.EventHandler(this.replaceToolStripMenuItem1_Click);
//
// buttonDone
//
resources.ApplyResources(this.buttonDone, "buttonDone");
this.buttonDone.ForeColor = System.Drawing.Color.White;
this.buttonDone.Name = "buttonDone";
this.buttonDone.UseVisualStyleBackColor = true;
this.buttonDone.Click += new System.EventHandler(this.CreateButton_Click);
//
// buttonModelGen
//
resources.ApplyResources(this.buttonModelGen, "buttonModelGen");
this.buttonModelGen.ForeColor = System.Drawing.Color.White;
this.buttonModelGen.Name = "buttonModelGen";
this.buttonModelGen.UseVisualStyleBackColor = true;
this.buttonModelGen.Click += new System.EventHandler(this.CreateCustomModel_Click);
//
// buttonCape
//
resources.ApplyResources(this.buttonCape, "buttonCape");
@@ -175,14 +158,6 @@
this.labelSelectTexture.Name = "labelSelectTexture";
this.labelSelectTexture.Click += new System.EventHandler(this.pictureBox1_Click);
//
// radioSERVER
//
resources.ApplyResources(this.radioSERVER, "radioSERVER");
this.radioSERVER.ForeColor = System.Drawing.Color.White;
this.radioSERVER.Name = "radioSERVER";
this.radioSERVER.UseVisualStyleBackColor = true;
this.radioSERVER.CheckedChanged += new System.EventHandler(this.radioSERVER_CheckedChanged);
//
// textSkinID
//
//
@@ -284,14 +259,6 @@
this.label4.Name = "label4";
this.label4.Click += new System.EventHandler(this.replaceToolStripMenuItem1_Click);
//
// buttonAnimGen
//
resources.ApplyResources(this.buttonAnimGen, "buttonAnimGen");
this.buttonAnimGen.ForeColor = System.Drawing.Color.White;
this.buttonAnimGen.Name = "buttonAnimGen";
this.buttonAnimGen.UseVisualStyleBackColor = true;
this.buttonAnimGen.Click += new System.EventHandler(this.buttonAnimGen_Click);
//
// capePictureBox
//
resources.ApplyResources(this.capePictureBox, "capePictureBox");
@@ -310,22 +277,81 @@
this.skinPictureBoxTexture.TabStop = false;
this.skinPictureBoxTexture.Click += new System.EventHandler(this.pictureBox1_Click);
//
// addNewSkin
// CreateSkinButton
//
this.CreateSkinButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CreateSkinButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.CreateSkinButton.BorderRadius = 10;
this.CreateSkinButton.BorderSize = 1;
this.CreateSkinButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CreateSkinButton.FlatAppearance.BorderSize = 0;
this.CreateSkinButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.CreateSkinButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
resources.ApplyResources(this.CreateSkinButton, "CreateSkinButton");
this.CreateSkinButton.ForeColor = System.Drawing.Color.White;
this.CreateSkinButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CreateSkinButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.CreateSkinButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(250)))), ((int)(((byte)(165)))));
this.CreateSkinButton.Name = "CreateSkinButton";
this.CreateSkinButton.TextColor = System.Drawing.Color.White;
this.CreateSkinButton.UseVisualStyleBackColor = false;
this.CreateSkinButton.Click += new System.EventHandler(this.CreateSkinButton_Click);
//
// EditFlagsButton
//
this.EditFlagsButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.EditFlagsButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.EditFlagsButton.BorderRadius = 10;
this.EditFlagsButton.BorderSize = 1;
this.EditFlagsButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.EditFlagsButton.FlatAppearance.BorderSize = 0;
this.EditFlagsButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.EditFlagsButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
resources.ApplyResources(this.EditFlagsButton, "EditFlagsButton");
this.EditFlagsButton.ForeColor = System.Drawing.Color.White;
this.EditFlagsButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.EditFlagsButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.EditFlagsButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.EditFlagsButton.Name = "EditFlagsButton";
this.EditFlagsButton.TextColor = System.Drawing.Color.White;
this.EditFlagsButton.UseVisualStyleBackColor = false;
this.EditFlagsButton.Click += new System.EventHandler(this.EditSkinButton_Click);
//
// EditModelButton
//
this.EditModelButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.EditModelButton.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.EditModelButton.BorderRadius = 10;
this.EditModelButton.BorderSize = 1;
this.EditModelButton.ClickedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.EditModelButton.FlatAppearance.BorderSize = 0;
this.EditModelButton.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.EditModelButton.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
resources.ApplyResources(this.EditModelButton, "EditModelButton");
this.EditModelButton.ForeColor = System.Drawing.Color.White;
this.EditModelButton.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.EditModelButton.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.EditModelButton.HoverOverColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.EditModelButton.Name = "EditModelButton";
this.EditModelButton.TextColor = System.Drawing.Color.White;
this.EditModelButton.UseVisualStyleBackColor = false;
this.EditModelButton.Click += new System.EventHandler(this.EditModelButton_Click);
//
// AddNewSkin
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.Controls.Add(this.buttonAnimGen);
this.Controls.Add(this.EditModelButton);
this.Controls.Add(this.EditFlagsButton);
this.Controls.Add(this.CreateSkinButton);
this.Controls.Add(this.label4);
this.Controls.Add(this.textThemeName);
this.Controls.Add(this.textSkinName);
this.Controls.Add(this.textSkinID);
this.Controls.Add(this.radioSERVER);
this.Controls.Add(this.labelSelectTexture);
this.Controls.Add(this.radioLOCAL);
this.Controls.Add(this.radioAUTO);
this.Controls.Add(this.buttonDone);
this.Controls.Add(this.buttonModelGen);
this.Controls.Add(this.buttonCape);
this.Controls.Add(this.buttonSkin);
this.Controls.Add(this.capePictureBox);
@@ -336,7 +362,7 @@
this.Controls.Add(label1);
this.ForeColor = System.Drawing.Color.White;
this.MaximizeBox = false;
this.Name = "addNewSkin";
this.Name = "AddNewSkin";
this.Load += new System.EventHandler(this.addnewskin_Load);
this.contextMenuSkin.ResumeLayout(false);
this.contextMenuCape.ResumeLayout(false);
@@ -354,8 +380,6 @@
private System.Windows.Forms.ToolStripMenuItem replaceToolStripMenuItem;
private System.Windows.Forms.ContextMenuStrip contextMenuCape;
private System.Windows.Forms.ToolStripMenuItem replaceToolStripMenuItem1;
private System.Windows.Forms.Button buttonDone;
private System.Windows.Forms.Button buttonModelGen;
private System.Windows.Forms.Button buttonCape;
private System.Windows.Forms.Button buttonSkin;
private PckStudio.ToolboxItems.PictureBoxWithInterpolationMode capePictureBox;
@@ -363,12 +387,13 @@
private System.Windows.Forms.RadioButton radioAUTO;
private System.Windows.Forms.RadioButton radioLOCAL;
private System.Windows.Forms.Label labelSelectTexture;
private System.Windows.Forms.RadioButton radioSERVER;
private MetroFramework.Controls.MetroTextBox textSkinID;
private MetroFramework.Controls.MetroTextBox textSkinName;
private MetroFramework.Controls.MetroTextBox textThemeName;
private System.Windows.Forms.Label label4;
private PckStudio.ToolboxItems.PictureBoxWithInterpolationMode skinPictureBoxTexture;
private System.Windows.Forms.Button buttonAnimGen;
}
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton CreateSkinButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton EditFlagsButton;
private CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton EditModelButton;
}
}
@@ -114,7 +114,7 @@ namespace PckStudio
}
skinPictureBoxTexture.Image = img;
buttonDone.Enabled = true;
CreateSkinButton.Enabled = true;
labelSelectTexture.Visible = false;
}
@@ -215,6 +215,72 @@ namespace PckStudio
}
private void CreateButton_Click(object sender, EventArgs e)
{
}
private void textSkinID_TextChanged(object sender, EventArgs e)
{
bool validSkinId = int.TryParse(textSkinID.Text, out _);
textSkinID.ForeColor = validSkinId ? Color.Green : Color.Red;
}
private void CreateCustomModel_Click(object sender, EventArgs e)
{
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
if (radioAUTO.Checked)
{
try
{
Random random = new Random();
int num = random.Next(100000, 99999999);
textSkinID.Text = num.ToString();
textSkinID.Enabled = false;
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
private void radioLOCAL_CheckedChanged(object sender, EventArgs e)
{
textSkinID.Enabled = radioLOCAL.Checked;
}
private void pictureBox1_Click(object sender, EventArgs e)
{
using (var ofdd = new OpenFileDialog())
{
ofdd.Filter = "PNG Files|*.png|3DS Texture|*.3dst";
ofdd.Title = "Select a Skin Texture File";
if (ofdd.ShowDialog() == DialogResult.OK)
{
if (ofdd.FileName.EndsWith(".3dst"))
{
using (var fs = File.OpenRead(ofdd.FileName))
{
CheckImage(_3DSUtil.GetImageFrom3DST(fs));
textSkinName.Text = Path.GetFileNameWithoutExtension(ofdd.FileName);
}
return;
}
CheckImage(Image.FromFile(ofdd.FileName));
}
}
}
private void buttonAnimGen_Click(object sender, EventArgs e)
{
}
private void CreateSkinButton_Click(object sender, EventArgs e)
{
int _skinId = -1;
if (!int.TryParse(textSkinID.Text, out _skinId))
@@ -271,101 +337,8 @@ namespace PckStudio
Close();
}
private void textSkinID_TextChanged(object sender, EventArgs e)
private void EditSkinButton_Click(object sender, EventArgs e)
{
bool validSkinId = int.TryParse(textSkinID.Text, out _);
textSkinID.ForeColor = validSkinId ? Color.Green : Color.Red;
}
private void CreateCustomModel_Click(object sender, EventArgs e)
{
//Prompt for skin model generator
if (MessageBox.Show("Create your own custom skin model?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1) != DialogResult.Yes)
return;
PictureBox preview = new PictureBox(); //Creates new picture for generated model preview
GenerateModel generate = new GenerateModel(generatedModel, preview);
if (generate.ShowDialog() == DialogResult.OK) //Opens Model Generator Dialog
{
//comboBoxSkinType.Items.Add("Custom"); //Adds skin preset to combobox
//comboBoxSkinType.Text = "Custom"; //Sets combo to custom preset
displayBox.Image = preview.Image; //Sets displayBox to created model preview
try
{
using (FileStream stream = File.OpenRead(Application.StartupPath + "\\temp.png"))
{
skinPictureBoxTexture.Image = Image.FromStream(stream);
}
buttonDone.Enabled = true;
labelSelectTexture.Visible = false;
if (skinType != eSkinType._64x64 && skinType != eSkinType._64x64HD)
{
buttonSkin.Location = new Point(buttonSkin.Location.X - skinPictureBoxTexture.Width, buttonSkin.Location.Y);
skinType = eSkinType._64x64;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
if (radioAUTO.Checked)
{
try
{
Random random = new Random();
int num = random.Next(100000, 99999999);
textSkinID.Text = num.ToString();
textSkinID.Enabled = false;
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
}
}
}
private void radioLOCAL_CheckedChanged(object sender, EventArgs e)
{
textSkinID.Enabled = radioLOCAL.Checked;
}
private void pictureBox1_Click(object sender, EventArgs e)
{
using (var ofdd = new OpenFileDialog())
{
ofdd.Filter = "PNG Files|*.png|3DS Texture|*.3dst";
ofdd.Title = "Select a Skin Texture File";
if (ofdd.ShowDialog() == DialogResult.OK)
{
if (ofdd.FileName.EndsWith(".3dst"))
{
using (var fs = File.OpenRead(ofdd.FileName))
{
CheckImage(_3DSUtil.GetImageFrom3DST(fs));
textSkinName.Text = Path.GetFileNameWithoutExtension(ofdd.FileName);
}
return;
}
CheckImage(Image.FromFile(ofdd.FileName));
}
}
}
private void radioSERVER_CheckedChanged(object sender, EventArgs e)
{
if (radioSERVER.Checked)
{
}
}
private void buttonAnimGen_Click(object sender, EventArgs e)
{
using Forms.Utilities.Skins.ANIMEditor diag = new Forms.Utilities.Skins.ANIMEditor(anim.ToString());
if (diag.ShowDialog(this) == DialogResult.OK && diag.saved)
{
@@ -373,5 +346,10 @@ namespace PckStudio
DrawModel();
}
}
}
private void EditModelButton_Click(object sender, EventArgs e)
{
}
}
}
@@ -130,7 +130,7 @@
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="label3.Location" type="System.Drawing.Point, System.Drawing">
<value>215, 129</value>
<value>215, 95</value>
</data>
<data name="label3.Size" type="System.Drawing.Size, System.Drawing">
<value>73, 13</value>
@@ -151,7 +151,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;label3.ZOrder" xml:space="preserve">
<value>18</value>
<value>17</value>
</data>
<metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
@@ -163,7 +163,7 @@
<value>NoControl</value>
</data>
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
<value>215, 97</value>
<value>215, 63</value>
</data>
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
<value>61, 13</value>
@@ -184,7 +184,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;label2.ZOrder" xml:space="preserve">
<value>19</value>
<value>18</value>
</data>
<metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
@@ -196,7 +196,7 @@
<value>NoControl</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>215, 64</value>
<value>215, 30</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>43, 13</value>
@@ -217,7 +217,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>20</value>
<value>19</value>
</data>
<data name="textTheme.Location" type="System.Drawing.Point, System.Drawing">
<value>102, 78</value>
@@ -288,69 +288,6 @@
<data name="&gt;&gt;contextMenuCape.Type" xml:space="preserve">
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="buttonDone.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="buttonDone.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="buttonDone.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonDone.Location" type="System.Drawing.Point, System.Drawing">
<value>394, 260</value>
</data>
<data name="buttonDone.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="buttonDone.TabIndex" type="System.Int32, mscorlib">
<value>115</value>
</data>
<data name="buttonDone.Text" xml:space="preserve">
<value>Create Skin</value>
</data>
<data name="&gt;&gt;buttonDone.Name" xml:space="preserve">
<value>buttonDone</value>
</data>
<data name="&gt;&gt;buttonDone.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonDone.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;buttonDone.ZOrder" xml:space="preserve">
<value>11</value>
</data>
<data name="buttonModelGen.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="buttonModelGen.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonModelGen.Location" type="System.Drawing.Point, System.Drawing">
<value>14, 259</value>
</data>
<data name="buttonModelGen.Size" type="System.Drawing.Size, System.Drawing">
<value>90, 23</value>
</data>
<data name="buttonModelGen.TabIndex" type="System.Int32, mscorlib">
<value>113</value>
</data>
<data name="buttonModelGen.Text" xml:space="preserve">
<value>Edit Model</value>
</data>
<data name="&gt;&gt;buttonModelGen.Name" xml:space="preserve">
<value>buttonModelGen</value>
</data>
<data name="&gt;&gt;buttonModelGen.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonModelGen.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;buttonModelGen.ZOrder" xml:space="preserve">
<value>12</value>
</data>
<data name="buttonCape.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -363,7 +300,7 @@
<value>NoControl</value>
</data>
<data name="buttonCape.Location" type="System.Drawing.Point, System.Drawing">
<value>443, 212</value>
<value>443, 187</value>
</data>
<data name="buttonCape.Size" type="System.Drawing.Size, System.Drawing">
<value>23, 22</value>
@@ -381,7 +318,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;buttonCape.ZOrder" xml:space="preserve">
<value>13</value>
<value>12</value>
</data>
<data name="buttonSkin.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
@@ -395,7 +332,7 @@
<value>NoControl</value>
</data>
<data name="buttonSkin.Location" type="System.Drawing.Point, System.Drawing">
<value>351, 212</value>
<value>351, 187</value>
</data>
<data name="buttonSkin.Size" type="System.Drawing.Size, System.Drawing">
<value>23, 22</value>
@@ -413,13 +350,13 @@
<value>$this</value>
</data>
<data name="&gt;&gt;buttonSkin.ZOrder" xml:space="preserve">
<value>14</value>
<value>13</value>
</data>
<data name="displayBox.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="displayBox.Location" type="System.Drawing.Point, System.Drawing">
<value>14, 61</value>
<value>12, 17</value>
</data>
<data name="displayBox.Size" type="System.Drawing.Size, System.Drawing">
<value>184, 173</value>
@@ -437,7 +374,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;displayBox.ZOrder" xml:space="preserve">
<value>17</value>
<value>16</value>
</data>
<data name="radioAUTO.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -446,7 +383,7 @@
<value>NoControl</value>
</data>
<data name="radioAUTO.Location" type="System.Drawing.Point, System.Drawing">
<value>388, 51</value>
<value>388, 17</value>
</data>
<data name="radioAUTO.Size" type="System.Drawing.Size, System.Drawing">
<value>80, 17</value>
@@ -467,7 +404,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;radioAUTO.ZOrder" xml:space="preserve">
<value>10</value>
<value>11</value>
</data>
<data name="radioLOCAL.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -476,7 +413,7 @@
<value>NoControl</value>
</data>
<data name="radioLOCAL.Location" type="System.Drawing.Point, System.Drawing">
<value>388, 71</value>
<value>388, 37</value>
</data>
<data name="radioLOCAL.Size" type="System.Drawing.Size, System.Drawing">
<value>58, 17</value>
@@ -497,7 +434,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;radioLOCAL.ZOrder" xml:space="preserve">
<value>9</value>
<value>10</value>
</data>
<data name="labelSelectTexture.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -509,7 +446,7 @@
<value>NoControl</value>
</data>
<data name="labelSelectTexture.Location" type="System.Drawing.Point, System.Drawing">
<value>308, 186</value>
<value>308, 161</value>
</data>
<data name="labelSelectTexture.Size" type="System.Drawing.Size, System.Drawing">
<value>50, 13</value>
@@ -530,43 +467,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;labelSelectTexture.ZOrder" xml:space="preserve">
<value>8</value>
</data>
<data name="radioSERVER.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="radioSERVER.Enabled" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="radioSERVER.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="radioSERVER.Location" type="System.Drawing.Point, System.Drawing">
<value>388, 28</value>
</data>
<data name="radioSERVER.Size" type="System.Drawing.Size, System.Drawing">
<value>64, 17</value>
</data>
<data name="radioSERVER.TabIndex" type="System.Int32, mscorlib">
<value>120</value>
</data>
<data name="radioSERVER.Text" xml:space="preserve">
<value>SERVER</value>
</data>
<data name="radioSERVER.Visible" type="System.Boolean, mscorlib">
<value>False</value>
</data>
<data name="&gt;&gt;radioSERVER.Name" xml:space="preserve">
<value>radioSERVER</value>
</data>
<data name="&gt;&gt;radioSERVER.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;radioSERVER.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;radioSERVER.ZOrder" xml:space="preserve">
<value>7</value>
<value>9</value>
</data>
<data name="resource.Image" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
@@ -575,7 +476,7 @@
<value>NoControl</value>
</data>
<data name="resource.Location" type="System.Drawing.Point, System.Drawing">
<value>53, 1</value>
<value>68, 1</value>
</data>
<data name="resource.Size" type="System.Drawing.Size, System.Drawing">
<value>21, 21</value>
@@ -587,10 +488,10 @@
<value>False</value>
</data>
<data name="textSkinID.Location" type="System.Drawing.Point, System.Drawing">
<value>292, 61</value>
<value>292, 27</value>
</data>
<data name="textSkinID.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
<value>90, 23</value>
</data>
<data name="textSkinID.TabIndex" type="System.Int32, mscorlib">
<value>121</value>
@@ -605,7 +506,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;textSkinID.ZOrder" xml:space="preserve">
<value>6</value>
<value>8</value>
</data>
<data name="resource.Image1" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
@@ -626,7 +527,7 @@
<value>False</value>
</data>
<data name="textSkinName.Location" type="System.Drawing.Point, System.Drawing">
<value>292, 94</value>
<value>292, 60</value>
</data>
<data name="textSkinName.Size" type="System.Drawing.Size, System.Drawing">
<value>174, 23</value>
@@ -644,7 +545,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;textSkinName.ZOrder" xml:space="preserve">
<value>5</value>
<value>7</value>
</data>
<data name="resource.Image2" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
@@ -665,7 +566,7 @@
<value>False</value>
</data>
<data name="textThemeName.Location" type="System.Drawing.Point, System.Drawing">
<value>292, 123</value>
<value>292, 89</value>
</data>
<data name="textThemeName.Size" type="System.Drawing.Size, System.Drawing">
<value>174, 23</value>
@@ -683,7 +584,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;textThemeName.ZOrder" xml:space="preserve">
<value>4</value>
<value>6</value>
</data>
<data name="label4.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -695,7 +596,7 @@
<value>NoControl</value>
</data>
<data name="label4.Location" type="System.Drawing.Point, System.Drawing">
<value>400, 186</value>
<value>400, 161</value>
</data>
<data name="label4.Size" type="System.Drawing.Size, System.Drawing">
<value>54, 13</value>
@@ -716,37 +617,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;label4.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="buttonAnimGen.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="buttonAnimGen.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="buttonAnimGen.Location" type="System.Drawing.Point, System.Drawing">
<value>108, 259</value>
</data>
<data name="buttonAnimGen.Size" type="System.Drawing.Size, System.Drawing">
<value>90, 23</value>
</data>
<data name="buttonAnimGen.TabIndex" type="System.Int32, mscorlib">
<value>125</value>
</data>
<data name="buttonAnimGen.Text" xml:space="preserve">
<value>Edit Skin Flags</value>
</data>
<data name="&gt;&gt;buttonAnimGen.Name" xml:space="preserve">
<value>buttonAnimGen</value>
</data>
<data name="&gt;&gt;buttonAnimGen.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;buttonAnimGen.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;buttonAnimGen.ZOrder" xml:space="preserve">
<value>2</value>
<value>5</value>
</data>
<data name="capePictureBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>None</value>
@@ -755,7 +626,7 @@
<value>NoControl</value>
</data>
<data name="capePictureBox.Location" type="System.Drawing.Point, System.Drawing">
<value>384, 152</value>
<value>384, 120</value>
</data>
<data name="capePictureBox.Size" type="System.Drawing.Size, System.Drawing">
<value>82, 82</value>
@@ -767,13 +638,13 @@
<value>capePictureBox</value>
</data>
<data name="&gt;&gt;capePictureBox.Type" xml:space="preserve">
<value>PckStudio.PictureBoxWithInterpolationMode, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.ToolboxItems.PictureBoxWithInterpolationMode, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;capePictureBox.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;capePictureBox.ZOrder" xml:space="preserve">
<value>15</value>
<value>14</value>
</data>
<data name="skinPictureBoxTexture.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>None</value>
@@ -782,7 +653,7 @@
<value>NoControl</value>
</data>
<data name="skinPictureBoxTexture.Location" type="System.Drawing.Point, System.Drawing">
<value>292, 152</value>
<value>292, 120</value>
</data>
<data name="skinPictureBoxTexture.Size" type="System.Drawing.Size, System.Drawing">
<value>82, 82</value>
@@ -797,13 +668,156 @@
<value>skinPictureBoxTexture</value>
</data>
<data name="&gt;&gt;skinPictureBoxTexture.Type" xml:space="preserve">
<value>PckStudio.PictureBoxWithInterpolationMode, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.ToolboxItems.PictureBoxWithInterpolationMode, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;skinPictureBoxTexture.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;skinPictureBoxTexture.ZOrder" xml:space="preserve">
<value>16</value>
<value>15</value>
</data>
<data name="CreateSkinButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="CreateSkinButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="CreateSkinButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAALtJREFUSEvt
1TEKwkAQheG9hKA23ke8T7TzpBZBD6HNOuv+ivDGxOyQLh9MYd5zVgwhaTFJzvlgc7GZqmPFMCv2td9k
/BCKmY+jqH8bPoRS5IDiTKwoRA/4/X3y+Q+IYp0iD2OdIg9jnSIPY50i99xtOpsdc7R52LhYp8g98gDZ
tVONFBVF7llT+bBrmxopKorc4x2wrZGiosg9s/9F75u8Yppv8rVWQnrWKQvLC+f2qrUpP3DPusU/UnoC
1EgDy/vtD/MAAAAASUVORK5CYII=
</value>
</data>
<data name="CreateSkinButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="CreateSkinButton.Location" type="System.Drawing.Point, System.Drawing">
<value>292, 231</value>
</data>
<data name="CreateSkinButton.Size" type="System.Drawing.Size, System.Drawing">
<value>179, 40</value>
</data>
<data name="CreateSkinButton.TabIndex" type="System.Int32, mscorlib">
<value>126</value>
</data>
<data name="CreateSkinButton.Text" xml:space="preserve">
<value>Create skin</value>
</data>
<data name="CreateSkinButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="CreateSkinButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;CreateSkinButton.Name" xml:space="preserve">
<value>CreateSkinButton</value>
</data>
<data name="&gt;&gt;CreateSkinButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;CreateSkinButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;CreateSkinButton.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="EditFlagsButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="EditFlagsButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="EditFlagsButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAABqSURBVEhL7Y3RDYAgDAW7hPtPZRxHTT2hPyVNRDDIJSTw2sfJOOxg7xG0HIH9tgIdOLDyvsCD
tQz59wQ8E8R/EUTQsoG4mmDTsoG8LPBg5WY9z8IocY3qCIpQyZD3FTyC/6fAh/+nYDhEDjCoeGdLx/sx
AAAAAElFTkSuQmCC
</value>
</data>
<data name="EditFlagsButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="EditFlagsButton.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 193</value>
</data>
<data name="EditFlagsButton.Size" type="System.Drawing.Size, System.Drawing">
<value>184, 36</value>
</data>
<data name="EditFlagsButton.TabIndex" type="System.Int32, mscorlib">
<value>127</value>
</data>
<data name="EditFlagsButton.Text" xml:space="preserve">
<value>Edit Flags</value>
</data>
<data name="EditFlagsButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="EditFlagsButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;EditFlagsButton.Name" xml:space="preserve">
<value>EditFlagsButton</value>
</data>
<data name="&gt;&gt;EditFlagsButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;EditFlagsButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;EditFlagsButton.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="EditModelButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="EditModelButton.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 12pt</value>
</data>
<data name="EditModelButton.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAKtJREFUSEvt
1TEKwzAQRFE1PqQvlFwzlQO5hLKDx6AwX4YUIY0fTLWrUSe1y1d670vlXnlURuskI53R2cV1yQuEyhVy
c12q4bbvBCpXyOa65AVC5QpyXfKcULmCXJc8J1SuINelmlGJMkO7q+sSLTsztHtd8IF2/3vBDBZVkOuS
54TKFeS65DmhcgW5LtXsua8EKlfI6WP38+f6+HBe2hxQuTLSmfMP55JaewNTAaVYgdrPTAAAAABJRU5E
rkJggg==
</value>
</data>
<data name="EditModelButton.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="EditModelButton.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 235</value>
</data>
<data name="EditModelButton.Size" type="System.Drawing.Size, System.Drawing">
<value>184, 36</value>
</data>
<data name="EditModelButton.TabIndex" type="System.Int32, mscorlib">
<value>128</value>
</data>
<data name="EditModelButton.Text" xml:space="preserve">
<value>Edit Model</value>
</data>
<data name="EditModelButton.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleRight</value>
</data>
<data name="EditModelButton.TextImageRelation" type="System.Windows.Forms.TextImageRelation, System.Windows.Forms">
<value>ImageBeforeText</value>
</data>
<data name="&gt;&gt;EditModelButton.Name" xml:space="preserve">
<value>EditModelButton</value>
</data>
<data name="&gt;&gt;EditModelButton.Type" xml:space="preserve">
<value>CBH.Ultimate.Controls.CrEaTiiOn_Ultimate_GradientButton, CBH-Ultimate-Theme-Library-NET-Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;EditModelButton.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;EditModelButton.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
@@ -812,7 +826,7 @@
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>483, 296</value>
<value>483, 283</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 8.25pt</value>
@@ -2542,11 +2556,17 @@
AABJRU5ErkJggg==
</value>
</data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="$this.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>483, 296</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
<value>CenterScreen</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Skin Creator</value>
@@ -2564,9 +2584,9 @@
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>addNewSkin</value>
<value>AddNewSkin</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>PckStudio.ToolboxItems.ThemeForm, PCK-Studio, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
@@ -168,7 +168,11 @@ namespace PckStudio.Forms.Utilities.Skins
if (!first) MessageBox.Show($"The following value \"{new_value}\" is not valid. Please try again.");
RenamePrompt diag = new RenamePrompt(new_value);
diag.TextLabel.Text = "ANIM";
diag.OKButton.Text = "Ok";
//Miku, NML, PhoenixARC, here is another one of those problems.
// - EternalModz
//diag.SaveButton.Text = "Ok";
if (diag.ShowDialog() == DialogResult.OK)
{
new_value = diag.NewText;
@@ -266,7 +270,9 @@ namespace PckStudio.Forms.Utilities.Skins
// diag.Category will be the ANIM codes
var diag = new Additional_Popups.Audio.AddCategory(Templates.Keys.ToArray());
diag.label2.Text = "Presets";
diag.button1.Text = "Load";
//diag.button1.Text = "Load";
//MNL or PhoenixARC or Miku, here is one problem. I removed the old button (button1) and relpaced it with the 'AddButton' but for osme reason, it does not work here.
// - EternalModz
if (diag.ShowDialog() != DialogResult.OK) return;
+15 -15
View File
@@ -29,8 +29,8 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
System.Windows.Forms.PictureBox pictureBox2;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.contextMenuPCKEntries = new System.Windows.Forms.ContextMenuStrip(this.components);
this.createToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.folderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -144,10 +144,10 @@
this.imageList = new System.Windows.Forms.ImageList(this.components);
this.LittleEndianCheckBox = new MetroFramework.Controls.MetroCheckBox();
pictureBox2 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(pictureBox2)).BeginInit();
this.contextMenuPCKEntries.SuspendLayout();
this.menuStrip.SuspendLayout();
this.contextMenuMetaTree.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(pictureBox2)).BeginInit();
this.tabControl.SuspendLayout();
this.openTab.SuspendLayout();
this.panel1.SuspendLayout();
@@ -160,6 +160,12 @@
this.MetaTab.SuspendLayout();
this.SuspendLayout();
//
// pictureBox2
//
resources.ApplyResources(pictureBox2, "pictureBox2");
pictureBox2.Name = "pictureBox2";
pictureBox2.TabStop = false;
//
// contextMenuPCKEntries
//
this.contextMenuPCKEntries.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
@@ -755,19 +761,13 @@
resources.ApplyResources(this.editAllEntriesToolStripMenuItem, "editAllEntriesToolStripMenuItem");
this.editAllEntriesToolStripMenuItem.Click += new System.EventHandler(this.editAllEntriesToolStripMenuItem_Click);
//
// pictureBox2
//
resources.ApplyResources(pictureBox2, "pictureBox2");
pictureBox2.Name = "pictureBox2";
pictureBox2.TabStop = false;
//
// tabControl
//
this.tabControl.Controls.Add(this.openTab);
this.tabControl.Controls.Add(this.editorTab);
resources.ApplyResources(this.tabControl, "tabControl");
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 1;
this.tabControl.SelectedIndex = 0;
this.tabControl.Style = MetroFramework.MetroColorStyle.Silver;
this.tabControl.TabStop = false;
this.tabControl.Theme = MetroFramework.MetroThemeStyle.Dark;
@@ -778,8 +778,8 @@
//
this.openTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.openTab.Controls.Add(this.labelVersion);
this.openTab.Controls.Add(this.panel1);
this.openTab.Controls.Add(this.pckOpen);
this.openTab.Controls.Add(this.panel1);
this.openTab.ForeColor = System.Drawing.Color.White;
this.openTab.HorizontalScrollbarBarColor = true;
this.openTab.HorizontalScrollbarHighlightOnWheel = false;
@@ -806,16 +806,17 @@
//
// panel1
//
resources.ApplyResources(this.panel1, "panel1");
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.panel1.Controls.Add(this.crEaTiiOn_Ultimate_GradientButton2);
this.panel1.Controls.Add(this.crEaTiiOn_Ultimate_GradientButton1);
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.crEaTiiOn_Ultimate_GradientButton3);
resources.ApplyResources(this.panel1, "panel1");
this.panel1.Name = "panel1";
//
// crEaTiiOn_Ultimate_GradientButton2
//
resources.ApplyResources(this.crEaTiiOn_Ultimate_GradientButton2, "crEaTiiOn_Ultimate_GradientButton2");
this.crEaTiiOn_Ultimate_GradientButton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.crEaTiiOn_Ultimate_GradientButton2.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.crEaTiiOn_Ultimate_GradientButton2.BorderRadius = 10;
@@ -824,7 +825,6 @@
this.crEaTiiOn_Ultimate_GradientButton2.FlatAppearance.BorderSize = 0;
this.crEaTiiOn_Ultimate_GradientButton2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.crEaTiiOn_Ultimate_GradientButton2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
resources.ApplyResources(this.crEaTiiOn_Ultimate_GradientButton2, "crEaTiiOn_Ultimate_GradientButton2");
this.crEaTiiOn_Ultimate_GradientButton2.ForeColor = System.Drawing.Color.White;
this.crEaTiiOn_Ultimate_GradientButton2.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.crEaTiiOn_Ultimate_GradientButton2.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
@@ -836,6 +836,7 @@
//
// crEaTiiOn_Ultimate_GradientButton1
//
resources.ApplyResources(this.crEaTiiOn_Ultimate_GradientButton1, "crEaTiiOn_Ultimate_GradientButton1");
this.crEaTiiOn_Ultimate_GradientButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.crEaTiiOn_Ultimate_GradientButton1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.crEaTiiOn_Ultimate_GradientButton1.BorderRadius = 10;
@@ -844,7 +845,6 @@
this.crEaTiiOn_Ultimate_GradientButton1.FlatAppearance.BorderSize = 0;
this.crEaTiiOn_Ultimate_GradientButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.crEaTiiOn_Ultimate_GradientButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
resources.ApplyResources(this.crEaTiiOn_Ultimate_GradientButton1, "crEaTiiOn_Ultimate_GradientButton1");
this.crEaTiiOn_Ultimate_GradientButton1.ForeColor = System.Drawing.Color.White;
this.crEaTiiOn_Ultimate_GradientButton1.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.crEaTiiOn_Ultimate_GradientButton1.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
@@ -862,6 +862,7 @@
//
// crEaTiiOn_Ultimate_GradientButton3
//
resources.ApplyResources(this.crEaTiiOn_Ultimate_GradientButton3, "crEaTiiOn_Ultimate_GradientButton3");
this.crEaTiiOn_Ultimate_GradientButton3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.crEaTiiOn_Ultimate_GradientButton3.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(25)))), ((int)(((byte)(25)))));
this.crEaTiiOn_Ultimate_GradientButton3.BorderRadius = 10;
@@ -870,7 +871,6 @@
this.crEaTiiOn_Ultimate_GradientButton3.FlatAppearance.BorderSize = 0;
this.crEaTiiOn_Ultimate_GradientButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
this.crEaTiiOn_Ultimate_GradientButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
resources.ApplyResources(this.crEaTiiOn_Ultimate_GradientButton3, "crEaTiiOn_Ultimate_GradientButton3");
this.crEaTiiOn_Ultimate_GradientButton3.ForeColor = System.Drawing.Color.White;
this.crEaTiiOn_Ultimate_GradientButton3.GradientColorPrimary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
this.crEaTiiOn_Ultimate_GradientButton3.GradientColorSecondary = System.Drawing.Color.FromArgb(((int)(((byte)(70)))), ((int)(((byte)(70)))), ((int)(((byte)(70)))));
@@ -1136,11 +1136,11 @@
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormMain_FormClosing);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FormMain_FormClosed);
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(pictureBox2)).EndInit();
this.contextMenuPCKEntries.ResumeLayout(false);
this.menuStrip.ResumeLayout(false);
this.menuStrip.PerformLayout();
this.contextMenuMetaTree.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(pictureBox2)).EndInit();
this.tabControl.ResumeLayout(false);
this.openTab.ResumeLayout(false);
this.openTab.PerformLayout();
+12 -4
View File
@@ -26,7 +26,7 @@ using PckStudio.ToolboxItems;
namespace PckStudio
{
public partial class MainForm : ThemeForm
public partial class MainForm : Form
{
string saveLocation = string.Empty;
PCKFile currentPCK = null;
@@ -1295,8 +1295,12 @@ namespace PckStudio
private void skinPackToolStripMenuItem_Click(object sender, EventArgs e)
{
RenamePrompt namePrompt = new RenamePrompt("");
namePrompt.OKButton.Text = "Ok";
if (namePrompt.ShowDialog() == DialogResult.OK)
//Miku, NML, PhoenixARC, here is another one of those problems.
// - EternalModz
//namePrompt.OKButton.Text = "Ok";
if (namePrompt.ShowDialog() == DialogResult.OK)
{
InitializeBasePack(new Random().Next(8000, int.MaxValue), 0, namePrompt.NewText, true);
isTemplateFile = true;
@@ -1634,7 +1638,11 @@ namespace PckStudio
private void folderToolStripMenuItem_Click(object sender, EventArgs e)
{
RenamePrompt folderNamePrompt = new RenamePrompt("");
folderNamePrompt.OKButton.Text = "Add";
//Miku, NML, PhoenixARC, here is another one of those problems.
// - EternalModz
//folderNamePrompt.OKButton.Text = "Add";
if (folderNamePrompt.ShowDialog() == DialogResult.OK)
{
TreeNode folerNode = CreateNode(folderNamePrompt.NewText);
+26985 -26973
View File
File diff suppressed because it is too large Load Diff
+40 -30
View File
@@ -137,6 +137,31 @@
<ItemGroup>
<Compile Include="Classes\API\PCKCenter\model\PCKCenterJSON.cs" />
<Compile Include="Classes\API\PCKCenter\SaveLocalJSON.cs" />
<Compile Include="Classes\COL\ColorChangedEventArgs.cs" />
<Compile Include="Classes\COL\ColorModes.cs" />
<Compile Include="Classes\COL\Controls\ColorBox2D.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Classes\COL\Controls\ColorBox2D.Designer.cs">
<DependentUpon>ColorBox2D.cs</DependentUpon>
</Compile>
<Compile Include="Classes\COL\Controls\ColorHexagon.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Classes\COL\Controls\ColorHexagon.Designer.cs">
<DependentUpon>ColorHexagon.cs</DependentUpon>
</Compile>
<Compile Include="Classes\COL\Controls\ColorSliderVertical.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Classes\COL\Controls\ColorSliderVertical.Designer.cs">
<DependentUpon>ColorSliderVertical.cs</DependentUpon>
</Compile>
<Compile Include="Classes\COL\Controls\ColorWheel.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Classes\COL\HslColor.cs" />
<Compile Include="Classes\COL\MathExtensions.cs" />
<Compile Include="Classes\FileTypes\ARCFile.cs" />
<Compile Include="Classes\FileTypes\BehaviourFile.cs" />
<Compile Include="Classes\FileTypes\CSMBFile.cs" />
@@ -221,29 +246,6 @@
<Compile Include="Forms\Additional-Popups\ChangeLogForm.Designer.cs">
<DependentUpon>ChangeLogForm.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Additional-Popups\Col\ColorBox.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Forms\Additional-Popups\Col\ColorBox.designer.cs">
<DependentUpon>ColorBox.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Additional-Popups\Col\ColorUtil.cs" />
<Compile Include="Forms\Additional-Popups\Col\DrawStyles.cs" />
<Compile Include="Forms\Additional-Popups\Col\NumericTextBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Forms\Additional-Popups\Col\TwoColorPanel.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Forms\Additional-Popups\Col\TwoColorPanel.designer.cs">
<DependentUpon>TwoColorPanel.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Additional-Popups\Col\VerticalColorSlider.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Forms\Additional-Popups\Col\VerticalColorSlider.designer.cs">
<DependentUpon>VerticalColorSlider.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Additional-Popups\Loc\AddLanguage.cs">
<SubType>Form</SubType>
</Compile>
@@ -277,7 +279,7 @@
<Compile Include="Forms\Editor\COLEditor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\Editor\COLEditor.Designer.cs">
<Compile Include="Forms\Editor\COLEditor.designer.cs">
<DependentUpon>COLEditor.cs</DependentUpon>
</Compile>
<Compile Include="Forms\Editor\LOCEditor.cs">
@@ -476,18 +478,15 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Classes\Utils\3DS\TextureCodec.cs" />
<Compile Include="Classes\Utils\3DS\TextureUtils.cs" />
<EmbeddedResource Include="Classes\COL\Controls\ColorSliderVertical.resx">
<DependentUpon>ColorSliderVertical.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\AboutThisProgram.resx">
<DependentUpon>AboutThisProgram.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\ChangeLogForm.resx">
<DependentUpon>ChangeLogForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\Col\ColorBox.resx">
<DependentUpon>ColorBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\Col\VerticalColorSlider.resx">
<DependentUpon>VerticalColorSlider.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\Additional-Popups\Loc\AddLanguage.resx">
<DependentUpon>AddLanguage.cs</DependentUpon>
</EmbeddedResource>
@@ -677,6 +676,10 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Tools_48px.png" />
<None Include="Resources\save_24px.png" />
<None Include="Resources\rubik%27s_cube_24px.png" />
<None Include="Resources\rename_32px.png" />
<None Include="Resources\TexturePackIcon.png" />
<None Include="Resources\apps.zip" />
<None Include="Resources\binka\binkawin.asi" />
@@ -736,6 +739,13 @@
<None Include="Resources\AddTexture.png" />
<None Include="Resources\iconImageList\BEHAVIOURS ICON.png" />
<None Include="Resources\Comparison.png" />
<None Include="Resources\help_30px.png" />
<None Include="Resources\menu_50px.png" />
<None Include="Resources\check_all_480px.png" />
<None Include="Resources\Close_50px.png" />
<None Include="Resources\edit_26px.png" />
<None Include="Resources\file_32px.png" />
<None Include="Resources\generated_photos_30px.png" />
<Content Include="Resources\PCK-Studio_Logo.ico" />
<None Include="Resources\bg1.png" />
<Content Include="Resources\NoImageFound.png" />
+1 -1
View File
@@ -26,7 +26,7 @@ namespace PckStudio
Application.SetCompatibleTextRenderingDefault(false);
DarkNet.Instance.SetCurrentProcessTheme(Theme.Auto);
MainForm mainForm = new MainForm();
DarkNet.Instance.SetWindowThemeForms(mainForm, Theme.Auto);
Application.Run(mainForm);
}
}
+110
View File
@@ -189,6 +189,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap check_all_480px {
get {
object obj = ResourceManager.GetObject("check_all_480px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -209,6 +219,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap Close_50px {
get {
object obj = ResourceManager.GetObject("Close_50px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -249,6 +269,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap edit_26px {
get {
object obj = ResourceManager.GetObject("edit_26px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -269,6 +299,26 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap file_32px {
get {
object obj = ResourceManager.GetObject("file_32px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap generated_photos_30px {
get {
object obj = ResourceManager.GetObject("generated_photos_30px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -289,6 +339,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap help_30px {
get {
object obj = ResourceManager.GetObject("help_30px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -329,6 +389,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap menu_50px {
get {
object obj = ResourceManager.GetObject("menu_50px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -459,6 +529,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap rename_32px {
get {
object obj = ResourceManager.GetObject("rename_32px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -469,6 +549,26 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap rubik_s_cube_24px {
get {
object obj = ResourceManager.GetObject("rubik_s_cube_24px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap save_24px {
get {
object obj = ResourceManager.GetObject("save_24px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -573,6 +673,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap Tools_48px {
get {
object obj = ResourceManager.GetObject("Tools_48px", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
+33
View File
@@ -322,4 +322,37 @@
<data name="pckOpen" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\pckOpen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="check_all_480px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\check_all_480px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Close_50px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Close_50px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="edit_26px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\edit_26px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="file_32px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\file_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="generated_photos_30px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\generated_photos_30px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="help_30px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\help_30px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="menu_50px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\menu_50px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="rename_32px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\rename_32px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="rubik_s_cube_24px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\rubik's_cube_24px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="save_24px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\save_24px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Tools_48px" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Tools_48px.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B