public void render() {

        for (int c = 0; c < textElements.size(); c++) {
            UITextElement text = textElements.get(c);
            text.print();
        }
        for (int c = 0; c < boxElements.size(); c++) {
            UIBoxElement element = boxElements.get(c);
            element.draw();
        }
        //render look
        if (look_actor != null) {
            ActorType actorType = look_actor.type;
            UITextElement name = new UITextElement(actorType.getName(), new Point(645, 500), 2, FontType.STD, Color.white);
            UITextElement description = new UITextElement(actorType.getDescription(), new Point(645, 500 + name.getTotalHeight()),
                    1, FontType.STD, Color.white);
            name.print();
            description.print();
            Image icon = portraits.getSprite(actorType.getPortaitID());
            icon.draw(605, 500, 4);


        }
        //render hotkeys
        Player player = game.player;

        for (int c = 0; c < player.characterSheet.hotkeys.length; c++) {
            float ppt = (DisplayConstant.width - 600) / 10f;
            float scale = ppt / 10f;
            AbilityType abilityType = player.characterSheet.hotkeys[c];
            Image img = null;
            if (abilityType == null) {
                img = abilities.getSprite(AbilitySprite.blank);
            } else {
                img = abilities.getSprite(AbilityType.getAbilitySprite(abilityType));
            }
            //img.draw(DisplayConstant.width - ppt, c * ppt + 160, scale);
            img.draw(c * ppt + 600, DisplayConstant.height - ppt, scale);
        }
        //Player info render

        Image player_portrait = portraits.getSprite(PortraitSprite.player);
        player_portrait.draw(605, 100, 6);

        Image hp = health.getSprite(new SpriteID(0, 0));
        Image nohp = nohealth.getSprite(new SpriteID(0, 0));
        double maxhp = player.characterSheet.max_hp;
        double curhp = player.characterSheet.hp;
        float width_scale = (float) curhp / (float) maxhp;
        nohp.draw(657, 120);
        hp.draw(657, 120, width_scale * 100, 10f);


    }