/// <summary>
 ///     Gets the width of the MenuKeyBind
 /// </summary>
 /// <returns>The <see cref="int" /></returns>
 public override int Width()
 {
     return(DefaultUtilities.CalcWidthItem(this.Component)
            + (int)
            (MenuSettings.ContainerHeight + DefaultUtilities.CalcWidthText("[" + this.Component.Key + "]")
             + MenuSettings.ContainerTextOffset));
 }
 /// <summary>
 ///     Calculates the Width of an AMenuComponent
 /// </summary>
 /// <returns>
 ///     The width.
 /// </returns>
 public override int Width()
 {
     return(DefaultUtilities.CalcWidthItem(this.Component));
 }
示例#3
0
 /// <summary>
 ///     Gets the width of the MenuList
 /// </summary>
 /// <returns>The <see cref="int" /></returns>
 public override int Width()
 {
     return(DefaultUtilities.CalcWidthItem(this.Component) + this.Component.MaxStringWidth + (2 * TextSpacing)
            + this.dropDownButtonWidth);
 }
示例#4
0
 /// <summary>
 ///     Gets the width of a <see cref="MenuColor" />
 /// </summary>
 /// <returns>The <see cref="int" /></returns>
 public override int Width()
 {
     return(DefaultUtilities.CalcWidthItem(this.Component) + MenuSettings.ContainerHeight);
 }
示例#5
0
 /// <summary>
 ///     Gets the width of the <see cref="MenuButton" />
 /// </summary>
 /// <returns>
 ///     The <see cref="int" />.
 /// </returns>
 public override int Width()
 {
     return(DefaultUtilities.CalcWidthItem(this.Component) + (2 * TextGap)
            + MenuSettings.Font.MeasureText(MenuManager.Instance.Sprite, this.Component.ButtonText, 0).Width);
 }