Class ExpressionStartPanel

java.lang.Object
org.cyclops.integrateddynamics.core.logicprogrammer.client.ExpressionStartPanel

public class ExpressionStartPanel extends Object
The expression panel while no operator is active. It looks like the panel of an expression without parameters.
  • Constructor Details

  • 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)