static final void method547(int i, boolean flag, String s, Color color, int j) {
        try {
            Graphics g = NPC.gameCanvas.getGraphics();
            if (Class142_Sub8_Sub39.aFont4515 == null) {
                Class142_Sub8_Sub39.aFont4515 = new Font("Helvetica", 1, 13);
                Class90.aFontMetrics1549 = NPC.gameCanvas.getFontMetrics(Class142_Sub8_Sub39.aFont4515);
            }
            if (flag) {
                g.setColor(Color.black);
                g.fillRect(0, 0, Class39_Sub7.screenWidth, Class142_Sub27_Sub14.screenHeight);
            }
            if (color == null) {
                color = new Color(140, 17, 17);
            }
            try {
                if (Class4.anImage115 == null) {
                    Class4.anImage115 = NPC.gameCanvas.createImage(304, 34);
                }
                Graphics g1 = Class4.anImage115.getGraphics();
                g1.setColor(color);
                g1.drawRect(0, 0, 303, 33);
                g1.fillRect(2, 2, 3 * i, 30);
                g1.setColor(Color.black);
                g1.drawRect(1, 1, 301, 31);
                g1.fillRect(i * 3 + 2, 2, -(i * 3) + j, 30);
                g1.setFont(Class142_Sub8_Sub39.aFont4515);
                g1.setColor(Color.white);
                g1.drawString(s, (304 + -Class90.aFontMetrics1549.stringWidth(s)) / 2, 22);
                g.drawImage(Class4.anImage115, Class39_Sub7.screenWidth / 2 - 152, Class142_Sub27_Sub14.screenHeight / 2 - 18, null);
            } catch (Exception _ex) {
                int k = Class39_Sub7.screenWidth / 2 - 152;
                int l = Class142_Sub27_Sub14.screenHeight / 2 + -18;
                g.setColor(color);
                g.drawRect(k, l, 303, 33);
                g.fillRect(2 + k, 2 + l, 3 * i, 30);
                g.setColor(Color.black);
                g.drawRect(1 + k, l + 1, 301, 31);
                g.fillRect(2 + k + 3 * i, 2 + l, 300 + -(i * 3), 30);
                g.setFont(Class142_Sub8_Sub39.aFont4515);
                g.setColor(Color.white);
                g.drawString(s, (304 + -Class90.aFontMetrics1549.stringWidth(s)) / 2 + k, 22 + l);
            }
            if (Class142_Sub27_Sub4.aString4710 != null) {
                g.setFont(Class142_Sub8_Sub39.aFont4515);
                g.setColor(Color.white);
                g.drawString(Class142_Sub27_Sub4.aString4710, Class39_Sub7.screenWidth / 2 - Class90.aFontMetrics1549.stringWidth(Class142_Sub27_Sub4.aString4710) / 2, Class142_Sub27_Sub14.screenHeight / 2 - 26);
            }
        } catch (Exception _ex) {
            NPC.gameCanvas.repaint();
        }
    }