                public void clicked(InputEvent event, float x, float y) {
                    game.setScreen(ScreenFactory.create(game, buttonPrototype.target));
                }
            });

            if (++index < length) {
                buttons.add(button)
                        .width(buttonPrototype.width)
                        .height(buttonPrototype.height)
                        .padBottom(10).row();
            } else {
                buttons.add(button)
                        .width(buttonPrototype.width)
                        .height(buttonPrototype.height);
            }