Archived
0

implement illegal commodity visualisation

This commit is contained in:
iMoHax
2016-03-14 14:15:35 +03:00
parent 2eef6db53b
commit 01fc65ec94
14 changed files with 270 additions and 9 deletions

View File

@@ -3,8 +3,8 @@
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import ru.trader.view.support.cells.OfferListCell?>
<?import javafx.geometry.Insets?>
<?import ru.trader.view.support.cells.OfferDecoratedListCell?>
<VBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ru.trader.controllers.ItemDescController"
spacing="4" >
@@ -12,10 +12,10 @@
<Label text="%itemDesc.sellers" VBox.margin="$vbox_margin"/>
<ListView fx:id="seller" maxHeight="200.0">
<cellFactory><OfferListCell/></cellFactory>
<cellFactory><OfferDecoratedListCell/></cellFactory>
</ListView>
<Label text="%itemDesc.buyers" VBox.margin="$vbox_margin"/>
<ListView fx:id="buyer" maxHeight="200.0">
<cellFactory><OfferListCell/></cellFactory>
<cellFactory><OfferDecoratedListCell/></cellFactory>
</ListView>
</VBox>

View File

@@ -67,6 +67,7 @@
<panes>
<TitledPane fx:id="paneSells" animated="false" text="%offers.pane.sell">
<TableView fx:id="tblSell" editable="true">
<rowFactory><OfferDecoratedRow /></rowFactory>
<columns>
<TableColumn minWidth="230.0" text="%market.item.name">
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
@@ -115,6 +116,7 @@
</TitledPane>
<TitledPane animated="false" text="%offers.pane.buy">
<TableView fx:id="tblBuy" editable="true">
<rowFactory><OfferDecoratedRow /></rowFactory>
<columns>
<TableColumn minWidth="230.0" text="%market.item.name">
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>

View File

@@ -1,3 +1,11 @@
.illegal_item {
-fx-base: red;
}
.illegal_item .bad .diff {
-fx-fill: white;
}
.good .diff {
-fx-fill: green;
-fx-font-weight: bold;
@@ -204,6 +212,10 @@ HBox.fields-group hbox-margin{
-fx-faint-focus-color: #bb6b0022;
}
#helper .illegal_item {
-fx-base: darkred;
}
.text-small, .text-medium, .text-big {
-fx-font-weight: bold;
}