@PostConstruct
private void initializeDialog() {
setTitle(messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.guild.JoinGuildDialog.title",
new Object[]{}, locale.getCurrentLocal()));
IHumanPlayer player = city.getPlayer();
ICity city = this.city.getCity();
int fee = guildService.getEntryFee(player);
String template = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.guild.JoinGuildDialog.text",
new Object[]{city.getName(), player.getName(), player.getLastName(), fee}, locale.getCurrentLocal());
DecoratedText text = textFactory.createDecoratedText(template, new HashMap<>());
VBox box = new VBox(text);
String s = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.guild.JoinGuildDialog.joinBtn",
new Object[]{}, locale.getCurrentLocal());
OpenPatricianLargeWaxButton action = new OpenPatricianLargeWaxButton(s);
action.getStyleClass().add("actionButton");
action.setId("joinGuild");
final int actionButtonX = (WIDTH - 124) / 2;
action.setLayoutX(actionButtonX);
action.setLayoutY(CLOSE_BTN_Y_POS - 24);
action.setOnAction(joinGuild(player, city, fee));
box.setLayoutX(50);
box.setLayoutY(CLOSE_BTN_Y_POS - 500);
getContent().addAll(box, action);
}