mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Market item filtering improvements and other some minor improvements
* Can now filter market items by vocation, level, slot type, and depot items. * Added new bitwise lib for handling flag operations. * Can now get/set local player vocation/premium (TODO: spell list).
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
MarketButtonBox < UICheckBox
|
||||
font: verdana-11px-antialised
|
||||
color: #f55e5ecc
|
||||
color: #f55e5ebb
|
||||
size: 106 22
|
||||
text-offset: 0 0
|
||||
text-align: center
|
||||
|
@@ -28,7 +28,7 @@ Panel
|
||||
margin: 1
|
||||
|
||||
MarketComboBox
|
||||
id: filterComboBox
|
||||
id: categoryComboBox
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
@@ -37,7 +37,7 @@ Panel
|
||||
margin-left: 3
|
||||
|
||||
MarketComboBox
|
||||
id: weaponComboBox
|
||||
id: subCategoryComboBox
|
||||
anchors.top: prev.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
@@ -45,8 +45,11 @@ Panel
|
||||
margin-right: 3
|
||||
margin-left: 3
|
||||
|
||||
$disabled:
|
||||
color: #aaaaaa44
|
||||
|
||||
MarketButtonBox
|
||||
id: filterMatchLevel
|
||||
id: filterLevel
|
||||
checked: false
|
||||
!text: tr('Level')
|
||||
!tooltip: tr('Filter list to match your level')
|
||||
@@ -57,20 +60,20 @@ Panel
|
||||
margin-left: 3
|
||||
width: 40
|
||||
height: 20
|
||||
//@onClick: Market.filterMatchLevel()
|
||||
@onCheckChange: Market.updateCurrentItems()
|
||||
|
||||
MarketButtonBox
|
||||
id: filterMatchVocation
|
||||
id: filterVocation
|
||||
checked: false
|
||||
!text: tr('Vocation')
|
||||
!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: 60
|
||||
width: 34
|
||||
height: 20
|
||||
//@onClick: Market.filterMatchVocation()
|
||||
@onCheckChange: Market.updateCurrentItems()
|
||||
|
||||
MarketComboBox
|
||||
id: typeComboBox
|
||||
@@ -80,8 +83,11 @@ Panel
|
||||
margin-right: 3
|
||||
margin-left: 3
|
||||
|
||||
$disabled:
|
||||
color: #aaaaaa44
|
||||
|
||||
MarketButtonBox
|
||||
id: showDepotOnly
|
||||
id: filterDepot
|
||||
checked: false
|
||||
!text: tr('Show Depot Only')
|
||||
!tooltip: tr('Show your depot items only')
|
||||
@@ -91,7 +97,7 @@ Panel
|
||||
margin-top: 6
|
||||
margin-right: 3
|
||||
margin-left: 3
|
||||
//@onClick: Market.setDisplayDepot()
|
||||
@onCheckChange: Market.updateCurrentItems()
|
||||
|
||||
Panel
|
||||
anchors.top: prev.bottom
|
||||
|
@@ -12,7 +12,7 @@ DetailsTableColumn < TableColumn
|
||||
background-color: alpha
|
||||
text-offset: 5 2
|
||||
color: #cccccc
|
||||
width: 80
|
||||
width: 100
|
||||
focusable: false
|
||||
|
||||
Panel
|
||||
@@ -27,7 +27,7 @@ Panel
|
||||
anchors.right: parent.right
|
||||
margin-top: 55
|
||||
margin-left: 6
|
||||
margin-bottom: 45
|
||||
margin-bottom: 75
|
||||
margin-right: 6
|
||||
padding: 1
|
||||
focusable: false
|
||||
|
@@ -11,7 +11,7 @@ StatsTableColumn < TableColumn
|
||||
background-color: alpha
|
||||
text-offset: 5 0
|
||||
color: #cccccc
|
||||
width: 80
|
||||
width: 110
|
||||
focusable: false
|
||||
|
||||
Panel
|
||||
|
Reference in New Issue
Block a user