tibia-client/modules/game_npctrade/npctrade.otui

267 lines
5.6 KiB
Plaintext
Raw Normal View History

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
NPCItemBox < UICheckBox
2012-04-08 22:13:33 +02:00
border-width: 1
border-color: #000000
2012-04-30 00:43:23 +02:00
color: #aaaaaa
text-align: center
text-offset: 0 20
@onCheckChange: NPCTrade.onItemBoxChecked(self)
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
$checked:
2012-04-30 00:43:23 +02:00
border-color: #ffffff
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
!text: tr('NPC Trade')
size: 550 515
@onEscape: g_game.closeNpcTrade()
2012-04-08 22:13:33 +02:00
TabButton
id: buyTab
!tooltip: tr("List of items that you're able to buy")
!text: tr('Buy')
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
!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-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
margin-top: 10
2012-04-08 22:13:33 +02:00
VerticalScrollBar
id: itemsPanelListScrollBar
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
step: 16
2012-04-08 22:13:33 +02:00
pixels-scroll: true
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
margin-left: 5
margin-right: 5
2012-04-08 22:13:33 +02:00
layout:
type: grid
cell-size: 160 90
flow: true
auto-spacing: true
2012-04-08 22:13:33 +02:00
FlatPanel
id: setupPanel
height: 140
2012-04-08 22:13:33 +02:00
enabled: false
anchors.left: parent.left
anchors.right: parent.horizontalCenter
2012-04-08 22:13:33 +02:00
anchors.top: prev.bottom
margin-top: 10
margin-right: 5
2012-05-10 16:04:11 +02:00
image-color: #ffffff88
2012-04-08 22:13:33 +02:00
Label
!text: tr('Name:')
2012-04-08 22:13:33 +02:00
anchors.left: parent.left
anchors.top: parent.top
margin-top: 5
margin-left: 5
width: 85
2012-04-08 22:13:33 +02:00
NPCOfferLabel
id: name
Label
!text: tr('Price:')
2012-04-08 22:13:33 +02:00
anchors.left: parent.left
anchors.top: prev.bottom
margin-top: 5
margin-left: 5
width: 85
NPCOfferLabel
id: price
2012-04-08 22:13:33 +02:00
Label
!text: tr('Your Money:')
2012-04-08 22:13:33 +02:00
anchors.left: parent.left
anchors.top: prev.bottom
margin-top: 5
margin-left: 5
width: 85
2012-04-08 22:13:33 +02:00
NPCOfferLabel
id: money
2012-04-08 22:13:33 +02:00
Label
!text: tr('Weight:')
2012-04-08 22:13:33 +02:00
anchors.left: parent.left
anchors.top: prev.bottom
margin-top: 5
margin-left: 5
width: 85
2012-04-08 22:13:33 +02:00
NPCOfferLabel
id: weight
2012-04-08 22:13:33 +02:00
Label
!text: tr('Your Capacity:')
2012-04-08 22:13:33 +02:00
anchors.left: parent.left
anchors.top: prev.bottom
margin-top: 5
margin-left: 5
width: 85
2012-04-08 22:13:33 +02:00
NPCOfferLabel
id: capacity
2012-04-08 22:13:33 +02:00
Label
!text: tr('Quantity:')
2012-04-08 22:13:33 +02:00
anchors.left: parent.left
anchors.top: prev.bottom
margin-top: 5
margin-left: 5
width: 85
2012-04-08 22:13:33 +02:00
NPCOfferLabel
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-08 22:13:33 +02:00
Label
id: searchLabel
!text: tr('Search:')
2012-04-08 22:13:33 +02:00
anchors.left: parent.left
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
anchors.left: parent.left
anchors.right: parent.right
margin-left: 5
2012-04-08 22:13:33 +02:00
margin-top: 5
@onCheckChange: NPCTrade.onIgnoreCapacityChange()
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()
CheckBox
id: showAllItems
!text: tr('Show all items')
2012-04-08 22:13:33 +02:00
anchors.top: prev.bottom
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-08 22:13:33 +02:00
Button
!text: tr('Close')
2012-04-08 22:13:33 +02:00
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
@onClick: g_game.closeNpcTrade()