public static void OnWidgetRecieve(Widget wdg, int id, String type) {
        if (wdg instanceof IMeter) { // Stamina / SHP / HHP / Hungry
            currentMeters.add((IMeter) wdg);
        }
        if (wdg instanceof Img) { // Hourgalss on
            if (((Img) wdg).textureName.contains("gfx/hud/prog/"))
                hourGlass = true;
        }
        if (wdg instanceof Window) { // Last created window
            lastCreatedWindow = (Window) wdg;
            if (((Window) wdg).cap.text.equals("Change Name")) {
                Button btnGen = new Button(new Coord(210, 20), 35, wdg, "Gen") {
                    @Override
                    public void click() {
                        parent.findchild(TextEntry.class).settext(APXUtils.generateNickname());
                    }
                };
            }
        }
        if (wdg instanceof Fightview) { // Aggro
            haveAggro = true;
        }
        if (showDebugToConsole) {
            System.out.println("Widget: " + wdg.getClass().toString()
                    + " Type: " + type + " Parent: "
                    + wdg.parent.getClass().getName());
        }
    }