Exemplo n.º 1
0
 /// <summary>
 ///     Calculates the Width of a <see cref="MenuBool" />
 /// </summary>
 /// <returns>
 ///     The width.
 /// </returns>
 public override int Width()
 {
     return(BlueUtilities.CalcWidthItem(this.Component) + MenuSettings.ContainerHeight);
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Gets the width of the <see cref="MenuButton" />
 /// </summary>
 /// <returns>
 ///     The <see cref="int" />.
 /// </returns>
 public override int Width()
 {
     return(BlueUtilities.CalcWidthItem(this.Component) + (2 * TextGap)
            + MenuSettings.Font.MeasureText(MenuManager.Instance.Sprite, this.Component.ButtonText, 0).Width);
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Calculates the width of this component
 /// </summary>
 /// <returns>
 ///     The width.
 /// </returns>
 public override int Width()
 {
     return(BlueUtilities.CalcWidthItem(this.Component) + 100);
 }
Exemplo n.º 4
0
 /// <summary>
 ///     Gets the width of the MenuList
 /// </summary>
 /// <returns>The <see cref="int" /></returns>
 public override int Width()
 {
     return(BlueUtilities.CalcWidthItem(this.Component) + this.Component.MaxStringWidth + (2 * TextSpacing)
            + this.dropDownButtonWidth);
 }