mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-09-22 04:03:15 +00:00
Fix for dash style members not being used
This commit is contained in:
@@ -126,7 +126,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// rightSleeveButtonControl
|
// rightSleeveButtonControl
|
||||||
//
|
//
|
||||||
this.rightSleeveButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.rightSleeveButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.rightSleeveButtonControl.ForceHidden = false;
|
this.rightSleeveButtonControl.ForceHidden = false;
|
||||||
this.rightSleeveButtonControl.ForceShown = false;
|
this.rightSleeveButtonControl.ForceShown = false;
|
||||||
this.rightSleeveButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.rightSleeveButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -155,7 +155,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// leftSleeveButtonControl
|
// leftSleeveButtonControl
|
||||||
//
|
//
|
||||||
this.leftSleeveButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.leftSleeveButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.leftSleeveButtonControl.ForceHidden = false;
|
this.leftSleeveButtonControl.ForceHidden = false;
|
||||||
this.leftSleeveButtonControl.ForceShown = false;
|
this.leftSleeveButtonControl.ForceShown = false;
|
||||||
this.leftSleeveButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.leftSleeveButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -174,7 +174,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// jacketButtonControl
|
// jacketButtonControl
|
||||||
//
|
//
|
||||||
this.jacketButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.jacketButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.jacketButtonControl.ForceHidden = false;
|
this.jacketButtonControl.ForceHidden = false;
|
||||||
this.jacketButtonControl.ForceShown = false;
|
this.jacketButtonControl.ForceShown = false;
|
||||||
this.jacketButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.jacketButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -193,7 +193,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// leftPantsLegButtonControl
|
// leftPantsLegButtonControl
|
||||||
//
|
//
|
||||||
this.leftPantsLegButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.leftPantsLegButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.leftPantsLegButtonControl.ForceHidden = false;
|
this.leftPantsLegButtonControl.ForceHidden = false;
|
||||||
this.leftPantsLegButtonControl.ForceShown = false;
|
this.leftPantsLegButtonControl.ForceShown = false;
|
||||||
this.leftPantsLegButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.leftPantsLegButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -212,7 +212,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// hatButtonControl
|
// hatButtonControl
|
||||||
//
|
//
|
||||||
this.hatButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.hatButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.hatButtonControl.ForceHidden = false;
|
this.hatButtonControl.ForceHidden = false;
|
||||||
this.hatButtonControl.ForceShown = false;
|
this.hatButtonControl.ForceShown = false;
|
||||||
this.hatButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.hatButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -231,7 +231,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// rightPantsLegButtonControl
|
// rightPantsLegButtonControl
|
||||||
//
|
//
|
||||||
this.rightPantsLegButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.rightPantsLegButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.rightPantsLegButtonControl.ForceHidden = false;
|
this.rightPantsLegButtonControl.ForceHidden = false;
|
||||||
this.rightPantsLegButtonControl.ForceShown = false;
|
this.rightPantsLegButtonControl.ForceShown = false;
|
||||||
this.rightPantsLegButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.rightPantsLegButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -266,7 +266,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// rightArmButtonControl
|
// rightArmButtonControl
|
||||||
//
|
//
|
||||||
this.rightArmButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.rightArmButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.rightArmButtonControl.ForceHidden = false;
|
this.rightArmButtonControl.ForceHidden = false;
|
||||||
this.rightArmButtonControl.ForceShown = false;
|
this.rightArmButtonControl.ForceShown = false;
|
||||||
this.rightArmButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.rightArmButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -285,7 +285,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// leftArmButtonControl
|
// leftArmButtonControl
|
||||||
//
|
//
|
||||||
this.leftArmButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.leftArmButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.leftArmButtonControl.ForceHidden = false;
|
this.leftArmButtonControl.ForceHidden = false;
|
||||||
this.leftArmButtonControl.ForceShown = false;
|
this.leftArmButtonControl.ForceShown = false;
|
||||||
this.leftArmButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.leftArmButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -304,7 +304,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// leftLegButtonControl
|
// leftLegButtonControl
|
||||||
//
|
//
|
||||||
this.leftLegButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.leftLegButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.leftLegButtonControl.ForceHidden = false;
|
this.leftLegButtonControl.ForceHidden = false;
|
||||||
this.leftLegButtonControl.ForceShown = false;
|
this.leftLegButtonControl.ForceShown = false;
|
||||||
this.leftLegButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.leftLegButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -323,7 +323,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// rightLegButtonControl
|
// rightLegButtonControl
|
||||||
//
|
//
|
||||||
this.rightLegButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.rightLegButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.rightLegButtonControl.ForceHidden = false;
|
this.rightLegButtonControl.ForceHidden = false;
|
||||||
this.rightLegButtonControl.ForceShown = false;
|
this.rightLegButtonControl.ForceShown = false;
|
||||||
this.rightLegButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.rightLegButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -342,7 +342,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// torsoButtonControl
|
// torsoButtonControl
|
||||||
//
|
//
|
||||||
this.torsoButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.torsoButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.torsoButtonControl.ForceHidden = false;
|
this.torsoButtonControl.ForceHidden = false;
|
||||||
this.torsoButtonControl.ForceShown = false;
|
this.torsoButtonControl.ForceShown = false;
|
||||||
this.torsoButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.torsoButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -361,7 +361,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// headButtonControl
|
// headButtonControl
|
||||||
//
|
//
|
||||||
this.headButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.headButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.headButtonControl.ForceHidden = false;
|
this.headButtonControl.ForceHidden = false;
|
||||||
this.headButtonControl.ForceShown = false;
|
this.headButtonControl.ForceShown = false;
|
||||||
this.headButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.headButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -622,7 +622,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// rightShoulderButtonControl
|
// rightShoulderButtonControl
|
||||||
//
|
//
|
||||||
this.rightShoulderButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.rightShoulderButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.rightShoulderButtonControl.ForceHidden = false;
|
this.rightShoulderButtonControl.ForceHidden = false;
|
||||||
this.rightShoulderButtonControl.ForceShown = true;
|
this.rightShoulderButtonControl.ForceShown = true;
|
||||||
this.rightShoulderButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.rightShoulderButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -642,7 +642,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// leftShoulderButtonControl
|
// leftShoulderButtonControl
|
||||||
//
|
//
|
||||||
this.leftShoulderButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.leftShoulderButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.leftShoulderButtonControl.ForceHidden = false;
|
this.leftShoulderButtonControl.ForceHidden = false;
|
||||||
this.leftShoulderButtonControl.ForceShown = true;
|
this.leftShoulderButtonControl.ForceShown = true;
|
||||||
this.leftShoulderButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.leftShoulderButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -662,7 +662,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// leftLeggingButtonControl
|
// leftLeggingButtonControl
|
||||||
//
|
//
|
||||||
this.leftLeggingButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.leftLeggingButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.leftLeggingButtonControl.ForceHidden = false;
|
this.leftLeggingButtonControl.ForceHidden = false;
|
||||||
this.leftLeggingButtonControl.ForceShown = true;
|
this.leftLeggingButtonControl.ForceShown = true;
|
||||||
this.leftLeggingButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.leftLeggingButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -682,7 +682,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// rightLeggingButtonControl
|
// rightLeggingButtonControl
|
||||||
//
|
//
|
||||||
this.rightLeggingButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.rightLeggingButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.rightLeggingButtonControl.ForceHidden = false;
|
this.rightLeggingButtonControl.ForceHidden = false;
|
||||||
this.rightLeggingButtonControl.ForceShown = true;
|
this.rightLeggingButtonControl.ForceShown = true;
|
||||||
this.rightLeggingButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.rightLeggingButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -702,7 +702,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// chestButtonControl
|
// chestButtonControl
|
||||||
//
|
//
|
||||||
this.chestButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.chestButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.chestButtonControl.ForceHidden = false;
|
this.chestButtonControl.ForceHidden = false;
|
||||||
this.chestButtonControl.ForceShown = true;
|
this.chestButtonControl.ForceShown = true;
|
||||||
this.chestButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.chestButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
@@ -722,7 +722,7 @@ namespace PckStudio.Controls
|
|||||||
//
|
//
|
||||||
// headArmorButtonControl
|
// headArmorButtonControl
|
||||||
//
|
//
|
||||||
this.headArmorButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
|
this.headArmorButtonControl.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
this.headArmorButtonControl.ForceHidden = false;
|
this.headArmorButtonControl.ForceHidden = false;
|
||||||
this.headArmorButtonControl.ForceShown = true;
|
this.headArmorButtonControl.ForceShown = true;
|
||||||
this.headArmorButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
this.headArmorButtonControl.HiddenBorderColor = System.Drawing.Color.Red;
|
||||||
|
|||||||
@@ -73,12 +73,11 @@ namespace PckStudio.Controls
|
|||||||
|
|
||||||
var pen = new Pen(penColor, 2.5f);
|
var pen = new Pen(penColor, 2.5f);
|
||||||
|
|
||||||
pen.DashStyle = (ForceHidden || ForceShown) ? DashStyle.Solid : DashStyle.Dash;
|
pen.DashStyle = (ForceHidden || ForceShown) ? SetDashStyle : DashStyle;
|
||||||
|
|
||||||
paintEventArgs.Graphics.DrawRectangle(pen, ClientRectangle);
|
paintEventArgs.Graphics.DrawRectangle(pen, ClientRectangle);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add implementation to the IButtonControl.PerformClick method.
|
|
||||||
public void PerformClick()
|
public void PerformClick()
|
||||||
{
|
{
|
||||||
if (CanSelect)
|
if (CanSelect)
|
||||||
|
|||||||
Reference in New Issue
Block a user