fix icons
This commit is contained in:
@@ -46,7 +46,7 @@ public class RouteNode {
|
|||||||
p = p.getNext();
|
p = p.getNext();
|
||||||
if (cargo == null && p.getBest() != null){
|
if (cargo == null && p.getBest() != null){
|
||||||
cargo = p.getBest();
|
cargo = p.getBest();
|
||||||
icons.getChildren().add(Glyph.create("FontAwesome|UPLOAD_ALT"));
|
icons.getChildren().add(Glyph.create("FontAwesome|UPLOAD"));
|
||||||
}
|
}
|
||||||
if (p.isRefill()) icons.getChildren().add(Glyph.create("FontAwesome|REFRESH"));
|
if (p.isRefill()) icons.getChildren().add(Glyph.create("FontAwesome|REFRESH"));
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ public class RouteNode {
|
|||||||
if (cargo != null && cargo.isBuyer(p.get())){
|
if (cargo != null && cargo.isBuyer(p.get())){
|
||||||
v.getChildren().add(new Text(String.format(" (%+.0f) ", cargo.getProfit())));
|
v.getChildren().add(new Text(String.format(" (%+.0f) ", cargo.getProfit())));
|
||||||
cargo = null;
|
cargo = null;
|
||||||
icons.getChildren().add(Glyph.create("FontAwesome|DOWNLOAD_ALT"));
|
icons.getChildren().add(Glyph.create("FontAwesome|DOWNLOAD"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node.getChildren().addAll(v, icons);
|
node.getChildren().addAll(v, icons);
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class EditOfferCell extends TextFieldCell<StationUpdater.FakeOffer, Doubl
|
|||||||
Text diff = new Text(String.format(" (%+.0f)", d));
|
Text diff = new Text(String.format(" (%+.0f)", d));
|
||||||
hBox.getChildren().add(diff);
|
hBox.getChildren().add(diff);
|
||||||
}
|
}
|
||||||
Glyph glyph = Glyph.create("FontAwesome|REMOVE");
|
Glyph glyph = Glyph.create("FontAwesome|TIMES");
|
||||||
glyph.addEventFilter(MouseEvent.MOUSE_CLICKED, (e) -> {
|
glyph.addEventFilter(MouseEvent.MOUSE_CLICKED, (e) -> {
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
if (isSell) {
|
if (isSell) {
|
||||||
|
|||||||
Reference in New Issue
Block a user