2012-07-05 20:49:10 +02:00
|
|
|
FrameRateScrollbar < HorizontalScrollBar
|
|
|
|
step: 1
|
|
|
|
@onValueChange: Options.setOption(self:getId(), self:getValue())
|
|
|
|
@onSetup: |
|
|
|
|
UIScrollBar.onSetup(self)
|
|
|
|
local value = Options.getOption(self:getId())
|
|
|
|
if value == 0 then value = self:getMaximum() end
|
|
|
|
self:setValue(value)
|
|
|
|
|
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
|
2012-07-23 17:11:53 +02:00
|
|
|
id: opengl1
|
2012-06-02 23:41:20 +02:00
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.verticalCenter: prev.verticalCenter
|
|
|
|
text: OpenGL 1
|
|
|
|
size: 80 20
|
|
|
|
margin-left: 6
|
|
|
|
|
|
|
|
ButtonBox
|
2012-07-23 17:11:53 +02:00
|
|
|
id: opengl2
|
2012-06-02 23:41:20 +02:00
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.verticalCenter: prev.verticalCenter
|
|
|
|
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
|
2012-08-26 06:27:30 +02:00
|
|
|
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-07-05 20:49:10 +02:00
|
|
|
id: backgroundFrameRateLabel
|
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
|
2012-07-05 20:49:10 +02:00
|
|
|
@onSetup: |
|
|
|
|
local value = Options.getOption('backgroundFrameRate')
|
|
|
|
local text = value
|
|
|
|
if value <= 0 or value >= 201 then
|
|
|
|
text = 'max'
|
|
|
|
end
|
|
|
|
|
|
|
|
self:setText(tr('Game framerate limit: %s', text))
|
2012-03-25 16:10:15 +02:00
|
|
|
|
2012-07-05 20:49:10 +02:00
|
|
|
FrameRateScrollbar
|
|
|
|
id: backgroundFrameRate
|
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
|
|
|
|
|
|
|
|
Label
|
2012-07-05 20:49:10 +02:00
|
|
|
id: foregroundFrameRateLabel
|
2012-06-01 21:39:09 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 6
|
2012-07-05 20:49:10 +02:00
|
|
|
@onSetup: |
|
|
|
|
local value = Options.getOption('foregroundFrameRate')
|
|
|
|
local text = value
|
|
|
|
if value <= 0 or value >= 61 then
|
|
|
|
text = 'max'
|
|
|
|
end
|
|
|
|
|
|
|
|
self:setText(tr('Interface framerate limit: %s', text))
|
2012-06-01 21:39:09 +02:00
|
|
|
|
2012-07-05 20:49:10 +02:00
|
|
|
FrameRateScrollbar
|
|
|
|
id: foregroundFrameRate
|
2012-06-01 21:39:09 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 3
|
|
|
|
minimum: 1
|
|
|
|
maximum: 61
|
|
|
|
|