fix items, map, protocls

This commit is contained in:
ErikasKontenis
2022-04-09 13:45:27 +03:00
parent 18bd56496e
commit 396464b940
933 changed files with 215171 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
AmountWindow < MainWindow
id: amountWindow
!text: tr('Amount')
size: 270 90
Item
id: item
text-offset: 0 22
text-align: right
anchors.left: parent.left
anchors.top: parent.top
margin-top: 2
margin-left: -4
focusable: false
virtual: true
HorizontalScrollBar
id: amountScrollBar
anchors.left: prev.right
anchors.right: parent.right
anchors.top: prev.top
margin-left: 10
margin-top: -2
Button
id: buttonCancel
!text: tr('Cancel')
height: 20
anchors.left: amountScrollBar.horizontalCenter
anchors.right: amountScrollBar.right
anchors.top: amountScrollBar.bottom
margin-top: 7
focusable: false
Button
id: buttonOk
!text: tr('Ok')
height: 20
anchors.right: amountScrollBar.horizontalCenter
anchors.left: amountScrollBar.left
anchors.top: amountScrollBar.bottom
margin-top: 7
margin-right: 6
focusable: false

View File

@@ -0,0 +1,13 @@
MarketButtonBox < ButtonBoxRounded
font: verdana-11px-rounded
color: #f55e5ebb
size: 106 22
text-offset: 0 2
text-align: center
$checked:
color: white
$disabled:
color: #666666ff
image-color: #ffffff88

View File

@@ -0,0 +1,18 @@
MarketComboBoxPopupMenuButton < ComboBoxPopupMenuButton
height: 18
font: verdana-11px-rounded
text-offset: 2 2
MarketComboBoxPopupMenuSeparator < UIWidget
image-source: /images/combobox_rounded
image-repeated: true
image-clip: 1 59 89 1
height: 1
phantom: true
MarketComboBoxPopupMenu < ComboBoxPopupMenu
MarketComboBox < ComboBox
font: verdana-11px-rounded
size: 86 20
text-offset: 3 2

View File

@@ -0,0 +1,44 @@
MarketTabBar < TabBar
MarketTabBarPanel < TabBarPanel
MarketTabBarButton < TabBarButton
size: 20 25
font: verdana-11px-rounded
text-offset: 0 2
$!first:
anchors.left: prev.right
margin-left: 0
$hover !checked:
color: #ffffff
$checked:
color: #ffffff
$on !checked:
color: #f55e5e
MarketRightTabBar < TabBar
MarketRightTabBarPanel < TabBarPanel
MarketRightTabBarButton < TabBarButton
size: 20 25
font: verdana-11px-rounded
text-offset: 0 2
color: #929292
$first:
anchors.right: parent.right
anchors.left: none
$!first:
anchors.right: prev.left
anchors.left: none
$hover !checked:
color: #ffffff
$checked:
color: #ffffff
$on !checked:
color: #f55e5e

View File

