User Tools

Site Tools


tutorial:screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:screen [2026/03/01 23:33] – Mojang mappings cassiancctutorial:screen [2026/03/01 23:33] (current) cassiancc
Line 52: Line 52:
   * ''addRenderableWidget'': The element will be both rendered and interactable, which is the most common case.   * ''addRenderableWidget'': The element will be both rendered and interactable, which is the most common case.
  
-In the ''Button.builder(...).builder()'', you can specify the size and position of the button by using ''size'' and ''pos'' respectively, or directly using ''bounds''. The ''tooltip'' specifies the tooltip, which will be rendered and narrated when your mouse hovers on, or use Tab to focus on it. ''Tooltip.create takes two arguments, the first to be shown, and the second (optional) to be narrated.+In the ''Button.builder(...).builder()'', you can specify the size and position of the button by using ''size'' and ''pos'' respectively, or directly using ''bounds''. The ''tooltip'' specifies the tooltip, which will be rendered and narrated when your mouse hovers on, or use Tab to focus on it. ''Tooltip.create'' takes two arguments, the first to be shown, and the second (optional) to be narrated.
  
 For versions before 1.19.3, ''Button.builder(...)'' does not exist. In that case, please directly invoke the constructor of ''Button''. For versions before 1.19.3, ''Button.builder(...)'' does not exist. In that case, please directly invoke the constructor of ''Button''.
tutorial/screen.txt · Last modified: 2026/03/01 23:33 by cassiancc