Class ResetConfigWidget

java.lang.Object
net.glasslauncher.mods.api.gcapi.screen.widget.IconWidget
net.glasslauncher.mods.api.gcapi.screen.widget.ResetConfigWidget
All Implemented Interfaces:
HasDrawable, HasToolTip

public class ResetConfigWidget extends IconWidget
  • Constructor Details

    • ResetConfigWidget

      public ResetConfigWidget(int x, int y, int width, int height, ConfigEntry<?> configEntry)
  • Method Details

    • mouseClicked

      public void mouseClicked(int mouseX, int mouseY, int button)
      Description copied from interface: HasDrawable
      Note: This is called any time the mouse is clicked. Check the button ID if you want to only do stuff with your button.
      Specified by:
      mouseClicked in interface HasDrawable
      Overrides:
      mouseClicked in class IconWidget
    • setXYWH

      public void setXYWH(int x, int y, int width, int height)
      Description copied from interface: HasDrawable
      Called when setting the drawable position. X and Y is the top left corner.
      Specified by:
      setXYWH in interface HasDrawable
      Overrides:
      setXYWH in class IconWidget
    • getTooltip

      public List<String> getTooltip()
      Description copied from interface: HasToolTip
      The tooltip to show, can be multiline by adding another element onto the list.
      Specified by:
      getTooltip in interface HasToolTip
      Overrides:
      getTooltip in class IconWidget
      Returns:
      a List of colour-enabled strings to use as a tooltip.
    • draw

      public void draw(int mouseX, int mouseY)
      Description copied from interface: HasDrawable
      Use this to render your drawable on the screen.
      Specified by:
      draw in interface HasDrawable
      Overrides:
      draw in class IconWidget