You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
917 B

MainWindow
id: optionsWindow
title: Options
13 years ago
size: 286 100
13 years ago
CheckBox
id: vsyncCheckBox
text: Enable vertical synchronization
tooltip: Limits FPS to 60
anchors.left: parent.left
13 years ago
anchors.right: parent.right
anchors.top: parent.top
margin-top: 28
margin-left: 18
margin-right: 18
@onCheckChange: Options.enableVsync(self:isChecked())
@onSetup: self:setChecked(Options.vsync)
13 years ago
CheckBox
id: fpsCheckBox
text: Show frame rate
anchors.left: parent.left
anchors.right: parent.right
13 years ago
anchors.top: prev.bottom
margin-top: 10
margin-left: 18
margin-right: 18
@onCheckChange: Options.enableFps(self:isChecked())
@onSetup: self:setChecked(Options.fps)
Button
text: Ok
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
margin-right: 10
margin-bottom: 10
@onClick: self:getParent():destroy()