- modify station editor
- add system editor - show services in station tab
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
services.MARKET=Commodities
|
||||
services.BLACK_MARKET=Black Market
|
||||
services.REPAIR=Repair
|
||||
services.MUNITION=Munition
|
||||
services.OUTFIT=Outfit
|
||||
services.SHIPYARD=Shipyard
|
||||
item.explosives=Explosives
|
||||
item.hydrogenfuel=Hydrogen Fuels
|
||||
item.mineraloil=Mineral Oil
|
||||
|
||||
@@ -72,6 +72,8 @@ oEditor.sell=Sell:
|
||||
oEditor.buy=Buy:
|
||||
|
||||
# offers.fxml
|
||||
offers.text.distance=Distance:
|
||||
offers.text.services=Services:
|
||||
offers.pane.sell=Selling commodities
|
||||
offers.pane.buy=Buying commodities
|
||||
|
||||
@@ -84,6 +86,9 @@ topOrders.title=TOP orders
|
||||
# vEditor.fxml
|
||||
vEditor.title.add=Add Station
|
||||
vEditor.title.edit=Edit Station
|
||||
vEditor.text.distance=Distance (Ls)
|
||||
vEditor.text.services=Services
|
||||
|
||||
|
||||
# paths.fxml
|
||||
paths.title=Available routes
|
||||
@@ -112,3 +117,8 @@ settings.emdn.auto=Auto update (sec.):
|
||||
settings.performance=Performance
|
||||
settings.performance.segmentSize=Segment size (0 - auto):
|
||||
settings.performance.limit=Routes count:
|
||||
|
||||
# sEditor.fxml
|
||||
sEditor.title=Star systems editor
|
||||
sEditor.text.orientates=Landmarks:
|
||||
sEditor.table.distance=Distance (LY)
|
||||
|
||||
@@ -74,6 +74,8 @@ oEditor.sell=\u041F\u0440\u043E\u0434\u0430\u0436\u0430:
|
||||
oEditor.buy=\u041F\u043E\u043A\u0443\u043F\u043A\u0430:
|
||||
|
||||
# offers.fxml
|
||||
offers.text.distance=\u0414\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u044F:
|
||||
offers.text.services=\u0421\u0435\u0440\u0432\u0438\u0441\u044B:
|
||||
offers.pane.sell=\u041F\u0440\u043E\u0434\u0430\u0432\u0430\u0435\u043C\u044B\u0435 \u0442\u043E\u0432\u0430\u0440\u044B
|
||||
offers.pane.buy=\u041F\u043E\u043A\u0443\u043F\u0430\u0435\u043C\u044B\u0435 \u0442\u043E\u0432\u0430\u0440\u044B
|
||||
|
||||
@@ -86,6 +88,8 @@ topOrders.title=TOP \u0437\u0430\u043A\u0430\u0437\u043E\u0432
|
||||
# vEditor.fxml
|
||||
vEditor.title.add=\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438
|
||||
vEditor.title.edit=\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438
|
||||
vEditor.text.distance=\u0414\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u044F (Ls)
|
||||
vEditor.text.services=\u0421\u0435\u0440\u0432\u0438\u0441\u044B
|
||||
|
||||
# paths.fxml
|
||||
paths.title=\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u043C\u0430\u0440\u0448\u0440\u0443\u0442\u044B
|
||||
@@ -115,3 +119,7 @@ settings.performance=\u041F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u044
|
||||
settings.performance.segmentSize=\u041C\u0430\u0440\u0448\u0440\u0443\u0442\u043E\u0432 \u0432 \u0441\u0435\u0433\u043C\u0435\u043D\u0442\u0435 (0 - \u0430\u0432\u0442\u043E):
|
||||
settings.performance.limit=\u041A\u043E\u043B-\u0432\u043E \u043C\u0430\u0440\u0448\u0440\u0443\u0442\u043E\u0432 \u043D\u0430 \u0432\u044B\u0432\u043E\u0434:
|
||||
|
||||
# sEditor.fxml
|
||||
sEditor.title=\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440 \u0437\u0432\u0435\u0437\u0434\u043D\u044B\u0445 \u0441\u0438\u0441\u0442\u0435\u043C
|
||||
sEditor.text.orientates=\u041E\u0440\u0438\u0435\u043D\u0442\u0438\u0440\u044B:
|
||||
sEditor.table.distance=\u0414\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u044F (LY)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<ColumnConstraints fillWidth="true"/>
|
||||
</columnConstraints>
|
||||
|
||||
<TitledPane GridPane.rowSpan="2" text="%market.systems" minWidth="250" prefHeight="510" collapsible="false">
|
||||
<TitledPane GridPane.rowSpan="3" text="%market.systems" minWidth="250" prefHeight="530" collapsible="false">
|
||||
<ListView fx:id="systems">
|
||||
<contextMenu>
|
||||
<ContextMenu>
|
||||
@@ -38,7 +38,23 @@
|
||||
<TitledPane GridPane.columnIndex="1" text="%market.stations" maxHeight="60" collapsible="false">
|
||||
<SegmentedButton fx:id="stationsBar" />
|
||||
</TitledPane>
|
||||
<Accordion GridPane.rowIndex="1" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
|
||||
<TitledPane GridPane.rowIndex="1" GridPane.columnIndex="1" text="" maxHeight="60" collapsible="false">
|
||||
<HBox spacing="4">
|
||||
<Label text="%offers.text.distance"/>
|
||||
<Label fx:id="distance" minWidth="60"/>
|
||||
<Label text="%offers.text.services"/>
|
||||
<HBox spacing="20">
|
||||
<CheckBox fx:id="cbMarket" text="%services.MARKET"/>
|
||||
<CheckBox fx:id="cbBlackMarket" text="%services.BLACK_MARKET"/>
|
||||
<CheckBox fx:id="cbRepair" text="%services.REPAIR"/>
|
||||
<CheckBox fx:id="cbMunition" text="%services.MUNITION"/>
|
||||
<CheckBox fx:id="cbOutfit" text="%services.OUTFIT"/>
|
||||
<CheckBox fx:id="cbShipyard" text="%services.SHIPYARD"/>
|
||||
</HBox>
|
||||
</HBox>
|
||||
|
||||
</TitledPane>
|
||||
<Accordion GridPane.rowIndex="2" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
|
||||
<panes>
|
||||
<TitledPane fx:id="paneSells" animated="false" text="%offers.pane.sell">
|
||||
<TableView fx:id="tblSell" editable="true">
|
||||
|
||||
75
client/src/main/resources/view/sEditor.fxml
Normal file
75
client/src/main/resources/view/sEditor.fxml
Normal file
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<?import javafx.scene.control.cell.PropertyValueFactory?>
|
||||
<?import ru.trader.view.support.cells.PriceCellImpl?>
|
||||
<?import ru.trader.view.support.cells.OfferCellValueImpl?>
|
||||
|
||||
<?import ru.trader.view.support.cells.DoubleCell?>
|
||||
<?import org.controlsfx.glyphfont.Glyph?>
|
||||
<?import org.controlsfx.control.SegmentedButton?>
|
||||
<GridPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
|
||||
fx:controller="ru.trader.controllers.SystemsEditorController" styleClass="dialog"
|
||||
hgap="10" vgap="5" prefHeight="400">
|
||||
|
||||
<columnConstraints>
|
||||
<ColumnConstraints />
|
||||
<ColumnConstraints minWidth="180" />
|
||||
<ColumnConstraints minWidth="180" />
|
||||
<ColumnConstraints minWidth="180" />
|
||||
</columnConstraints>
|
||||
|
||||
<Label text="%sEditor.text.orientates" prefWidth="170" GridPane.rowSpan="2"/>
|
||||
<ComboBox fx:id="system1" prefWidth="160" GridPane.columnIndex="1" />
|
||||
<ComboBox fx:id="system2" prefWidth="160" GridPane.columnIndex="2" />
|
||||
<ComboBox fx:id="system3" prefWidth="160" GridPane.columnIndex="3" />
|
||||
<ComboBox fx:id="system4" prefWidth="160" GridPane.rowIndex="1" GridPane.columnIndex="1" />
|
||||
<ComboBox fx:id="system5" prefWidth="160" GridPane.rowIndex="1" GridPane.columnIndex="2" />
|
||||
<ComboBox fx:id="system6" prefWidth="160" GridPane.rowIndex="1" GridPane.columnIndex="3" />
|
||||
|
||||
<TableView fx:id="tblSystems" editable="true" prefWidth="725.0" GridPane.rowIndex="2" GridPane.columnSpan="4">
|
||||
<columns>
|
||||
<TableColumn fx:id="clnName" minWidth="180.0" text="%market.systems">
|
||||
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="clnX" minWidth="60.0" text="x">
|
||||
<cellValueFactory><PropertyValueFactory property="x"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="clnY" minWidth="60.0" text="y">
|
||||
<cellValueFactory><PropertyValueFactory property="y"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="clnZ" minWidth="60.0" text="z">
|
||||
<cellValueFactory><PropertyValueFactory property="z"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn text="%sEditor.table.distance">
|
||||
<columns>
|
||||
<TableColumn fx:id="clnS1" minWidth="60.0" text="">
|
||||
<cellValueFactory><PropertyValueFactory property="s1"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="clnS2" minWidth="60.0" text="">
|
||||
<cellValueFactory><PropertyValueFactory property="s2"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="clnS3" minWidth="60.0" text="">
|
||||
<cellValueFactory><PropertyValueFactory property="s3"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="clnS4" minWidth="60.0" text="">
|
||||
<cellValueFactory><PropertyValueFactory property="s4"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="clnS5" minWidth="60.0" text="">
|
||||
<cellValueFactory><PropertyValueFactory property="s5"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="clnS6" minWidth="60.0" text="">
|
||||
<cellValueFactory><PropertyValueFactory property="s6"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
</columns>
|
||||
</TableColumn>
|
||||
|
||||
</columns>
|
||||
<columnResizePolicy>
|
||||
<TableView fx:constant="UNCONSTRAINED_RESIZE_POLICY"/>
|
||||
</columnResizePolicy>
|
||||
</TableView>
|
||||
</GridPane>
|
||||
@@ -14,13 +14,22 @@
|
||||
vgap="10" hgap="4">
|
||||
<fx:define><Insets fx:id="hbox_margin" left="10" /></fx:define>
|
||||
<TextField fx:id="name" GridPane.columnSpan="2" alignment="CENTER" />
|
||||
<HBox GridPane.rowIndex="1" GridPane.columnIndex="1" spacing="4" alignment="BASELINE_CENTER">
|
||||
<Label text="x:" HBox.margin="$hbox_margin" />
|
||||
<NumberField fx:id="x" prefWidth="60" />
|
||||
<Label text="z:" HBox.margin="$hbox_margin" />
|
||||
<NumberField fx:id="z" prefWidth="60" />
|
||||
<Label text="y:" HBox.margin="$hbox_margin" />
|
||||
<NumberField fx:id="y" prefWidth="60" />
|
||||
<HBox GridPane.rowIndex="1" GridPane.columnIndex="1" spacing="4">
|
||||
<VBox prefWidth="200" alignment="CENTER">
|
||||
<Label text="%vEditor.text.distance"/>
|
||||
<NumberField fx:id="distance" maxWidth="60" />
|
||||
</VBox>
|
||||
<VBox HBox.hgrow="ALWAYS" alignment="CENTER">
|
||||
<Label text="%vEditor.text.services"/>
|
||||
<TilePane hgap="5" vgap="5" maxWidth="320" tileAlignment="BASELINE_LEFT">
|
||||
<CheckBox fx:id="cbMarket" text="%services.MARKET"/>
|
||||
<CheckBox fx:id="cbBlackMarket" text="%services.BLACK_MARKET"/>
|
||||
<CheckBox fx:id="cbRepair" text="%services.REPAIR"/>
|
||||
<CheckBox fx:id="cbMunition" text="%services.MUNITION"/>
|
||||
<CheckBox fx:id="cbOutfit" text="%services.OUTFIT"/>
|
||||
<CheckBox fx:id="cbShipyard" text="%services.SHIPYARD"/>
|
||||
</TilePane>
|
||||
</VBox>
|
||||
</HBox>
|
||||
<VBox GridPane.rowIndex="2" alignment="CENTER" spacing="10">
|
||||
<Button prefWidth="30" onAction="#up"><graphic><Glyph text="FontAwesome|ARROW_UP"/></graphic></Button>
|
||||
@@ -28,7 +37,7 @@
|
||||
<Button prefWidth="30" onAction="#add"><graphic><Glyph text="FontAwesome|PLUS"/></graphic></Button>
|
||||
<Button prefWidth="30" onAction="#updateFromEMDN"><graphic><Glyph text="FontAwesome|REFRESH"/></graphic></Button>
|
||||
</VBox>
|
||||
<TableView fx:id="items" prefWidth="395.0" editable="true" GridPane.columnIndex="1" GridPane.rowIndex="2">
|
||||
<TableView fx:id="items" prefWidth="575" editable="true" GridPane.columnIndex="1" GridPane.rowIndex="2">
|
||||
<columns>
|
||||
<TableColumn minWidth="200.0" text="%market.item.name" editable="false">
|
||||
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
|
||||
@@ -39,6 +48,12 @@
|
||||
<TableColumn fx:id="sell" minWidth="90.0" text="%market.offer.buy">
|
||||
<cellValueFactory><PropertyValueFactory property="sprice"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="demand" minWidth="90.0" text="%market.offer.demand">
|
||||
<cellValueFactory><PropertyValueFactory property="demand"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="supply" minWidth="90.0" text="%market.offer.supply">
|
||||
<cellValueFactory><PropertyValueFactory property="supply"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
</columns>
|
||||
</TableView>
|
||||
</GridPane>
|
||||
|
||||
Reference in New Issue
Block a user