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
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionResetConfigWidget(int x, int y, int width, int height, ConfigEntry<?> configEntry) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(int mouseX, int mouseY) Use this to render your drawable on the screen.The tooltip to show, can be multiline by adding another element onto the list.voidmouseClicked(int mouseX, int mouseY, int button) Note: This is called any time the mouse is clicked.voidsetXYWH(int x, int y, int width, int height) Called when setting the drawable position.Methods inherited from class net.glasslauncher.mods.api.gcapi.screen.widget.IconWidget
getXYWH, keyPressed, setID, tick
-
Constructor Details
-
ResetConfigWidget
-
-
Method Details
-
mouseClicked
public void mouseClicked(int mouseX, int mouseY, int button) Description copied from interface:HasDrawableNote: 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:
mouseClickedin interfaceHasDrawable- Overrides:
mouseClickedin classIconWidget
-
setXYWH
public void setXYWH(int x, int y, int width, int height) Description copied from interface:HasDrawableCalled when setting the drawable position. X and Y is the top left corner.- Specified by:
setXYWHin interfaceHasDrawable- Overrides:
setXYWHin classIconWidget
-
getTooltip
Description copied from interface:HasToolTipThe tooltip to show, can be multiline by adding another element onto the list.- Specified by:
getTooltipin interfaceHasToolTip- Overrides:
getTooltipin classIconWidget- Returns:
- a List of colour-enabled strings to use as a tooltip.
-
draw
public void draw(int mouseX, int mouseY) Description copied from interface:HasDrawableUse this to render your drawable on the screen.- Specified by:
drawin interfaceHasDrawable- Overrides:
drawin classIconWidget
-