add size of landpad in services
This commit is contained in:
@@ -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<OfferModel> sells = FXCollections.observableArrayList();
|
||||
private final List<OfferModel> 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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user