@@ -0,0 +1,188 @@
Panel
MarketTabBar
id: leftTabBar
width: 107
height:25
anchors.top: parent.top
anchors.left: parent.left
Panel
id: leftTabContent
width: 180
anchors.top: prev.bottom
anchors.left: prev.left
anchors.bottom: parent.bottom
border-width: 1
border-color: #000000
MarketRightTabBar
id: rightTabBar
width: 166
height:25
anchors.top: parent.top
anchors.right: parent.right
Panel
id: rightTabContent
anchors.top: prev.bottom
anchors.left: leftTabContent.right
anchors.right: prev.right
anchors.bottom: parent.bottom
margin-left:3
border-width: 1
border-color: #000000
UIItem
id: selectedItem
phantom: true
size: 34 34
padding: 1
font: verdana-11px-rounded
border-color: white
anchors.top: rightTabBar.bottom
anchors.left: rightTabContent.left
margin-top: 6
margin-left: 6
Label
id: nameLabel
!text: tr('No item selected.')
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: prev.top
anchors.left: prev.right
anchors.right: parent.right
margin-left: 5
Label
id: createLabel
!text: tr('Create New Offer')
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: rightTabBar.top
anchors.left: rightTabContent.left
margin-top: 355
margin-left: 6
Label
id: offerTypeLabel
!text: tr('Offer Type') .. ':'
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: prev.bottom
anchors.left: prev.left
margin-top: 7
MarketComboBox
id: offerTypeComboBox
!text: tr('Please Select')
anchors.top: prev.bottom
anchors.left: createLabel.left
margin-top: 3
width: 105
$disabled:
color: #aaaaaa44
Label
id: totalPriceLabel
!text: tr('Total Price') .. ':'
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: offerTypeLabel.top
anchors.left: prev.right
margin-left: 7
SpinBox
id: totalPriceEdit
anchors.top: prev.bottom
anchors.left: prev.left
margin-top: 3
width: 75
minimum: 1
maximum: 999999999
focusable: true
$disabled:
color: #aaaaaa44
Label
id: piecePriceLabel
!text: tr('Piece Price') .. ':'
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: offerTypeLabel.top
anchors.left: prev.right
margin-left: 7
SpinBox
id: piecePriceEdit
anchors.top: prev.bottom
anchors.left: prev.left
margin-top: 3
width: 75
minimum: 1
maximum: 999999999
focusable: true
$disabled:
color: #aaaaaa44
Label
id: amountLabel
!text: tr('Amount') .. ':'
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: offerTypeLabel.top
anchors.left: amountEdit.left
PreviousButton
id: prevAmountButton
anchors.verticalCenter: piecePriceEdit.verticalCenter
anchors.left: piecePriceEdit.right
margin-left: 7
@onClick: Market.decrementAmount()
SpinBox
id: amountEdit
anchors.top: prev.top
anchors.left: prev.right
margin-left: 3
width: 55
buttons: false
minimum: 1
maximum: 64000
focusable: true
NextButton
id: nextAmountButton
anchors.verticalCenter: piecePriceEdit.verticalCenter
anchors.left: prev.right
margin-left: 3
@onClick: Market.incrementAmount()
Button
id: createOfferButton
!text: tr('Create Offer')
anchors.verticalCenter: prev.verticalCenter
anchors.left: prev.right
margin-left: 7
width: 90
CheckBox
id: anonymousCheckBox
!text: tr('Anonymous')
anchors.left: prev.left
anchors.bottom: prev.top
margin-bottom: 6
@onSetup: self:setChecked(false)
height: 16
width: 90
Label
id: feeLabel
font: verdana-11px-rounded
anchors.top: createOfferButton.bottom
anchors.left: createOfferButton.left
margin: 2

View File

@@ -0,0 +1,158 @@
MarketItemBox < UICheckBox
id: itemBox
border-width: 1
border-color: #000000
color: #aaaaaa
text-align: center
Item
id: item
phantom: true
virtual: true
text-offset: 0 22
text-align: right
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
margin: 1
$checked:
border-color: #ffffff
$hover !checked:
border-color: #aaaaaa
$disabled:
image-color: #ffffff88
color: #aaaaaa88
Panel
background-color: #22283399
margin: 1
MarketComboBox
id: categoryComboBox
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
margin-top: 3
margin-right: 3
margin-left: 3
MarketComboBox
id: subCategoryComboBox
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
margin-top: 3
margin-right: 3
margin-left: 3
$disabled:
color: #aaaaaa44
MarketButtonBox
id: filterLevel
&default: false
!text: tr('Level')
!tooltip: tr('Filter list to match your level')
anchors.top: prev.bottom
anchors.left: parent.left
margin-top: 3
margin-right: 3
margin-left: 3
width: 40
height: 20
MarketButtonBox
id: filterVocation
&default: false
!text: tr('Voc.')
!tooltip: tr('Filter list to match your vocation')
anchors.top: prev.top
anchors.left: prev.right
margin-right: 3
margin-left: 3
width: 34
height: 20
MarketComboBox
id: slotComboBox
anchors.top: prev.top
anchors.left: prev.right
anchors.right: parent.right
margin-right: 3
margin-left: 3
$disabled:
color: #aaaaaa44
MarketButtonBox
id: filterDepot
&default: false
!text: tr('Show Depot Only')
!tooltip: tr('Show your depot items only')
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
margin-top: 6
margin-right: 3
margin-left: 3
Panel
id: itemsContainer
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-top: 10
margin-left: 3
margin-bottom: 30
margin-right: 3
VerticalScrollBar
id: itemsPanelListScrollBar
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
step: 28
pixels-scroll: true
ScrollablePanel
id: itemsPanel
anchors.left: parent.left
anchors.right: prev.left
anchors.top: parent.top
anchors.bottom: parent.bottom
vertical-scrollbar: itemsPanelListScrollBar
layout:
type: grid
cell-size: 36 36
flow: true
auto-spacing: true
Label
!text: tr('Find') .. ':'
anchors.top: prev.bottom
anchors.left: prev.left
margin-top: 9
width: 30
font: verdana-11px-rounded
text-offset: 0 2
TextEdit
id: searchEdit
anchors.verticalCenter: prev.verticalCenter
anchors.left: prev.right
margin-left: 3
width: 113
@onTextChange: Market.updateCurrentItems()
MarketButtonBox
id: filterSearchAll
&default: true
!text: tr('All')
!tooltip: tr('Search all items')
anchors.verticalCenter: prev.verticalCenter
anchors.left: prev.right
anchors.right: itemsContainer.right
margin-left: 3

