Archived
0

modify helper screen

This commit is contained in:
iMoHax
2015-10-09 14:17:10 +03:00
parent 0dcabd50a3
commit fd85de72c6
5 changed files with 20 additions and 38 deletions

View File

@@ -187,11 +187,6 @@ public class HelperController {
} }
} }
@FXML
private void pause(){
}
@FXML @FXML
private void previous(){ private void previous(){
int index = route.getCurrentEntry(); int index = route.getCurrentEntry();

View File

@@ -84,7 +84,6 @@ public class RouteSearchController {
RouteModel route = path.get(); RouteModel route = path.get();
route.addAll(0, missionsList.getItems()); route.addAll(0, missionsList.getItems());
profile.setRoute(route); profile.setRoute(route);
Screeners.toggleHelper();
} }
}); });
} }

View File

@@ -279,7 +279,6 @@ public class RouterController {
if (path.isPresent()){ if (path.isPresent()){
orders.addAll(path.get().getOrders()); orders.addAll(path.get().getOrders());
addRouteToPath(path.get()); addRouteToPath(path.get());
Screeners.toggleHelper();
} }
}); });
} }

View File

@@ -9,49 +9,38 @@
<?import org.controlsfx.glyphfont.Glyph?> <?import org.controlsfx.glyphfont.Glyph?>
<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" <VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ru.trader.controllers.HelperController" fx:controller="ru.trader.controllers.HelperController"
spacing="4" > spacing="4" maxWidth="160">
<HBox><Label text="Система:" /><Label fx:id="system" /></HBox> <HBox><Label text="Система:" /><Label fx:id="system" /></HBox>
<HBox><Label text="Станция:" /><Label fx:id="station" /></HBox> <HBox><Label text="Станция:" /><Label fx:id="station" /></HBox>
<HBox><Label text="Время:" /><Label fx:id="time" /></HBox> <HBox><Label text="Время:" /><Label fx:id="time" /></HBox>
<HBox fx:id="refuelGroup"><Label text="Заправить:" /><Label fx:id="refuel" /></HBox> <HBox fx:id="refuelGroup"><Label text="Заправить:" /><Label fx:id="refuel" /></HBox>
<HBox fx:id="ordersGroup" maxHeight="100"> <VBox fx:id="ordersGroup" maxHeight="240">
<VBox> <Label text="Продать:" />
<Label text="Продать:" /> <ListView fx:id="sellOrders"/>
<ListView fx:id="sellOrders"/> <Label text="Купить:" />
</VBox> <ListView fx:id="buyOrders"/>
<VBox> </VBox>
<Label text="Купить:" /> <VBox fx:id="missionsGroup" maxHeight="120">
<ListView fx:id="buyOrders"/>
</VBox>
</HBox>
<VBox fx:id="missionsGroup" maxHeight="100">
<Label text="Сдать миссии:" /> <Label text="Сдать миссии:" />
<ListView fx:id="missions"/> <ListView fx:id="missions"/>
</VBox> </VBox>
<HBox fx:id="infoGroup"> <VBox fx:id="infoGroup" maxHeight="240">
<VBox maxHeight="100"> <Label text="Станции:" />
<Label text="Станции:" /> <ListView fx:id="stations"/>
<ListView fx:id="stations"/> <Label text="Товары:" />
</VBox> <ListView fx:id="sellOffers"/>
<VBox maxHeight="100"> </VBox>
<Label text="Товары:" />
<ListView fx:id="sellOffers"/>
</VBox>
</HBox>
<HBox> <HBox>
<Button prefWidth="30" onAction="#previous"> <Button minWidth="30" onAction="#previous">
<graphic><Glyph text="FontAwesome|ARROW_LEFT"/></graphic> <graphic><Glyph text="FontAwesome|ARROW_LEFT"/></graphic>
</Button> </Button>
<Button prefWidth="30" onAction="#pause"> <Button minWidth="30" onAction="#next">
<graphic><Glyph text="FontAwesome|PAUSE"/></graphic>
</Button>
<Button prefWidth="30" onAction="#next">
<graphic><Glyph text="FontAwesome|ARROW_RIGHT"/></graphic> <graphic><Glyph text="FontAwesome|ARROW_RIGHT"/></graphic>
</Button> </Button>
<Button prefWidth="30" onAction="#copy"> <Button minWidth="30" onAction="#copy">
<graphic><Glyph text="FontAwesome|COPY"/></graphic> <graphic><Glyph text="FontAwesome|COPY"/></graphic>
</Button> </Button>
<ToggleButton fx:id="infoBtn" prefWidth="30"> <ToggleButton fx:id="infoBtn" minWidth="30">
<graphic><Glyph text="FontAwesome|HELP"/></graphic> <graphic><Glyph text="FontAwesome|HELP"/></graphic>
</ToggleButton> </ToggleButton>
</HBox> </HBox>

View File

@@ -38,10 +38,10 @@
<Label fx:id="jumpRange"/> <Label fx:id="jumpRange"/>
</HBox> </HBox>
</StackPane> </StackPane>
<ToggleButton prefWidth="30" onAction="#toggleShipInfo"> <ToggleButton minWidth="30" onAction="#toggleShipInfo">
<graphic><Glyph text="FontAwesome|SPACE_SHUTTLE"/></graphic> <graphic><Glyph text="FontAwesome|SPACE_SHUTTLE"/></graphic>
</ToggleButton> </ToggleButton>
<ToggleButton prefWidth="30" onAction="#toggleHelper"> <ToggleButton minWidth="30" onAction="#toggleHelper">
<graphic><Glyph text="FontAwesome|ROCKET"/></graphic> <graphic><Glyph text="FontAwesome|ROCKET"/></graphic>
</ToggleButton> </ToggleButton>
</HBox> </HBox>