Default Moveable Screen
This page will talk about the default moveable screen
This page will talk about the default moveable screen
The class extends the AbstractMoveableScreen
class and provides additional functionality for creating moveable screens in Minecraft Fabric.
Constructs a MoveableScreen
object with the given title and dynamicutil instance. This constructor sets the grid size to 1, sets whether to pause if the screen is opened to false, and sets whether the stuff drawn on screen should be affected by screen resize to false.
Renders this screen and its widgets on the screen. This method also draws the text "Editor Screen" at the top center of the screen.
Handles right-clicks on widgets. This method sets the selected widget and slider widget to the given widget, and displays a context menu for the widget at its position.
Displays a context menu for a widget at the given position. This method creates a new ContextMenu
object and adds options to it depending on the type of widget. For example, if the widget is an instance of ArmorWidget
, this method adds an option to cycle through TextureHelper.Position
values. If the widget is an instance of ItemWidget
, this method does not display a context menu. If the widget is an instance of TextWidget
, this method adds options to toggle shadow, rainbow, and vertical rainbow effects, as well as options to change text and data colors.