View File

@@ -0,0 +1,56 @@
DetailsTableRow < TableRow
font: verdana-11px-monochrome
focusable: true
color: #cccccc
height: 45
focusable: false
padding: 2
even-background-color: alpha
odd-background-color: alpha
DetailsTableColumn < TableColumn
font: verdana-11px-monochrome
background-color: alpha
text-offset: 2 2
color: #cccccc
width: 100
focusable: false
Panel
background-color: #22283399
margin: 1
Table
id: detailsTable
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
margin-top: 63
margin-left: 6
margin-bottom: 85
margin-right: 6
padding: 1
focusable: false
background-color: #222833
border-width: 1
border-color: #191f27
table-data: detailsTableData
row-style: DetailsTableRow
column-style: DetailsTableColumn
TableData
id: detailsTableData
anchors.top: detailsTable.top
anchors.bottom: detailsTable.bottom
anchors.left: detailsTable.left
anchors.right: detailsTable.right
vertical-scrollbar: detailsTableScrollBar
VerticalScrollBar
id: detailsTableScrollBar
anchors.top: detailsTable.top
anchors.bottom: detailsTable.bottom
anchors.right: detailsTable.right
step: 28
pixels-scroll: true

View File

@@ -0,0 +1,176 @@
OfferTableRow < TableRow
font: verdana-11px-monochrome
color: #cccccc
height: 15
OfferTableColumn < TableColumn
font: verdana-11px-monochrome
background-color: alpha
text-offset: 5 0
color: #cccccc
width: 80
OfferTableWarningColumn < OfferTableColumn
color: #e03d3d
OfferTableHeaderRow < TableHeaderRow
font: verdana-11px-monochrome
color: #cccccc
height: 20
OfferTableHeaderColumn < SortableTableHeaderColumn
font: verdana-11px-monochrome
text-offset: 2 0
color: #cccccc
$focus:
background-color: #294f6d
color: #ffffff
Panel
background-color: #22283399
margin: 1
Button
id: buyButton
!text: tr('Buy Now')
anchors.right: parent.right
anchors.bottom: next.bottom
margin-right: 6
width: 80
enabled: false
Label
!text: tr('Sell Offers')
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: parent.top
anchors.left: parent.left
margin-top: 44
margin-left: 6
Table
id: sellingTable
anchors.top: prev.bottom
anchors.left: prev.left
anchors.right: parent.right
height: 115
margin-top: 5
margin-bottom: 5
margin-right: 6
padding: 1
focusable: false
background-color: #222833
border-width: 1
border-color: #191f27
table-data: sellingTableData
row-style: OfferTableRow
column-style: OfferTableColumn
header-column-style: false
header-row-style: false
OfferTableHeaderRow
id: header
OfferTableHeaderColumn
!text: tr('Buyer Name')
width: 100
OfferTableHeaderColumn
!text: tr('Amount')
width: 60
OfferTableHeaderColumn
!text: tr('Total Price')
width: 90
OfferTableHeaderColumn
!text: tr('Piece Price')
width: 80
OfferTableHeaderColumn
!text: tr('Auction End')
width: 120
TableData
id: sellingTableData
anchors.bottom: sellingTable.bottom
anchors.left: sellingTable.left
anchors.right: sellingTable.right
margin-top: 2
vertical-scrollbar: sellingTableScrollBar
VerticalScrollBar
id: sellingTableScrollBar
anchors.top: sellingTable.top
anchors.bottom: sellingTable.bottom
anchors.right: sellingTable.right
step: 28
pixels-scroll: true
Button
id: sellButton
!text: tr('Sell Now')
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 5
margin-right: 6
width: 80
enabled: false
Label
!text: tr('Buy Offers')
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: prev.top
anchors.left: parent.left
margin-top: 9
margin-left: 6
Table
id: buyingTable
anchors.top: prev.bottom
anchors.left: prev.left
anchors.right: parent.right
margin-top: 5
margin-bottom: 5
margin-right: 6
height: 115
padding: 1
focusable: false
background-color: #222833
border-width: 1
border-color: #191f27
table-data: buyingTableData
row-style: OfferTableRow
column-style: OfferTableColumn
header-column-style: false
header-row-style: false
OfferTableHeaderRow
id: header
OfferTableHeaderColumn
!text: tr('Seller Name')
width: 100
OfferTableHeaderColumn
!text: tr('Amount')
width: 60
OfferTableHeaderColumn
!text: tr('Total Price')
width: 90
OfferTableHeaderColumn
!text: tr('Piece Price')
width: 80
OfferTableHeaderColumn
!text: tr('Auction End')
width: 120
TableData
id: buyingTableData
anchors.bottom: buyingTable.bottom
anchors.left: buyingTable.left
anchors.right: buyingTable.right
vertical-scrollbar: buyingTableScrollBar
VerticalScrollBar
id: buyingTableScrollBar
anchors.top: buyingTable.top
anchors.bottom: buyingTable.bottom
anchors.right: buyingTable.right
step: 28
pixels-scroll: true

