tibia-client/modules/game_hotkeys/hotkeys_manager.otui

227 lines
5.3 KiB
Plaintext
Raw Normal View History

2012-02-07 04:32:15 +01:00
HotkeyListLabel < UILabel
font: verdana-11px-monochrome
background-color: alpha
text-offset: 2 0
focusable: true
phantom: false
2012-02-07 04:32:15 +01:00
$focus:
background-color: #ffffff22
MainWindow
id: hotkeysWindow
!text: tr('Hotkeys')
size: 340 410
2012-02-07 04:32:15 +01:00
@onEnter: modules.game_hotkeys.ok()
@onEscape: modules.game_hotkeys.reload()
2012-02-07 04:32:15 +01:00
Label
2012-02-07 04:32:15 +01:00
id: currentHotkeysLabel
!text: tr('Current hotkeys:')
2012-02-07 04:32:15 +01:00
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
VerticalScrollBar
id: currentHotkeysScrollBar
height: 150
anchors.top: parent.top
anchors.right: parent.right
step: 14
pixels-scroll: true
2012-02-07 04:32:15 +01:00
TextList
id: currentHotkeys
vertical-scrollbar: currentHotkeysScrollBar
2012-02-07 04:32:15 +01:00
anchors.left: parent.left
anchors.right: prev.left
anchors.top: prev.top
anchors.bottom: prev.bottom
2012-02-07 04:32:15 +01:00
focusable: false
Label
!text: tr('Manage hotkeys:')
2012-02-07 04:32:15 +01:00
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 10
2012-02-07 04:32:15 +01:00
Button
2012-07-27 00:13:47 +02:00
id: addHotkeyButton
!text: tr('Add')
2012-02-07 04:32:15 +01:00
width: 64
anchors.right: next.left
anchors.top: next.top
margin-right: 5
2012-07-27 00:13:47 +02:00
@onClick: modules.game_hotkeys.addHotkey()
2012-02-07 04:32:15 +01:00
Button
2012-07-27 00:13:47 +02:00
id: removeHotkeyButton
!text: tr('Remove')
2012-02-07 04:32:15 +01:00
width: 64
enabled: false
anchors.right: parent.right
anchors.top: currentHotkeys.bottom
margin-top: 8
2012-07-27 00:13:47 +02:00
@onClick: modules.game_hotkeys.removeHotkey()
Label
2012-02-07 04:32:15 +01:00
id: hotKeyTextLabel
!text: tr('Edit hotkey text:')
2012-02-07 04:32:15 +01:00
enable: false
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 10
TextEdit
2012-02-07 04:32:15 +01:00
id: hotkeyText
enabled: false
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 2
2012-07-27 00:13:47 +02:00
@onTextChange: modules.game_hotkeys.onHotkeyTextChange(self:getId(), self:getText())
2012-02-07 04:32:15 +01:00
CheckBox
id: sendAutomatically
!text: tr('Send automatically')
2012-02-07 04:32:15 +01:00
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
enabled:false
margin-top: 5
2012-07-27 00:13:47 +02:00
@onCheckChange: modules.game_hotkeys.setSendAutomatically(self:isChecked())
2012-02-07 04:32:15 +01:00
Item
id: itemPreview
anchors.left: parent.left
anchors.top: prev.bottom
margin-top: 10
virtual: true
2012-02-07 04:32:15 +01:00
Button
id: selectObjectButton
!text: tr('Select object')
2012-02-07 04:32:15 +01:00
width: 128
enabled: false
anchors.left: prev.right
anchors.top: prev.top
margin-left: 10
2012-07-27 00:13:47 +02:00
@onClick: modules.game_hotkeys.startChooseItem()
2012-02-07 04:32:15 +01:00
Button
id: clearObjectButton
!text: tr('Clear object')
2012-02-07 04:32:15 +01:00
width: 128
enabled: false
anchors.left: prev.left
anchors.right: prev.right
anchors.top: prev.bottom
margin-top: 2
2012-07-27 00:13:47 +02:00
@onClick: modules.game_hotkeys.clearObject()
2012-02-07 04:32:15 +01:00
ButtonBox
id: useOnSelf
!text: tr('Use on yourself')
2012-02-07 04:32:15 +01:00
width: 128
enabled: false
anchors.left: selectObjectButton.right
anchors.right: parent.right
anchors.top: selectObjectButton.top
checked: false
margin-left: 10
2012-07-27 00:13:47 +02:00
@onCheckChange: modules.game_hotkeys.changeUseType(HOTKEY_MANAGER_USEONSELF, self:isChecked())
2012-02-07 04:32:15 +01:00
ButtonBox
id: useOnTarget
!text: tr('Use on target')
2012-02-07 04:32:15 +01:00
width: 128
enabled: false
anchors.left: prev.left
anchors.right: parent.right
anchors.top: prev.bottom
checked: false
margin-top: 2
2012-07-27 00:13:47 +02:00
@onCheckChange: modules.game_hotkeys.changeUseType(HOTKEY_MANAGER_USEONTARGET, self:isChecked())
2012-02-07 04:32:15 +01:00
ButtonBox
id: useWith
!text: tr('With crosshair')
2012-02-07 04:32:15 +01:00
width: 128
enabled: false
anchors.left: prev.left
anchors.right: parent.right
anchors.top: prev.bottom
checked: false
margin-top: 2
2012-07-27 00:13:47 +02:00
@onCheckChange: modules.game_hotkeys.changeUseType(HOTKEY_MANAGER_USEWITH, self:isChecked())
2012-08-20 23:58:43 +02:00
HorizontalSeparator
id: separator
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: next.top
margin-bottom: 10
2012-02-07 04:32:15 +01:00
Button
!text: tr('Ok')
width: 64
anchors.right: next.left
anchors.bottom: parent.bottom
@onClick: modules.game_hotkeys.ok()
margin-right: 10
Button
!text: tr('Cancel')
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
@onClick: modules.game_hotkeys.reload()
HotkeyAssignWindow < MainWindow
id: assignWindow
!text: tr('Button Assign')
size: 360 150
@onEscape: self:destroy()
Label
!text: tr('Please, press the key you wish to add onto your hotkeys manager')
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
text-auto-resize: true
text-align: left
Label
id: comboPreview
!text: tr('Current hotkey to add: %s', 'none')
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: prev.bottom
margin-top: 10
text-auto-resize: true
HorizontalSeparator
id: separator
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: next.top
margin-bottom: 10
Button
id: addButton
!text: tr('Add')
width: 64
anchors.right: next.left
anchors.bottom: parent.bottom
@onClick: modules.game_hotkeys.addKeyCombo(self:getParent(), self:getParent():getChildById('comboPreview').keyCombo)
margin-right: 10
Button
!text: tr('Cancel')
2012-02-07 04:32:15 +01:00
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
@onClick: self:getParent():destroy()