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
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:screen [2023/04/21 10:35] solidblocktutorial:screen [2023/04/21 10:49] – [Scrolling] solidblock
Line 140: Line 140:
  
 ===== Scrolling ===== ===== Scrolling =====
-The screen does not support scrolling. If you'd like to add a list of masses of elements, please try using ''AlwaysSelectedEntryListWidget'' or ''ElementListWidget''.+The screen does not support scrolling, but you can add widgets that supports scrolling. ''<yarn class_350>'' is a class for widgets that contains multiple entries and supports scrolling. However, instead of directly extending it, it is more suitable to extend ''<yarn class_4280>'' or ''<yarn class_4265>'', which already implemented navigation and narration. The difference is: 
 + 
 +  * ''<yarn class_4280>'' refers to a widget in which you can select a row. In widgets that extends the class, you usually select one entry in the list. Some vanilla examples are biome selection screen in the buffet (single biome) world option, and the language selection screen. 
 +  * ''<yarn class_4265>'' refers to a widget where each row has child elements. In widgets that extends this classyou select and interacts the elements in the rows. Like a ''Screen'', the ''<yarn class_4265>.<yarn class_4266>'' should have zero, one, or more child elements.
  
 ===== Things to check before finishing ===== ===== Things to check before finishing =====
tutorial/screen.txt · Last modified: 2023/12/18 01:38 by solidblock