Custom Main Menu

Mods
50,426,927 Downloads Last Updated: Nov 15, 2018 Game Version: 1.12.2

Custom Main Menu/Elements/Labels

 

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 Alignment 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