示例#1
0
文件: Label.cs 项目: wwarnick/Sever
 /// <summary>Creates a new instance of Label.</summary>
 /// <param name="toClone">The Label to clone.</param>
 public Label(Label toClone)
     : base(toClone)
 {
     ForeColor = toClone.ForeColor;
     font = toClone.Font;
     text = toClone.Text;
     textAlign = toClone.TextAlign;
     textPos = toClone.textPos;
     autoSize = toClone.autoSize;
 }
示例#2
0
文件: Label.cs 项目: wwarnick/Sever
 /// <summary>Creates a new instance of Label.</summary>
 public Label()
     : base()
 {
     textPos = new Vector2();
     ForeColor = Desktop.DefLabelForeColor;
     font = Desktop.DefLabelFont;
     text = string.Empty;
     textAlign = Desktop.DefLabelTextAlign;
     DrawBack = false;
     Ignore = true;
     autoSize = Desktop.DefLabelAutoSize;
 }
示例#3
0
 /// <summary>Creates a new instance of ButtonText.</summary>
 public ButtonText()
     : base()
 {
     TextPos = new Vector2();
     ForeColor = Desktop.DefButtonTextForeColor;
     ForeColorHover = Desktop.DefButtonTextForeColorHover;
     ForeColorPressed = Desktop.DefButtonTextForeColorPressed;
     ForeColorP = Desktop.DefButtonTextForeColorP;
     ForeColorHoverP = Desktop.DefButtonTextForeColorHoverP;
     textAlign = Desktop.DefButtonTextTextAlign;
     sidePadding = Desktop.DefButtonTextSidePadding;
     font = Desktop.DefButtonTextFont;
     text = string.Empty;
 }
示例#4
0
 /// <summary>Creates a new instance of ButtonText.</summary>
 /// <param name="toClone">The ButtonText to clone.</param>
 public ButtonText(ButtonText toClone)
     : base(toClone)
 {
     TextPos = toClone.TextPos;
     ForeColor = toClone.ForeColor;
     ForeColorHover = toClone.ForeColorHover;
     ForeColorPressed = toClone.ForeColorPressed;
     ForeColorP = toClone.ForeColorP;
     ForeColorHoverP = toClone.ForeColorHoverP;
     font = toClone.Font;
     text = toClone.Text;
     textAlign = toClone.TextAlign;
     sidePadding = toClone.sidePadding;
     locSizeChgd();
 }