Class UIBar

java.lang.Object
ActiverseUtils.UIBar

public class UIBar extends Object
UIBar - A progress bar component for World UI (health, stamina, etc.) Allows drawing bars without using Graphics2D directly in game code
Version:
1.4.0
Author:
Knivier
  • Constructor Details

    • UIBar

      public UIBar(int x, int y, int width, int height, Color fillColor)
    • UIBar

      public UIBar(int x, int y, int width, int height, Color fillColor, Color backgroundColor, Color borderColor)
  • Method Details

    • render

      public void render(Graphics g)
    • setValue

      public void setValue(double current, double max)
    • setLabel

      public void setLabel(String label, boolean show)
    • setPosition

      public void setPosition(int x, int y)
    • setSize

      public void setSize(int width, int height)
    • setColors

      public void setColors(Color fill, Color background, Color border)