tibia-client/modules/client_options/options.otui

45 lines
1.0 KiB
Plaintext

OptionCheckBox < CheckBox
@onCheckChange: modules.client_options.setOption(self:getId(), self:isChecked())
@onSetup: self:setChecked(modules.client_options.getOption(self:getId()))
height: 16
$first:
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
$!first:
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 2
MainWindow
id: optionsWindow
!text: tr('Options')
size: 480 340
@onEnter: modules.client_options.hide()
@onEscape: modules.client_options.hide()
TabBarVertical
id: optionsTabBar
anchors.top: parent.top
anchors.left: parent.left
anchors.bottom: parent.bottom
Panel
id: optionsTabContent
anchors.top: optionsTabBar.top
anchors.left: optionsTabBar.right
anchors.right: parent.right
anchors.bottom: optionsTabBar.bottom
margin-left: 10
Button
!text: tr('Ok')
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
@onClick: modules.client_options.hide()