mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
More market work (getting close to completion)
* Can now create market offers with fully working UI. * All filtering is now completed (just need to finish word searching). * Added some user friendly features to offer selections and item displays (show amount in depot). * Some more UI ascetics. * Some other minor market fixes. TODO: * Finishing applying changes for latest module updates by edubart. * Finish buying/selling existing offers. * Word searching items. * Offer management. * Full cipsoft tibia testing.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
MarketButtonBox < UICheckBox
|
||||
font: verdana-11px-antialised
|
||||
font: verdana-11px-rounded
|
||||
color: #f55e5ebb
|
||||
size: 106 22
|
||||
text-offset: 0 0
|
||||
text-offset: 0 2
|
||||
text-align: center
|
||||
image-source: /images/tabbutton_rounded.png
|
||||
image-clip: 0 0 20 20
|
||||
|
@@ -1,8 +1,8 @@
|
||||
MarketComboBoxPopupMenuButton < UIButton
|
||||
height: 18
|
||||
font: verdana-11px-antialised
|
||||
font: verdana-11px-rounded
|
||||
text-align: left
|
||||
text-offset: 2 0
|
||||
text-offset: 2 2
|
||||
color: #aaaaaa
|
||||
background-color: alpha
|
||||
|
||||
@@ -28,10 +28,10 @@ MarketComboBoxPopupMenu < UIPopupMenu
|
||||
padding: 1
|
||||
|
||||
MarketComboBox < UIComboBox
|
||||
font: verdana-11px-antialised
|
||||
font: verdana-11px-rounded
|
||||
color: #aaaaaa
|
||||
size: 86 20
|
||||
text-offset: 3 0
|
||||
text-offset: 3 2
|
||||
text-align: left
|
||||
image-source: /images/combobox_rounded.png
|
||||
image-border: 1
|
||||
|
@@ -4,6 +4,8 @@ MarketTabBarPanel < Panel
|
||||
MarketTabBarButton < UIButton
|
||||
size: 20 25
|
||||
image-source: /images/tabbutton_square.png
|
||||
font: verdana-11px-rounded
|
||||
text-offset: 0 2
|
||||
image-clip: 0 0 20 20
|
||||
image-border: 2
|
||||
icon-color: white
|
||||
|
@@ -18,7 +18,7 @@ Panel
|
||||
|
||||
MarketTabBar
|
||||
id: rightTabBar
|
||||
width: 157
|
||||
width: 166
|
||||
height:25
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
@@ -48,7 +48,142 @@ Panel
|
||||
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: 99999999
|
||||
|
||||
$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: 99999999
|
||||
|
||||
$disabled:
|
||||
color: #aaaaaa44
|
||||
|
||||
Label
|
||||
id: amountLabel
|
||||
!text: tr('Amount:')
|
||||
font: verdana-11px-rounded
|
||||
text-offset: 0 2
|
||||
anchors.top: offerTypeLabel.top
|
||||
anchors.left: prev.right
|
||||
margin-left: 32
|
||||
|
||||
PreviousButton
|
||||
id: prevAmountButton
|
||||
anchors.verticalCenter: piecePriceEdit.verticalCenter
|
||||
anchors.left: piecePriceEdit.right
|
||||
margin-left: 7
|
||||
@onClick: Market.decrementAmount()
|
||||
|
||||
SpinBox
|
||||
id: amountEdit
|
||||
anchors.verticalCenter: prev.verticalCenter
|
||||
anchors.left: prev.right
|
||||
margin-left: 3
|
||||
width: 55
|
||||
minimum: 1
|
||||
maximum: 999999
|
||||
|
||||
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
|
||||
//@onClick: g_game.closeNpcTrade()
|
||||
|
||||
CheckBox
|
||||
id: anonymousCheckBox
|
||||
!text: tr('Anonymous')
|
||||
anchors.left: prev.left
|
||||
anchors.bottom: prev.top
|
||||
margin-bottom: 6
|
||||
@onSetup: self:setChecked(false)
|
||||
height: 16
|
||||
width: 70
|
||||
|
||||
Label
|
||||
id: feeLabel
|
||||
!text: tr('')
|
||||
font: verdana-11px-rounded
|
||||
text-offset: 0 2
|
||||
anchors.top: createOfferButton.bottom
|
||||
anchors.right: parent.right
|
||||
margin-right: 8
|
||||
margin-top: 3
|
@@ -1,14 +1,15 @@
|
||||
MarketItemBox < UICheckBox
|
||||
id: itemBox
|
||||
border-width: 1
|
||||
border-color: #000000
|
||||
color: #aaaaaa
|
||||
text-align: center
|
||||
text-offset: 0 20
|
||||
@onCheckChange: Market.onItemBoxChecked(self)
|
||||
|
||||
Item
|
||||
id: item
|
||||
phantom: true
|
||||
text-offset: 0 13
|
||||
text-align: right
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin: 1
|
||||
|
@@ -25,9 +25,9 @@ Panel
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
margin-top: 55
|
||||
margin-top: 63
|
||||
margin-left: 6
|
||||
margin-bottom: 75
|
||||
margin-bottom: 85
|
||||
margin-right: 6
|
||||
padding: 1
|
||||
focusable: false
|
||||
|
@@ -49,6 +49,8 @@ Panel
|
||||
|
||||
Label
|
||||
!text: tr('Sell Offers')
|
||||
font: verdana-11px-rounded
|
||||
text-offset: 0 2
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
margin-top: 44
|
||||
@@ -59,7 +61,7 @@ Panel
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: prev.left
|
||||
anchors.right: parent.right
|
||||
height: 120
|
||||
height: 115
|
||||
margin-top: 5
|
||||
margin-bottom: 5
|
||||
margin-right: 6
|
||||
@@ -101,6 +103,8 @@ Panel
|
||||
|
||||
Label
|
||||
!text: tr('Buy Offers')
|
||||
font: verdana-11px-rounded
|
||||
text-offset: 0 2
|
||||
anchors.top: prev.top
|
||||
anchors.left: parent.left
|
||||
margin-top: 9
|
||||
@@ -114,7 +118,7 @@ Panel
|
||||
margin-top: 5
|
||||
margin-bottom: 5
|
||||
margin-right: 6
|
||||
height: 120
|
||||
height: 115
|
||||
padding: 1
|
||||
focusable: false
|
||||
background-color: #222833
|
||||
|
@@ -20,6 +20,8 @@ Panel
|
||||
|
||||
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
|
||||
@@ -62,6 +64,8 @@ Panel
|
||||
|
||||
Label
|
||||
!text: tr('Sell Offers')
|
||||
font: verdana-11px-rounded
|
||||
text-offset: 0 2
|
||||
anchors.top: buyStatsTable.bottom
|
||||
anchors.left: parent.left
|
||||
margin-top: 9
|
||||
@@ -73,7 +77,7 @@ Panel
|
||||
anchors.left: buyStatsTable.left
|
||||
anchors.right: buyStatsTable.right
|
||||
margin-top: 6
|
||||
height: 122
|
||||
height: 112
|
||||
padding: 1
|
||||
focusable: false
|
||||
background-color: #222833
|
||||
|
Reference in New Issue
Block a user