2012-04-08 22:13:33 +02:00
|
|
|
NPCOfferLabel < Label
|
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.top: prev.top
|
|
|
|
margin-left: 5
|
|
|
|
text-auto-resize: true
|
|
|
|
|
2012-04-26 21:54:16 +02:00
|
|
|
NPCItemBox < UICheckBox
|
2012-04-08 22:13:33 +02:00
|
|
|
border-width: 1
|
2012-04-30 23:57:17 +02:00
|
|
|
border-color: #000000
|
2012-04-30 00:43:23 +02:00
|
|
|
color: #aaaaaa
|
|
|
|
text-align: center
|
|
|
|
text-offset: 0 20
|
2012-04-29 11:08:55 +02:00
|
|
|
@onCheckChange: NPCTrade.onItemBoxChecked(self)
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
Item
|
|
|
|
id: item
|
|
|
|
phantom: true
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2012-04-30 00:43:23 +02:00
|
|
|
margin-top: 5
|
2012-04-08 22:13:33 +02:00
|
|
|
|
2012-04-30 08:34:29 +02:00
|
|
|
$checked:
|
2012-04-30 00:43:23 +02:00
|
|
|
border-color: #ffffff
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
$hover !checked:
|
2012-04-30 00:43:23 +02:00
|
|
|
border-color: #aaaaaa
|
|
|
|
|
|
|
|
$disabled:
|
|
|
|
image-color: #ffffff88
|
|
|
|
color: #aaaaaa88
|
2012-04-08 22:13:33 +02:00
|
|
|
|
|
|
|
MainWindow
|
|
|
|
id: npcWindow
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('NPC Trade')
|
2012-04-29 11:08:55 +02:00
|
|
|
size: 550 515
|
2012-04-30 01:06:23 +02:00
|
|
|
@onEscape: g_game.closeNpcTrade()
|
2012-04-08 22:13:33 +02:00
|
|
|
|
|
|
|
TabButton
|
|
|
|
id: buyTab
|
2012-04-26 21:54:16 +02:00
|
|
|
!tooltip: tr("List of items that you're able to buy")
|
|
|
|
!text: tr('Buy')
|
2012-04-09 23:27:25 +02:00
|
|
|
checked: true
|
|
|
|
on: true
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.horizontalCenter
|
|
|
|
anchors.top: parent.top
|
|
|
|
margin-right: 5
|
|
|
|
margin-top: 5
|
|
|
|
|
|
|
|
TabButton
|
|
|
|
id: sellTab
|
2012-04-26 21:54:16 +02:00
|
|
|
!tooltip: tr("List of items that you're able to sell")
|
|
|
|
!text: tr('Sell')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.horizontalCenter
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: parent.top
|
|
|
|
margin-left: 5
|
|
|
|
margin-top: 5
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-06-19 10:46:49 +02:00
|
|
|
FlatPanel
|
2012-04-08 22:13:33 +02:00
|
|
|
height: 250
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-top: 10
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
VerticalScrollBar
|
|
|
|
id: itemsPanelListScrollBar
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.right: parent.right
|
2012-04-29 11:08:55 +02:00
|
|
|
step: 16
|
2012-04-08 22:13:33 +02:00
|
|
|
pixels-scroll: true
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-29 11:08:55 +02:00
|
|
|
ScrollablePanel
|
2012-04-08 22:13:33 +02:00
|
|
|
id: itemsPanel
|
|
|
|
height: 250
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: prev.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
vertical-scrollbar: itemsPanelListScrollBar
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-left: 5
|
|
|
|
margin-right: 5
|
2012-04-08 22:13:33 +02:00
|
|
|
layout:
|
|
|
|
type: grid
|
|
|
|
cell-size: 160 90
|
|
|
|
flow: true
|
2012-04-30 23:57:17 +02:00
|
|
|
auto-spacing: true
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
FlatPanel
|
|
|
|
id: setupPanel
|
2012-04-29 11:08:55 +02:00
|
|
|
height: 140
|
2012-04-08 22:13:33 +02:00
|
|
|
enabled: false
|
|
|
|
anchors.left: parent.left
|
2012-04-29 11:08:55 +02:00
|
|
|
anchors.right: parent.horizontalCenter
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.top: prev.bottom
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-top: 10
|
|
|
|
margin-right: 5
|
2012-05-10 16:04:11 +02:00
|
|
|
image-color: #ffffff88
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
Label
|
2012-04-29 11:08:55 +02:00
|
|
|
!text: tr('Name:')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
margin-top: 5
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-left: 5
|
|
|
|
width: 85
|
2012-04-08 22:13:33 +02:00
|
|
|
|
|
|
|
NPCOfferLabel
|
2012-04-29 11:08:55 +02:00
|
|
|
id: name
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-29 11:08:55 +02:00
|
|
|
Label
|
|
|
|
!text: tr('Price:')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: prev.bottom
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-top: 5
|
|
|
|
margin-left: 5
|
|
|
|
width: 85
|
|
|
|
|
|
|
|
NPCOfferLabel
|
|
|
|
id: price
|
2012-04-08 22:13:33 +02:00
|
|
|
|
|
|
|
Label
|
2012-04-29 11:08:55 +02:00
|
|
|
!text: tr('Your Money:')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 5
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-left: 5
|
|
|
|
width: 85
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
NPCOfferLabel
|
2012-04-29 11:08:55 +02:00
|
|
|
id: money
|
2012-04-08 22:13:33 +02:00
|
|
|
|
|
|
|
Label
|
2012-04-29 11:08:55 +02:00
|
|
|
!text: tr('Weight:')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 5
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-left: 5
|
|
|
|
width: 85
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
NPCOfferLabel
|
2012-04-29 11:08:55 +02:00
|
|
|
id: weight
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
Label
|
2012-04-29 11:08:55 +02:00
|
|
|
!text: tr('Your Capacity:')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 5
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-left: 5
|
|
|
|
width: 85
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
NPCOfferLabel
|
2012-04-29 11:08:55 +02:00
|
|
|
id: capacity
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
Label
|
2012-04-29 11:08:55 +02:00
|
|
|
!text: tr('Quantity:')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 5
|
2012-04-29 11:08:55 +02:00
|
|
|
margin-left: 5
|
|
|
|
width: 85
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
NPCOfferLabel
|
2012-04-29 11:08:55 +02:00
|
|
|
id: quantity
|
|
|
|
|
|
|
|
HorizontalScrollBar
|
|
|
|
id: quantityScroll
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 5
|
|
|
|
margin-left: 5
|
|
|
|
margin-right: 5
|
|
|
|
minimum: 1
|
|
|
|
maximum: 100
|
|
|
|
step: 1
|
|
|
|
@onValueChange: NPCTrade.onQuantityValueChange(self:getValue())
|
|
|
|
|
|
|
|
FlatPanel
|
|
|
|
id: buyOptions
|
|
|
|
height: 140
|
|
|
|
anchors.top: prev.top
|
|
|
|
anchors.left: parent.horizontalCenter
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-left: 5
|
2012-05-10 16:04:11 +02:00
|
|
|
image-color: #ffffff88
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
Label
|
2012-04-29 11:08:55 +02:00
|
|
|
id: searchLabel
|
|
|
|
!text: tr('Search:')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.left: parent.left
|
2012-04-29 11:08:55 +02:00
|
|
|
anchors.top: parent.top
|
|
|
|
text-auto-resize: true
|
|
|
|
margin-top: 7
|
|
|
|
margin-left: 5
|
|
|
|
|
|
|
|
TextEdit
|
|
|
|
id: searchText
|
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.top: prev.top
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-top: -2
|
|
|
|
margin-left: 5
|
|
|
|
margin-right: 5
|
|
|
|
@onTextChange: NPCTrade.onSearchTextChange()
|
|
|
|
|
|
|
|
CheckBox
|
|
|
|
id: buyWithBackpack
|
|
|
|
!text: tr('Buy with backpack')
|
|
|
|
anchors.top: searchText.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-left: 5
|
|
|
|
margin-top: 5
|
|
|
|
@onCheckChange: NPCTrade.onBuyWithBackpackChange()
|
|
|
|
|
|
|
|
CheckBox
|
|
|
|
id: ignoreCapacity
|
|
|
|
!text: tr('Ignore capacity')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.top: prev.bottom
|
2012-04-29 11:08:55 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-left: 5
|
2012-04-08 22:13:33 +02:00
|
|
|
margin-top: 5
|
2012-04-29 11:08:55 +02:00
|
|
|
@onCheckChange: NPCTrade.onIgnoreCapacityChange()
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-29 11:08:55 +02:00
|
|
|
CheckBox
|
|
|
|
id: ignoreEquipped
|
|
|
|
!text: tr('Ignore equipped')
|
|
|
|
anchors.top: searchText.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-left: 5
|
|
|
|
margin-top: 5
|
|
|
|
visible: false
|
|
|
|
checked: true
|
|
|
|
@onCheckChange: NPCTrade.onIgnoreEquippedChange()
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-29 11:08:55 +02:00
|
|
|
CheckBox
|
|
|
|
id: showAllItems
|
|
|
|
!text: tr('Show all items')
|
2012-04-08 22:13:33 +02:00
|
|
|
anchors.top: prev.bottom
|
2012-04-29 11:08:55 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
margin-left: 5
|
|
|
|
margin-top: 5
|
|
|
|
visible: false
|
|
|
|
@onCheckChange: NPCTrade.onShowAllItemsChange()
|
|
|
|
|
|
|
|
Button
|
|
|
|
id: tradeButton
|
|
|
|
!text: tr('Buy')
|
|
|
|
width: 64
|
|
|
|
anchors.right: next.left
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-right: 10
|
|
|
|
@onClick: NPCTrade.onTradeClick()
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2012-04-08 22:13:33 +02:00
|
|
|
Button
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Close')
|
2012-04-08 22:13:33 +02:00
|
|
|
width: 64
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
2012-04-30 01:06:23 +02:00
|
|
|
@onClick: g_game.closeNpcTrade()
|