示例#1
0
        /// <summary>
        /// Checkbox item with a toggleable checkbox.
        /// </summary>
        /// <param name="text">Item label.</param>
        /// <param name="style">CheckBox style (Tick or Cross).</param>
        /// <param name="check">Boolean value whether the checkbox is checked.</param>
        /// <param name="description">Description for this item.</param>
        /// <param name="mainColor">Main item color.</param>
        /// <param name="highlightColor">Highlight item color.</param>
        public UIMenuCheckboxItem(string text, UIMenuCheckboxStyle style, bool check, string description, Color mainColor, Color highlightColor) : base(text, description, mainColor, highlightColor)
        {
            const int y = 0;

            Style          = style;
            _checkedSprite = new Sprite("commonmenu", "shop_box_blank", new PointF(410, y + 95), new SizeF(50, 50));
            Checked        = check;
        }
示例#2
0
 /// <summary>
 /// Checkbox item with a toggleable checkbox.
 /// </summary>
 /// <param name="text">Item label.</param>
 /// <param name="style">CheckBox style (Tick or Cross).</param>
 /// <param name="check">Boolean value whether the checkbox is checked.</param>
 /// <param name="description">Description for this item.</param>
 public UIMenuCheckboxItem(string text, UIMenuCheckboxStyle style, bool check, string description) : this(text, style, check, description, Color.Transparent, Color.FromArgb(255, 255, 255, 255))
 {
 }