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

Method drawTraffic

src/main/java/ui/VirtualList.java:625–635  ·  view source on GitHub ↗
(final Graphics g, boolean up)

Source from the content-addressed store, hash-verified

623 }
624
625 protected void drawTraffic(final Graphics g, boolean up) {
626 int pos=(up)?(width/2)+3:(width/2)-3;
627 int pos2=(up)?height-4:height-2;
628
629 //g.setColor((up)?0xff0000:0x00ff00);
630 g.setColor(getMainBarRGB());
631 g.drawLine(pos, height-5, pos, height-1);
632 g.drawLine(pos-1, pos2, pos+1, pos2);
633 g.fillRect(pos-2, height-3, 1, 1);
634 g.fillRect(pos+2, height-3, 1, 1);
635 }
636
637 protected void drawPopUp(final Graphics g) {
638 PopUp.getInstance().paintCustom(g);

Callers 1

paintMethod · 0.95

Calls 4

getMainBarRGBMethod · 0.95
setColorMethod · 0.45
drawLineMethod · 0.45
fillRectMethod · 0.45

Tested by

no test coverage detected