AbstractMoveableScreen
This page talks about AbstractMoveableScreen.
This page talks about AbstractMoveableScreen.
The class extends the Screen
class and provides additional functionality for creating moveable screens in Minecraft Fabric.
dynamicutil
: The DynamicUtil
instance used by this screen.
mc
: The MinecraftClient
instance.
selectedWidget
: The currently selected widget.
dragStartX
, dragStartY
: The starting position of a drag operation.
List<contextMenu>
: The List of context menu that are currently being displayed.
colorPicker
: The color picker that is currently displayed.
sliderWigdet
: The widget that is currently being edited by the slider.
List<Slider>
: The List of sliders.
mouseHandler
: The mouse handler for this screen.
dragHandler
: The drag handler for this screen.
gridSize
: The size of each grid cell in pixels.
ShouldPause
: Whether to pause if the screen is opened or not.
ShouldBeAffectedByResize
: Whether the stuff drawn on screen should be affected by screen resize or not.
WidgetX
: X position of the selected widget.
WidgetY
: Y position of the selected widget.
Constructs an AbstractMoveableScreen
object with the given title and dynamicutil instance.
Handles mouse dragging on this screen. This method updates the position of the selected widget while dragging.
Handles mouse release events on this screen. This method stops dragging or scaling the selected widget.
Handles mouse clicks on this screen. This method starts dragging a widget if it was clicked.
Renders this screen and its widgets on the screen.
Sets the size of each grid cell in pixels.
Sets whether to pause if the screen is opened or not.
Sets whether the stuff drawn on screen should be affected by screen resize or not.
Resizes this screen. If ShouldBeAffectedByResize
is true, this method calls the superclass's implementation of this method.
Returns whether to pause if the screen is opened or not.
An abstract method that must be implemented by subclasses to handle right-clicks on widgets.
An abstract method that must be implemented by subclasses to display a context menu for a widget at the given position.