MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / Progress

Method Progress

src/main/java/ui/controls/Progress.java:61–73  ·  view source on GitHub ↗

Creates a new instance of progress

(int x, int y, int width)

Source from the content-addressed store, hash-verified

59
60 /** Creates a new instance of progress */
61 public Progress(int x, int y, int width) {
62 this.x=x;
63 this.width=width;
64 this.font=FontCache.getFont(false, FontCache.bar);
65 this.height=font.getHeight();
66 this.y=y-height;
67 this.topColor=ColorTheme.getColor(ColorTheme.PGS_COMPLETE_TOP);
68//#ifdef GRADIENT
69 this.bottomColor=ColorTheme.getColor(ColorTheme.PGS_COMPLETE_BOTTOM);
70 if (topColor!=bottomColor)
71 this.gr=new Gradient(x, y-height, x+width, y, topColor, bottomColor, false);
72//#endif
73 }
74
75 public void draw(Graphics g, int filled, String text) {
76 g.setColor(ColorTheme.getColor(ColorTheme.PGS_REMAINED));

Callers

nothing calls this directly

Calls 3

getFontMethod · 0.95
getColorMethod · 0.95
getHeightMethod · 0.65

Tested by

no test coverage detected