Exemple #1
0
 public GUIStyle(Vector2 dimensionsStyle, SpriteFont textFontStyle, Color blockColorStyle, Color textColorStyle, Color sliderColorStyle, GUIAlignment guiAlignmentStyle, TextAlignment textAlignmentStyle, TextAlignment textButtonAlignmentStyle, Vector2 textBorderStyle, Vector2 parentDimensionsStyle)
 {
     DimensionsStyle          = dimensionsStyle;
     TextFontStyle            = textFontStyle;
     BlockColorStyle          = blockColorStyle;
     TextColorStyle           = textColorStyle;
     GuiAlignmentStyle        = guiAlignmentStyle;
     TextAlignmentStyle       = textAlignmentStyle;
     ParentDimensionsStyle    = parentDimensionsStyle;
     TextButtonAlignmentStyle = textButtonAlignmentStyle;
     TextBorderStyle          = textBorderStyle;
     SliderColorStyle         = sliderColorStyle;
 }
Exemple #2
0
 public XG_Label(Rectangle rect, string text, GUIAlignment alignment)
     : base(rect, false)
 {
     Text = text;
     Alignment = alignment;
 }