mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Work on the Market Interface (feel free to test it out so far, can't purchase items through the UI yet), More on UITable (needs work on headers still).
* Tables can now have headers (the layouts will require some more work before read to be used formally). * Finished Market offers display, Item details display, and Item statistics display. * Added getSelectedWidget to UIRadioGroup class. Market TODO: * Create buy/sell offer. * Purchase sale offer or accept purchase offer. * More item filtering features (weapons, types, depot only, vocation, etc). * Item searching feature. * View your offers (history/current). * UI touch ups and optimizations.
This commit is contained in:
@@ -1,10 +1,55 @@
|
||||
DetailsTableRow < TableRow
|
||||
font: verdana-11px-monochrome
|
||||
background-color: alpha
|
||||
focusable: true
|
||||
color: #cccccc
|
||||
height: 45
|
||||
focusable: false
|
||||
padding: 2
|
||||
|
||||
DetailsTableColumn < TableColumn
|
||||
font: verdana-11px-monochrome
|
||||
background-color: alpha
|
||||
text-offset: 5 2
|
||||
color: #cccccc
|
||||
width: 80
|
||||
focusable: false
|
||||
|
||||
Panel
|
||||
background-color: #22283399
|
||||
margin: 1
|
||||
|
||||
Label
|
||||
!text: tr('Item Details')
|
||||
Table
|
||||
id: detailsTable
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
margin-top: 45
|
||||
margin-left: 3
|
||||
anchors.right: parent.right
|
||||
margin-top: 55
|
||||
margin-left: 6
|
||||
margin-bottom: 45
|
||||
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
|
@@ -1,7 +1,6 @@
|
||||
OfferTableRow < TableRow
|
||||
font: verdana-11px-monochrome
|
||||
background-color: alpha
|
||||
text-offset: 2 0
|
||||
focusable: true
|
||||
color: #cccccc
|
||||
height: 15
|
||||
@@ -11,11 +10,30 @@ OfferTableRow < TableRow
|
||||
color: #ffffff
|
||||
|
||||
OfferTableColumn < TableColumn
|
||||
font: verdana-11px-monochrome
|
||||
background-color: alpha
|
||||
text-offset: 5 0
|
||||
color: #cccccc
|
||||
width: 80
|
||||
focusable: false
|
||||
|
||||
OfferTableHeaderRow < TableHeaderRow
|
||||
font: verdana-11px-monochrome
|
||||
focusable: false
|
||||
color: #cccccc
|
||||
height: 20
|
||||
|
||||
OfferTableHeaderColumn < TableHeaderColumn
|
||||
font: verdana-11px-monochrome
|
||||
background-color: alpha
|
||||
text-offset: 2 0
|
||||
color: #cccccc
|
||||
width: 80
|
||||
focusable: true
|
||||
|
||||
$focus:
|
||||
background-color: #294f6d
|
||||
color: #ffffff
|
||||
|
||||
Panel
|
||||
background-color: #22283399
|
||||
@@ -50,15 +68,25 @@ Panel
|
||||
background-color: #222833
|
||||
border-width: 1
|
||||
border-color: #191f27
|
||||
vertical-scrollbar: sellingTableScrollBar
|
||||
table-data: sellingTableData
|
||||
row-style: OfferTableRow
|
||||
column-style: OfferTableColumn
|
||||
header-row-style: OfferTableHeaderRow
|
||||
header-column-style: OfferTableHeaderColumn
|
||||
|
||||
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: prev.top
|
||||
anchors.bottom: prev.bottom
|
||||
anchors.right: prev.right
|
||||
anchors.top: sellingTable.top
|
||||
anchors.bottom: sellingTable.bottom
|
||||
anchors.right: sellingTable.right
|
||||
step: 28
|
||||
pixels-scroll: true
|
||||
|
||||
@@ -92,14 +120,23 @@ Panel
|
||||
background-color: #222833
|
||||
border-width: 1
|
||||
border-color: #191f27
|
||||
vertical-scrollbar: buyingTableScrollBar
|
||||
table-data: buyingTableData
|
||||
row-style: OfferTableRow
|
||||
column-style: OfferTableColumn
|
||||
header-row-style: OfferTableHeaderRow
|
||||
header-column-style: OfferTableHeaderColumn
|
||||
|
||||
TableData
|
||||
id: buyingTableData
|
||||
anchors.bottom: buyingTable.bottom
|
||||
anchors.left: buyingTable.left
|
||||
anchors.right: buyingTable.right
|
||||
vertical-scrollbar: buyingTableScrollBar
|
||||
|
||||
VerticalScrollBar
|
||||
id: buyingTableScrollBar
|
||||
anchors.top: prev.top
|
||||
anchors.bottom: prev.bottom
|
||||
anchors.right: prev.right
|
||||
anchors.top: buyingTable.top
|
||||
anchors.bottom: buyingTable.bottom
|
||||
anchors.right: buyingTable.right
|
||||
step: 28
|
||||
pixels-scroll: true
|
@@ -1,10 +1,100 @@
|
||||
StatsTableRow < TableRow
|
||||
font: verdana-11px-monochrome
|
||||
background-color: alpha
|
||||
focusable: true
|
||||
color: #cccccc
|
||||
height: 20
|
||||
focusable: false
|
||||
|
||||
StatsTableColumn < TableColumn
|
||||
font: verdana-11px-monochrome
|
||||
background-color: alpha
|
||||
text-offset: 5 0
|
||||
color: #cccccc
|
||||
width: 80
|
||||
focusable: false
|
||||
|
||||
Panel
|
||||
background-color: #22283399
|
||||
margin: 1
|
||||
|
||||
Label
|
||||
!text: tr('Item Stats')
|
||||
!text: tr('Buy Offers')
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
margin-top: 45
|
||||
margin-left: 3
|
||||
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')
|
||||
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: 122
|
||||
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
|
Reference in New Issue
Block a user