View File

@@ -0,0 +1,103 @@
StatsTableRow < TableRow
font: verdana-11px-monochrome
focusable: true
color: #cccccc
height: 20
focusable: false
StatsTableColumn < TableColumn
font: verdana-11px-monochrome
background-color: alpha
text-offset: 5 3
color: #cccccc
width: 110
focusable: false
Panel
background-color: #22283399
margin: 1
Label
!text: tr('Buy Offers')
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
margin-top: 44
margin-left: 6
Table
id: buyStatsTable
anchors.top: prev.bottom
anchors.left: prev.left
anchors.right: prev.right
margin-top: 6
margin-bottom: 5
margin-right: 6
height: 121
padding: 1
focusable: false
background-color: #222833
border-width: 1
border-color: #191f27
table-data: buyStatsTableData
row-style: StatsTableRow
column-style: StatsTableColumn
TableData
id: buyStatsTableData
anchors.top: buyStatsTable.top
anchors.bottom: buyStatsTable.bottom
anchors.left: buyStatsTable.left
anchors.right: buyStatsTable.right
vertical-scrollbar: buyStatsTableScrollBar
VerticalScrollBar
id: buyStatsTableScrollBar
anchors.top: buyStatsTable.top
anchors.bottom: buyStatsTable.bottom
anchors.right: buyStatsTable.right
step: 28
pixels-scroll: true
Label
!text: tr('Sell Offers')
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: buyStatsTable.bottom
anchors.left: parent.left
margin-top: 9
margin-left: 6
Table
id: sellStatsTable
anchors.top: prev.bottom
anchors.left: buyStatsTable.left
anchors.right: buyStatsTable.right
margin-top: 6
height: 112
padding: 1
focusable: false
background-color: #222833
border-width: 1
border-color: #191f27
table-data: sellStatsTableData
row-style: StatsTableRow
column-style: StatsTableColumn
TableData
id: sellStatsTableData
anchors.top: sellStatsTable.top
anchors.bottom: sellStatsTable.bottom
anchors.left: sellStatsTable.left
anchors.right: sellStatsTable.right
vertical-scrollbar: sellStatsTableScrollBar
VerticalScrollBar
id: sellStatsTableScrollBar
anchors.top: sellStatsTable.top
anchors.bottom: sellStatsTable.bottom
anchors.right: sellStatsTable.right
step: 28
pixels-scroll: true

View File

@@ -0,0 +1,16 @@
Panel
background-color: #22283399
margin: 1
Label
!text: tr('Reserved for more functionality later.')
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
margin-top: 6
margin-left: 6
margin-right: 6
font: verdana-11px-rounded
text-offset: 0 2
height: 50
text-wrap: true

View File

@@ -0,0 +1,16 @@
Panel
MarketTabBar
id: offersTabBar
width: 187
height:25
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
Panel
id: offersTabContent
anchors.top: prev.bottom
anchors.left: prev.left
anchors.right: prev.right
anchors.bottom: parent.bottom

View File

