Archived
0

add prototype route tracker

This commit is contained in:
iMoHax
2015-10-13 16:52:32 +03:00
parent 341d11b68c
commit c8aa9e9474
6 changed files with 269 additions and 24 deletions

View File

@@ -10,10 +10,38 @@
<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ru.trader.controllers.RouteTrackController"
spacing="4" >
<fx:include fx:id="missions" source="missions.fxml"/>
<HBox>
<ListView fx:id="missionsList" />
<Button prefWidth="30" onAction="#removeMission"><graphic><Glyph text="FontAwesome|MINUS"/></graphic></Button>
<Button prefWidth="80" text="Добавить" onAction="#addMissions" />
</HBox>
<HBox fx:id="track" minHeight="100"/>
<ToggleButton minWidth="30" onAction="#toggleEdit">
<graphic><Glyph text="FontAwesome|EDIT"/></graphic>
</ToggleButton>
<StackPane>
<VBox fx:id="editGroup">
<fx:include fx:id="missions" source="missions.fxml"/>
<HBox>
<ListView fx:id="addMissionsList" maxHeight="150"/>
<Button prefWidth="30" onAction="#removeMission"><graphic><Glyph text="FontAwesome|MINUS"/></graphic></Button>
<Button prefWidth="80" text="Добавить" onAction="#addMissions" />
</HBox>
</VBox>
<VBox fx:id="infoGroup">
<HBox><Label text="Система:" /><Label fx:id="system" /></HBox>
<HBox><Label text="Станция:" /><Label fx:id="station" /></HBox>
<HBox><Label text="Время:" /><Label fx:id="time" /></HBox>
<HBox fx:id="refuelGroup"><Label text="Заправить:" /><Label fx:id="refuel" /></HBox>
<HBox fx:id="ordersGroup" maxHeight="120">
<VBox>
<Label text="Продать:" />
<ListView fx:id="sellOrders"/>
</VBox>
<VBox>
<Label text="Купить:" />
<ListView fx:id="buyOrders"/>
</VBox>
</HBox>
<VBox fx:id="missionsGroup" maxHeight="120">
<Label text="Сдать миссии:" />
<ListView fx:id="missionsList" maxHeight="150"/>
</VBox>
</VBox>
</StackPane>
</VBox>

View File

@@ -55,47 +55,52 @@ HBox.fields-group hbox-margin{
/* Path */
.path {
.route, .path {
-fx-alignment: center-left;
-fx-spacing: 5px;
-fx-fill-height: true;
}
.path-system {
.route-system, .path-system {
-fx-alignment: center-left;
-fx-text-alignment: left;
}
.path-text {
.route-text, .path-text {
-fx-alignment: center;
}
.path-system-text {
.route-system-text, .path-system-text {
}
.path-station-text {
.route-station-text, .path-station-text {
-fx-font-size: 8pt;
}
.path-icons {
.route-icons, .path-icons {
-fx-alignment: center;
}
.path-track {
.route-track, .path-track {
-fx-padding: 0 8;
-fx-alignment: center;
}
.path-track .glyph-font {
.route-track .glyph-font, .path-track .glyph-font {
-fx-font-family: FontAwesome;
-fx-font-size: 16pt;
}
.path-track-text {
.route-track-text, .path-track-text {
-fx-font-size: 7pt;
}
.route-active {
-fx-border-style: solid;
-fx-background-color: lightskyblue;
}
.path-pane {
-fx-padding: 10;
-fx-alignment: center-left;