Skip to content
Ilya Maximov edited this page Jan 14, 2019 · 3 revisions

Labels that can display a variety of text.

Properties:

  • posX: x-coordinate of the label
  • posY: y-coordinate of the label
  • color: a rgb integer for the color of the text (Color codes override this),
  • hoverColor: (optional) a rgb integer for the color of the text when the user hovers over it (Color codes override this)
  • text: the Text that's supposed to be displayed (Can contain color codes)
  • hoverText: the Text when the user hovers over it (Can contain color codes)
  • anchor: (optional) Can be either "start" (default), "middle" or "end". Makes the text left, center or right aligned.
  • action: (optional) what Action will be executed when the user clicks on the label
  • alignment: (optional) see Alignments for information
  • fontSize: (optional) the size of the text, 1 is default, 2 would be two times as large
  • pressSound: (optional) a resource location that points towards the sound this text makes when pressed
  • hoverSound: (optional) a resource location that points towards the sound this text makes when hovered
Clone this wiki locally