diff --git a/client/src/main/java/ru/trader/controllers/OffersController.java b/client/src/main/java/ru/trader/controllers/OffersController.java index a72c1c9..670f532 100644 --- a/client/src/main/java/ru/trader/controllers/OffersController.java +++ b/client/src/main/java/ru/trader/controllers/OffersController.java @@ -53,6 +53,10 @@ public class OffersController { private CheckBox cbOutfit; @FXML private CheckBox cbShipyard; + @FXML + private CheckBox cbMediumLandpad; + @FXML + private CheckBox cbLargeLandpad; private final List sells = FXCollections.observableArrayList(); private final List buys = FXCollections.observableArrayList(); @@ -146,6 +150,8 @@ public class OffersController { cbRepair.setSelected(station.hasService(SERVICE_TYPE.REPAIR)); cbOutfit.setSelected(station.hasService(SERVICE_TYPE.OUTFIT)); cbShipyard.setSelected(station.hasService(SERVICE_TYPE.SHIPYARD)); + cbMediumLandpad.setSelected(station.hasService(SERVICE_TYPE.MEDIUM_LANDPAD)); + cbLargeLandpad.setSelected(station.hasService(SERVICE_TYPE.LARGE_LANDPAD)); sells.addAll(station.getSells()); buys.addAll(station.getBuys()); } diff --git a/client/src/main/java/ru/trader/controllers/StationEditorController.java b/client/src/main/java/ru/trader/controllers/StationEditorController.java index c48fea7..c3e3ed1 100644 --- a/client/src/main/java/ru/trader/controllers/StationEditorController.java +++ b/client/src/main/java/ru/trader/controllers/StationEditorController.java @@ -58,6 +58,10 @@ public class StationEditorController { private CheckBox cbOutfit; @FXML private CheckBox cbShipyard; + @FXML + private CheckBox cbMediumLandpad; + @FXML + private CheckBox cbLargeLandpad; private StationUpdater updater; @@ -102,6 +106,8 @@ public class StationEditorController { cbRepair.selectedProperty().bindBidirectional(updater.serviceProperty(SERVICE_TYPE.REPAIR)); cbOutfit.selectedProperty().bindBidirectional(updater.serviceProperty(SERVICE_TYPE.OUTFIT)); cbShipyard.selectedProperty().bindBidirectional(updater.serviceProperty(SERVICE_TYPE.SHIPYARD)); + cbMediumLandpad.selectedProperty().bindBidirectional(updater.serviceProperty(SERVICE_TYPE.MEDIUM_LANDPAD)); + cbLargeLandpad.selectedProperty().bindBidirectional(updater.serviceProperty(SERVICE_TYPE.LARGE_LANDPAD)); items.setItems(updater.getOffers()); } diff --git a/client/src/main/resources/lang/locale.properties b/client/src/main/resources/lang/locale.properties index 54302c1..aa72907 100644 --- a/client/src/main/resources/lang/locale.properties +++ b/client/src/main/resources/lang/locale.properties @@ -4,6 +4,8 @@ services.REPAIR=Repair services.MUNITION=Munition services.OUTFIT=Outfit services.SHIPYARD=Shipyard +services.MEDIUM_LANDPAD=Medium Pad +services.LARGE_LANDPAD=Large Pad item.group.chemicals=Chemicals item.explosives=Explosives item.hydrogenfuel=Hydrogen Fuels diff --git a/client/src/main/resources/view/offers.fxml b/client/src/main/resources/view/offers.fxml index 79e18a7..a439ee3 100644 --- a/client/src/main/resources/view/offers.fxml +++ b/client/src/main/resources/view/offers.fxml @@ -43,13 +43,15 @@