@Override
    public void onRepaint(Graphics graphics) {
        if (Game.isLoggedIn()) {
            Graphics2D g = (Graphics2D) graphics;
            g.setRenderingHints(RENDERING_HINTS);

            g.setColor(new Color(194, 178, 146));
            g.fillRect(0, 0, (int) Game.getDimensions().getWidth(), 50);
            g.setColor(new Color(49, 42, 27));
            g.drawRect(0, 0, (int) Game.getDimensions().getWidth(), 50);

            g.setFont(ARIAL_12_BOLD);
            g.setColor(PAINT_TEXT_COLOR1);
            g.drawString("Time Running: " + (skillData != null ? Util.format(skillData.getTimer().getElapsed(), true) : "Initializing..."), 10, 18);

            String status = null;
            if (jobs.get() != null)
                status = jobs.get().status();
            drawInfoBox(g, 10, 26, 222, 17, "Status: " + (status != null ? status : "Null..."));

            drawInfoBox(g, 238, 26, 88, 17, "Version: " + format.format(version));

            int percent = 0;
            if (skillData != null)
                percent = Skills.getRealLevel(Skills.RANGE) == 99 ? 100 : skillData.getPercentToNextLevel(Skills.RANGE);
            g.drawImage(paintBar, 335, 4, null);
            g.setColor(new Color(108, 108, 107));
            g.drawRect(344, 13, (int) 4.07 * percent, 22);
            g.setColor(new Color(214, 196, 160));

            int diff = 407 - ((int) 4.07 * percent);
            if (diff - 1 > 0)
                g.fillRect(((int) 4.07 * percent) + 345, 14, diff - 1, 21);

            int change = 0;
            if (skillData != null)
                change = skillData.level(Skills.RANGE);
            String levelInfo = percent + "% To Level " + (Skills.getRealLevel(Skills.RANGE) == 99 ? 99 : Skills.getRealLevel(Skills.RANGE) + 1)
                    + " (" + change + " Gained)";
            g.setFont(ARIAL_12_BOLD);
            g.setColor(BLACK);
            g.drawString(levelInfo, 625 - (int) g.getFontMetrics().getStringBounds(levelInfo, g).getWidth(), 29);
            drawMouse(g);
        }
    }