Class ExpressionStartPanel
java.lang.Object
org.cyclops.integrateddynamics.core.logicprogrammer.client.ExpressionStartPanel
The expression panel while no operator is active.
It looks like the panel of an expression without parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionStartPanel(ContainerScreenLogicProgrammerBase<?> gui, ContainerLogicProgrammerBase container) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd a parameter to the typed text, as there is no expression to add it to yet.voidApply typed text that is not applied yet, such as when the gui closes.booleancancel()Stop typing, keeping valid text, as for the panel of an expression.booleancharTyped(net.minecraft.client.input.CharacterEvent evt) booleanisActive()protected booleanisInTextBox(double mouseX, double mouseY) protected booleanisShown()booleankeyPressed(net.minecraft.client.input.KeyEvent evt) booleanmouseClicked(net.minecraft.client.input.MouseButtonEvent evt, boolean isDoubleClick) booleanmouseDragged(double mouseX, double mouseY) voidbooleanmouseScrolled(double mouseX, double mouseY, double scrollY) voidrender(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.client.gui.Font font, int mouseX, int mouseY, float partialTicks) voidrenderTooltips(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY) voidtick()Apply typed text once typing pauses, or when the panel is hidden.
-
Constructor Details
-
ExpressionStartPanel
public ExpressionStartPanel(ContainerScreenLogicProgrammerBase<?> gui, ContainerLogicProgrammerBase container)
-
-
Method Details
-
isActive
public boolean isActive()- Returns:
- If there is no expression to show, so this panel is used instead.
-
isShown
protected boolean isShown() -
addParameter
protected void addParameter()Add a parameter to the typed text, as there is no expression to add it to yet. -
tick
public void tick()Apply typed text once typing pauses, or when the panel is hidden. Called each tick, outside of rendering. -
applyPendingText
public void applyPendingText()Apply typed text that is not applied yet, such as when the gui closes. -
cancel
public boolean cancel()Stop typing, keeping valid text, as for the panel of an expression.- Returns:
- If the text had focus or was typed.
-
isInTextBox
protected boolean isInTextBox(double mouseX, double mouseY) -
mouseClicked
public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent evt, boolean isDoubleClick) -
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY) -
mouseReleased
public void mouseReleased() -
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double scrollY) -
charTyped
public boolean charTyped(net.minecraft.client.input.CharacterEvent evt) -
keyPressed
public boolean keyPressed(net.minecraft.client.input.KeyEvent evt) -
render
public void render(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.client.gui.Font font, int mouseX, int mouseY, float partialTicks) -
renderTooltips
public void renderTooltips(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY)
-