On this page
UILabel
UILabel.new
Inputs:
- parentSizer [UISizer]:
- label [string]:
- wrapText [boolean?]: Wrap text to a given width. Width must be larger than 0 for it to work. [optional, default=false]
- alignment [integer?]: (TextAlignment.LEFT, TextAlignment.CENTER or TextAlignment.RIGHT) [optional, default=TextAlignment.LEFT]
- verticalAlignment [integer?]: (VerticalAlignment.TOP, VerticalAlignment.CENTER or VerticalAlignment.BOTTOM) [optional, default=VerticalAlignment.TOP]
- xPosition [integer?]: [optional, default=-1]
- yPosition [integer?]: [optional, default=-1]
- width [integer?]: [optional, default=-1]
- height [integer?]: [optional, default=-1]
- borderDirection [integer?]: (BorderDirection.ALL, BorderDirection.TOP, BorderDirection.BOTTOM, BorderDirection.LEFT or BorderDirection.RIGHT) [optional, default=BorderDirection.NONE]
- borderSize [integer?]: in pixels [optional, default=0]
- proportion [integer?]: [optional, default=0]
Outputs:
- uiLabel [UILabel]:
UILabel:destroy
UILabel:isVisible
Outputs:
- [boolean]:
UILabel:setBold
Inputs:
- bold [boolean]:
UILabel:setItalic
Inputs:
- italic [boolean]:
UILabel:setText
Inputs:
- label [string]:
UILabel:setTextColor
Inputs:
- red [float]: red (0.0 - 1.0)
- green [float]: green (0.0 - 1.0)
- blue [float]: blue (0.0 - 1.0)
- alpha [float?]: alpha (0.0 - 1.0) [optional, default=1.0]
UILabel:setToolTip
Inputs:
- tooltip [string]:
UILabel:setVisible
Inputs:
- visible [boolean?]: [optional, default=true]
Last updated 12 Apr 2025, 16:09 +0200 .