@Subscribe public void handleBidLevelChange(AuctionBidLevel change) { currentBidLevel.setValue(change.getNewLevel()); if (!change.getBidder().equals(city.getPlayer())) { auctionBtn.setDisable(false); } // update bid labels int index = dialogHelper.removeById(box, "noBid"); if (index < 0) { index = dialogHelper.removeById(box, "currentBid"); } addCurrentBidInformation(box, change.getAuction(), index); index = dialogHelper.removeById(box, "bidLevel-"+change.getOldLevel()); box.getChildren().remove(index); addBidLevelCountDown(box, change.getAuction(), index); if (change.getNewLevel() == EBidLevel.DONE) { auctionBtn.setVisible(false); clientEventBus.unregister(this); } else { String label = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.guild.AuctionGuildDialog.nextBid", new Object[]{change.getAuction().getCurrentBid() + AuctionEngine.BID_DELTA}, locale.getCurrentLocal()); auctionBtn.setText(label); } }
meetings.setLayoutY(CLOSE_BTN_Y_POS - 24); if (city.getPlayer().getRank() != ESocialRank.ALDERMAN) { meetings.setVisible(false);
try { box.getChildren().clear(); action.setVisible(false); String template = messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.cityhall.TownInfoNotice.petitionIntro", new Object[]{}, locale.getCurrentLocal()); DecoratedText text = textFactory.createDecoratedText(template, new HashMap<>()); action.setVisible(true); }); } else { action.setVisible(true); }); } else { selectionBox = null; action.setVisible(true); Label lbl = new Label(messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.cityhall.TownInfoNotice.headTax", new Object[]{}, locale.getCurrentLocal())); Image img = imageLoader.getImage("icons/minusIcon"); selectionBox = null; action.setVisible(true); Label lbl = new Label(messageSource.getMessage("ch.sahits.game.openpatrician.display.dialog.cityhall.TownInfoNotice.specialTax", new Object[]{}, locale.getCurrentLocal())); Image img = imageLoader.getImage("icons/minusIcon");
withdraw.getStyleClass().add("actionButton"); if (!city.getPlayer().getRank().equals(ESocialRank.MAYOR) || !city.getPlayer().getHometown().equals(city.getCity())) { withdraw.setVisible(false);