Class GuiComponent

java.lang.Object
de.ellpeck.rockbottom.api.gui.component.GuiComponent
Direct Known Subclasses:
ButtonComponent, ClickableTextComponent, ColorPickerComponent, ConfirmationPopupComponent, ConstructComponent, IngredientComponent, InputFieldComponent, MessageBoxComponent, PolaroidComponent, ProgressBarComponent, ScrollBarComponent, SlotComponent, StatisticComponent, TextComponent

public abstract class GuiComponent extends Object
  • Field Details

    • gui

      public final Gui gui
    • width

      protected int width
    • height

      protected int height
    • x

      protected int x
    • y

      protected int y
  • Constructor Details

    • GuiComponent

      public GuiComponent(Gui gui, int x, int y, int width, int height)
  • Method Details

    • getGuiColor

      public static int getGuiColor()
    • getElementColor

      public static int getElementColor()
    • getUnselectedElementColor

      public static int getUnselectedElementColor()
    • getElementOutlineColor

      public static int getElementOutlineColor()
    • setPos

      public void setPos(int x, int y)
    • update

      public void update(IGameInstance game)
    • updateInactive

      public void updateInactive(IGameInstance game)
    • render

      public void render(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
    • renderOverlay

      public void renderOverlay(IGameInstance game, IAssetManager manager, IRenderer g, int x, int y)
    • isMouseOverPrioritized

      public boolean isMouseOverPrioritized(IGameInstance game)
    • isMouseOver

      public boolean isMouseOver(IGameInstance game)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean active)
    • onMouseAction

      public boolean onMouseAction(IGameInstance game, int button, float x, float y)
    • onKeyPressed

      public boolean onKeyPressed(IGameInstance game, int button)
    • onCharInput

      public boolean onCharInput(IGameInstance game, int codePoint, char[] characters)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public abstract ResourceName getName()
    • getX

      public int getX()
    • getY

      public int getY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getRenderX

      public int getRenderX()
    • getRenderY

      public int getRenderY()
    • getPriority

      public int getPriority()
    • shouldDoFingerCursor

      public boolean shouldDoFingerCursor(IGameInstance game)
    • canCloseWithInvKey

      public boolean canCloseWithInvKey()