2012-03-25 16:10:15 +02:00
|
|
|
Panel
|
2012-06-02 23:41:20 +02:00
|
|
|
Label
|
|
|
|
!text: tr('Graphics Engine:')
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
|
|
|
|
ButtonBox
|
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.verticalCenter: prev.verticalCenter
|
|
|
|
id: opengl1
|
|
|
|
text: OpenGL 1
|
|
|
|
size: 80 20
|
|
|
|
margin-left: 6
|
|
|
|
|
|
|
|
ButtonBox
|
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.verticalCenter: prev.verticalCenter
|
|
|
|
id: opengl2
|
|
|
|
text: OpenGL 2
|
|
|
|
size: 80 20
|
|
|
|
margin-left: 4
|
|
|
|
|
2012-03-25 16:10:15 +02:00
|
|
|
OptionCheckBox
|
|
|
|
id: vsync
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Enable vertical synchronization')
|
|
|
|
!tooltip: tr('Limits FPS to 60')
|
2012-03-25 16:10:15 +02:00
|
|
|
|
|
|
|
OptionCheckBox
|
|
|
|
id: showfps
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Show frame rate')
|
2012-03-25 16:10:15 +02:00
|
|
|
|
|
|
|
OptionCheckBox
|
|
|
|
id: fullscreen
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Fullscreen')
|
2012-03-25 16:10:15 +02:00
|
|
|
|
|
|
|
Label
|
2012-06-01 21:39:09 +02:00
|
|
|
id: backgroundFrameRateLimitLabel
|
2012-06-08 18:58:08 +02:00
|
|
|
!text: tr('Game framerate limit: %s', 'max')
|
2012-03-25 16:10:15 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 6
|
|
|
|
|
|
|
|
HorizontalScrollBar
|
2012-06-01 21:39:09 +02:00
|
|
|
id: backgroundFrameRateScrollBar
|
2012-03-25 16:10:15 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 3
|
2012-06-01 21:39:09 +02:00
|
|
|
minimum: 10
|
|
|
|
maximum: 201
|
|
|
|
value: 201
|
2012-03-25 16:10:15 +02:00
|
|
|
step: 1
|
2012-06-01 21:39:09 +02:00
|
|
|
@onValueChange: |
|
|
|
|
local value = self:getValue()
|
|
|
|
local text = value
|
|
|
|
if value == self:getMaximum() then
|
|
|
|
text = 'max'
|
|
|
|
value = 0
|
|
|
|
end
|
|
|
|
|
2012-06-08 18:58:08 +02:00
|
|
|
self:getParent():getChildById('backgroundFrameRateLimitLabel'):setText(tr('Game framerate limit: %s', text))
|
2012-06-01 21:39:09 +02:00
|
|
|
g_app.setBackgroundPaneMaxFps(value)
|
|
|
|
|
|
|
|
Label
|
|
|
|
id: foregroundFrameRateLimitLabel
|
2012-06-08 18:58:08 +02:00
|
|
|
!text: tr('Interface framerate limit: %s', '24')
|
2012-06-01 21:39:09 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 6
|
|
|
|
|
|
|
|
HorizontalScrollBar
|
|
|
|
id: foregroundFrameRateScrollBar
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 3
|
|
|
|
minimum: 1
|
|
|
|
maximum: 61
|
2012-06-08 18:58:08 +02:00
|
|
|
value: 61
|
2012-06-01 21:39:09 +02:00
|
|
|
step: 1
|
|
|
|
@onValueChange: |
|
|
|
|
local value = self:getValue()
|
|
|
|
local text = value
|
|
|
|
if value == self:getMaximum() then
|
|
|
|
text = 'max'
|
|
|
|
value = 0
|
|
|
|
end
|
|
|
|
|
2012-06-08 18:58:08 +02:00
|
|
|
self:getParent():getChildById('foregroundFrameRateLimitLabel'):setText(tr('Interface framerate limit: %s', text))
|
2012-06-01 21:39:09 +02:00
|
|
|
g_app.setForegroundPaneMaxFps(value)
|
|
|
|
|