Archived Legacy DynamicHUD
  • Dynamic HUD
  • Import using Gradle
  • Widgets
    • Adding Widgets
      • TextWidget
      • ItemWidget
      • ArmorWidget
    • Creating your own Widget class
    • Widget class
    • WidgetManager
    • WidgetBox
  • Saving and Loading
    • Saving and Loading
    • Changing save file name and directory
  • Moveable Screen
    • AbstractMoveableScreen
    • Default Moveable Screen
    • Using the default Moveable Screen
    • Creating and using your own MoveableScreen class
  • ContextMenu
    • ContextMenu class
    • ContextMenuOptionsProvider interface
    • DoubleInputScreen
    • DataInputScreen
  • Slider Widget
    • Slider
  • SliderWidgetBuilder
  • ColorPicker
    • ColorGradientPicker
      • ColorPickerButton
      • GradientBox
      • GradientSlider
  • Helpers
    • ColorHelper
    • DrawHelper
    • TextureHelper
Powered by GitBook
On this page
  • MoveableScreen
  • Constructors
  • Methods
  1. Moveable Screen

Default Moveable Screen

This page will talk about the default moveable screen

PreviousAbstractMoveableScreenNextUsing the default Moveable Screen

MoveableScreen

The class extends the AbstractMoveableScreen class and provides additional functionality for creating moveable screens in Minecraft Fabric.

Constructors

MoveableScreen(Text title, DynamicUtil dynamicutil)

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.

Methods

render(MatrixStack matrices, int mouseX, int mouseY, float delta)

Renders this screen and its widgets on the screen. This method also draws the text "Editor Screen" at the top center of the screen.

handleRightClickOnWidget(Widget widget)

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.

menu(Widget widget, int x, int y)

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.

MoveableScreen