Bitbybit Docs
    Preparing search index...

    Class CreateButtonDto (Inputs.BabylonGui)

    Feeds babylon.gui.button.createSimpleButton: the name, label, colors, optional size and font size of a button.

    Index

    Constructors

    • Parameters

      • Optionalname: string
      • Optionallabel: string
      • Optionalcolor: string
      • Optionalbackground: string
      • Optionalwidth: string | number
      • Optionalheight: string | number
      • OptionalfontSize: number

      Returns CreateButtonDto

    Properties

    name: string

    Name the button is known by, which control.getControlByName finds it by

    buttonName
    
    label: string

    The text shown on the button

    Click me!
    
    color: string

    CSS color of the label text

    black
    
    background: string

    CSS color of the button's face

    #f0cebb
    
    width?: string | number

    Width, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left out, the engine chooses

    undefined
    

    true

    height?: string | number

    Height, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left out, the engine chooses

    undefined
    

    true

    fontSize: number

    Font size of the label, in pixels

    24