@@ -0,0 +1,178 @@
OfferTableRow < TableRow
font: verdana-11px-monochrome
color: #cccccc
height: 15
OfferTableColumn < TableColumn
font: verdana-11px-monochrome
background-color: alpha
text-offset: 5 0
color: #cccccc
width: 80
OfferTableWarningColumn < OfferTableColumn
color: #e03d3d
OfferTableHeaderRow < TableHeaderRow
font: verdana-11px-monochrome
color: #cccccc
height: 20
OfferTableHeaderColumn < SortableTableHeaderColumn
font: verdana-11px-monochrome
text-offset: 2 0
color: #cccccc
$focus:
background-color: #294f6d
color: #ffffff
Panel
background-color: #22283399
margin: 1
Button
id: sellCancelButton
!text: tr('Cancel')
anchors.right: parent.right
anchors.bottom: next.bottom
margin-right: 6
width: 80
enabled: false
Label
!text: tr('Sell Offers')
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: parent.top
anchors.left: parent.left
margin-top: 20
margin-left: 6
Table
id: mySellingTable
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
height: 160
margin-top: 5
margin-bottom: 5
margin-left: 6
margin-right: 6
padding: 1
focusable: false
background-color: #222833
border-width: 1
border-color: #191f27
table-data: mySellingTableData
row-style: OfferTableRow
column-style: OfferTableColumn
header-column-style: false
header-row-style: false
OfferTableHeaderRow
id: header
OfferTableHeaderColumn
!text: tr('Item Name')
width: 160
OfferTableHeaderColumn
!text: tr('Total Price')
width: 125
OfferTableHeaderColumn
!text: tr('Piece Price')
width: 125
OfferTableHeaderColumn
!text: tr('Amount')
width: 100
OfferTableHeaderColumn
!text: tr('Auction End')
width: 120
TableData
id: mySellingTableData
anchors.bottom: mySellingTable.bottom
anchors.left: mySellingTable.left
anchors.right: mySellingTable.right
margin-top: 2
vertical-scrollbar: mySellingTableScrollBar
VerticalScrollBar
id: mySellingTableScrollBar
anchors.top: mySellingTable.top
anchors.bottom: mySellingTable.bottom
anchors.right: mySellingTable.right
step: 28
pixels-scroll: true
Label
!text: tr('Buy Offers')
font: verdana-11px-rounded
text-offset: 0 2
anchors.top: prev.bottom
anchors.left: parent.left
margin-top: 20
margin-left: 6
Button
id: buyCancelButton
!text: tr('Cancel')
anchors.right: parent.right
anchors.bottom: prev.bottom
margin-top: 5
margin-right: 6
width: 80
enabled: false
Table
id: myBuyingTable
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
margin-top: 5
margin-bottom: 5
margin-left: 6
margin-right: 6
height: 160
padding: 1
focusable: false
background-color: #222833
border-width: 1
border-color: #191f27
table-data: myBuyingTableData
row-style: OfferTableRow
column-style: OfferTableColumn
header-column-style: false
header-row-style: false
OfferTableHeaderRow
id: header
OfferTableHeaderColumn
!text: tr('Item Name')
width: 160
OfferTableHeaderColumn
!text: tr('Total Price')
width: 125
OfferTableHeaderColumn
!text: tr('Piece Price')
width: 125
OfferTableHeaderColumn
!text: tr('Amount')
width: 100
OfferTableHeaderColumn
!text: tr('Auction End')
width: 120
TableData
id: myBuyingTableData
anchors.bottom: myBuyingTable.bottom
anchors.left: myBuyingTable.left
anchors.right: myBuyingTable.right
vertical-scrollbar: myBuyingTableScrollBar
VerticalScrollBar
id: myBuyingTableScrollBar
anchors.top: myBuyingTable.top
anchors.bottom: myBuyingTable.bottom
anchors.right: myBuyingTable.right
step: 28
pixels-scroll: true

View File

@@ -0,0 +1,9 @@
Panel
background-color: #22283399
margin: 1
Label
!text: tr('Item Offers')
anchors.top: parent.top
anchors.left: parent.left
margin-left: 10

View File

@@ -0,0 +1,61 @@
Panel
background-color: #22283399
margin: 1
Table
id: myHistoryTable
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
height: 390
margin-top: 5
margin-bottom: 5
margin-left: 8
margin-right: 8
padding: 1
focusable: false
background-color: #222833
border-width: 1
border-color: #191f27
table-data: myHistoryTableData
row-style: OfferTableRow
column-style: OfferTableColumn
header-column-style: false
header-row-style: false
OfferTableHeaderRow
id: header
OfferTableHeaderColumn
!text: tr('Action')
width: 60
OfferTableHeaderColumn
!text: tr('Item Name')
width: 140
OfferTableHeaderColumn
!text: tr('Total Price')
width: 115
OfferTableHeaderColumn
!text: tr('Piece Price')
width: 115
OfferTableHeaderColumn
!text: tr('Amount')
width: 75
OfferTableHeaderColumn
!text: tr('Auction End')
width: 120
TableData
id: myHistoryTableData
anchors.bottom: myHistoryTable.bottom
anchors.left: myHistoryTable.left
anchors.right: myHistoryTable.right
margin-top: 2
vertical-scrollbar: myHistoryTableScrollBar
VerticalScrollBar
id: myHistoryTableScrollBar
anchors.top: myHistoryTable.top
anchors.bottom: myHistoryTable.bottom
anchors.right: myHistoryTable.right
step: 28
pixels-scroll: true