Class ExpressionPanelButtons
java.lang.Object
org.cyclops.integrateddynamics.core.logicprogrammer.client.ExpressionPanelButtons
The buttons of the expression panel: Undo, Redo, Format and Copy right of the title, and the button to add a parameter after the chips.
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionPanelButtons(BooleanSupplier firstParameter, Runnable addParameter, Runnable undo, Runnable redo, Runnable format, Runnable copy) -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.client.gui.components.Button> getAll()voidlayout(int guiLeft, int guiTop) Place the visible ones of Undo, Redo, Format and Copy right of the title, aligned to the right, and fit the button to add a parameter to its text, before the chips are placed around it.
-
Constructor Details
-
ExpressionPanelButtons
public ExpressionPanelButtons(BooleanSupplier firstParameter, Runnable addParameter, Runnable undo, Runnable redo, Runnable format, Runnable copy) - Parameters:
firstParameter- If adding a parameter adds the first one, so the button says what it adds, as there are no chips next to it.addParameter- Adds a parameter.undo- Goes back one change.redo- Goes forward one change.format- Prints the expression in its canonical form.copy- Copies the text.
-
-
Method Details
-
getAll
- Returns:
- All buttons.
-
layout
public void layout(int guiLeft, int guiTop) Place the visible ones of Undo, Redo, Format and Copy right of the title, aligned to the right, and fit the button to add a parameter to its text, before the chips are placed around it.- Parameters:
guiLeft- The left of the gui.guiTop- The top of the gui.
-