More modules fixes

This commit is contained in:
Eduardo Bart
2012-07-26 19:13:47 -03:00
parent 5f1e58c138
commit d2b85bdba8
7 changed files with 43 additions and 38 deletions

View File

@@ -13,8 +13,8 @@ MainWindow
!text: tr('Hotkeys')
size: 340 460
@onEnter: hide()
@onEscape: hide()
@onEnter: modules.game_hotkeys.hide()
@onEscape: modules.game_hotkeys.hide()
Label
id: currentHotkeysLabel
@@ -50,23 +50,23 @@ MainWindow
margin-top: 10
Button
id: addHotkey
id: addHotkeyButton
!text: tr('Add')
width: 64
anchors.left: parent.left
anchors.top: prev.bottom
margin-top: 2
@onClick: addHotkey()
@onClick: modules.game_hotkeys.addHotkey()
Button
id: removeHotkey
id: removeHotkeyButton
!text: tr('Remove')
width: 64
enabled: false
anchors.left: prev.right
anchors.top: prev.top
margin-left: 10
@onClick: removeHotkey()
@onClick: modules.game_hotkeys.removeHotkey()
Label
id: hotKeyTextLabel
@@ -84,7 +84,7 @@ MainWindow
anchors.right: parent.right
anchors.top: prev.bottom
margin-bottom: 2
@onTextChange: onHotkeyTextChange(self:getId(), self:getText())
@onTextChange: modules.game_hotkeys.onHotkeyTextChange(self:getId(), self:getText())
CheckBox
id: sendAutomatically
@@ -94,7 +94,7 @@ MainWindow
anchors.top: prev.bottom
enabled:false
margin-top: 10
@onCheckChange: setSendAutomatically(self:isChecked())
@onCheckChange: modules.game_hotkeys.setSendAutomatically(self:isChecked())
Item
id: itemPreview
@@ -111,7 +111,7 @@ MainWindow
anchors.left: prev.right
anchors.top: prev.top
margin-left: 10
@onClick: startChooseItem()
@onClick: modules.game_hotkeys.startChooseItem()
Button
id: clearObjectButton
@@ -122,7 +122,7 @@ MainWindow
anchors.right: prev.right
anchors.top: prev.bottom
margin-top: 2
@onClick: clearObject()
@onClick: modules.game_hotkeys.clearObject()
ButtonBox
id: useOnSelf
@@ -134,7 +134,7 @@ MainWindow
anchors.top: selectObjectButton.top
checked: false
margin-left: 10
@onCheckChange: changeUseType(HOTKEY_MANAGER_USEONSELF, self:isChecked())
@onCheckChange: modules.game_hotkeys.changeUseType(HOTKEY_MANAGER_USEONSELF, self:isChecked())
ButtonBox
id: useOnTarget
@@ -146,7 +146,7 @@ MainWindow
anchors.top: prev.bottom
checked: false
margin-top: 2
@onCheckChange: changeUseType(HOTKEY_MANAGER_USEONTARGET, self:isChecked())
@onCheckChange: modules.game_hotkeys.changeUseType(HOTKEY_MANAGER_USEONTARGET, self:isChecked())
ButtonBox
id: useWith
@@ -158,11 +158,11 @@ MainWindow
anchors.top: prev.bottom
checked: false
margin-top: 2
@onCheckChange: changeUseType(HOTKEY_MANAGER_USEWITH, self:isChecked())
@onCheckChange: modules.game_hotkeys.changeUseType(HOTKEY_MANAGER_USEWITH, self:isChecked())
Button
!text: tr('Close')
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
@onClick: hide()
@onClick: modules.game_hotkeys.hide()