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
|
2013-01-10 03:40:16 +01:00
|
|
|
text-offset: 0 30
|
2012-07-26 17:42:15 +02:00
|
|
|
@onCheckChange: modules.game_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
|
2013-01-23 10:23:28 +01:00
|
|
|
image-color: #ffffffff
|
2012-04-30 00:43:23 +02:00
|
|
|
margin-top: 5
|
2012-04-08 22:13:33 +02:00
|
|
|
|
2013-01-23 10:23:28 +01:00
|
|
|
$checked on:
|
2012-04-30 00:43:23 +02:00
|
|
|
border-color: #ffffff
|
2012-04-26 21:54:16 +02:00
|
|
|
|
2013-01-23 10:23:28 +01:00
|
|
|
$!checked:
|
|
|
|
border-color: #000000
|
2012-04-30 00:43:23 +02:00
|
|
|
|
2013-01-23 10:23:28 +01:00
|
|
|
$!on:
|
2012-04-30 00:43:23 +02:00
|
|
|
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-07-30 12:59:08 +02:00
|
|
|
@onEscape: modules.game_npctrade.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
|
2013-01-06 16:04:49 +01:00
|
|
|
step: 24
|
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
|
2013-01-24 12:33:44 +01: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
|
2013-01-24 12:33:44 +01:00
|
|
|
!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
|
2013-01-24 12:33:44 +01: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
|
2013-01-24 17:01:28 +01:00
|
|
|
id: weightDesc
|
2013-01-24 12:33:44 +01: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
|
2013-01-24 17:01:28 +01:00
|
|
|
id: capacityDesc
|
2013-01-24 12:33:44 +01: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-29 11:08:55 +02:00
|
|
|
HorizontalScrollBar
|
|
|
|
id: quantityScroll
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 5
|
|
|
|
margin-left: 5
|
|
|
|
margin-right: 5
|
2013-01-06 16:04:49 +01:00
|
|
|
show-value: true
|
2012-04-29 11:08:55 +02:00
|
|
|
minimum: 1
|
|
|
|
maximum: 100
|
|
|
|
step: 1
|
2012-07-26 17:42:15 +02:00
|
|
|
@onValueChange: modules.game_npctrade.onQuantityValueChange(self:getValue())
|
2012-04-29 11:08:55 +02:00
|
|
|
|
|
|
|
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
|
2013-01-24 12:33:44 +01:00
|
|
|
!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
|
2012-07-26 17:42:15 +02:00
|
|
|
@onTextChange: modules.game_npctrade.onSearchTextChange()
|
2012-04-29 11:08:55 +02:00
|
|
|
|
|
|
|
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
|
2012-07-26 17:42:15 +02:00
|
|
|
@onCheckChange: modules.game_npctrade.onBuyWithBackpackChange()
|
2012-04-29 11:08:55 +02:00
|
|
|
|
|
|
|
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-07-26 17:42:15 +02:00
|
|
|
@onCheckChange: modules.game_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
|
2012-07-26 17:42:15 +02:00
|
|
|
@onCheckChange: modules.game_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
|
2012-07-04 22:36:58 +02:00
|
|
|
checked: true
|
2012-07-26 17:42:15 +02:00
|
|
|
@onCheckChange: modules.game_npctrade.onShowAllItemsChange()
|
2012-04-29 11:08:55 +02:00
|
|
|
|
2013-02-15 19:38:57 +01:00
|
|
|
Button
|
|
|
|
id: sellAllButton
|
|
|
|
!text: tr('Sell All')
|
|
|
|
width: 64
|
|
|
|
anchors.right: next.left
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-right: 10
|
2013-02-20 11:08:03 +01:00
|
|
|
visible: false
|
2013-02-15 19:38:57 +01:00
|
|
|
@onClick: modules.game_npctrade.sellAll()
|
|
|
|
|
2012-04-29 11:08:55 +02:00
|
|
|
Button
|
|
|
|
id: tradeButton
|
|
|
|
!text: tr('Buy')
|
|
|
|
width: 64
|
|
|
|
anchors.right: next.left
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-right: 10
|
2012-07-26 17:42:15 +02:00
|
|
|
@onClick: modules.game_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-07-30 12:59:08 +02:00
|
|
|
@onClick: modules.game_npctrade.closeNpcTrade()
|