I'm trying to display a dialog in the middle of the screen. But I couldn't change the size of the dialog with setWidth() or setHeight(). I have the following code:
private void showDialog() {
Window.WindowStyle dialogStyle = new Window.WindowStyle();
dialogStyle.background = new TextureRegionDrawable(new TextureRegion(dialog_bg));
dialogStyle.titleFont = gameFont;
Dialog dialog = new Dialog("Test Dialog", dialogStyle);
dialog.setWidth(200); // will be ignored
dialog.show(stage);
}
Any ideas?