2012-07-05 20:49:10 +02:00
|
|
|
FrameRateScrollbar < HorizontalScrollBar
|
|
|
|
step: 1
|
2013-01-18 23:39:11 +01:00
|
|
|
@onValueChange: modules.client_options.setOption(self:getId(), self:getValue())
|
2012-07-05 20:49:10 +02:00
|
|
|
@onSetup: |
|
|
|
|
UIScrollBar.onSetup(self)
|
2013-01-18 23:39:11 +01:00
|
|
|
local value = modules.client_options.getOption(self:getId())
|
2012-07-05 20:49:10 +02:00
|
|
|
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
|
|
|
|
2012-10-10 01:25:50 +02:00
|
|
|
OptionCheckBox
|
|
|
|
id: dontStretchShrink
|
2013-01-23 18:35:43 +01:00
|
|
|
!text: tr("Don't stretch or shrink Game Window")
|
2012-10-10 01:25:50 +02:00
|
|
|
|
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
|
2012-10-10 01:25:50 +02:00
|
|
|
margin-top: 16
|
2012-07-05 20:49:10 +02:00
|
|
|
@onSetup: |
|
2013-01-18 23:39:11 +01:00
|
|
|
local value = modules.client_options.getOption('backgroundFrameRate')
|
2012-07-05 20:49:10 +02:00
|
|
|
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: |
|
2013-01-18 23:39:11 +01:00
|
|
|
local value = modules.client_options.getOption('foregroundFrameRate')
|
2012-07-05 20:49:10 +02:00
|
|
|
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
|
|
|
|
|
2012-11-30 17:47:53 +01:00
|
|
|
Label
|
|
|
|
id: ambientLightLabel
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 6
|
|
|
|
@onSetup: |
|
2013-01-18 23:39:11 +01:00
|
|
|
local value = modules.client_options.getOption('ambientLight')
|
2012-11-30 17:47:53 +01:00
|
|
|
self:setText(tr('Ambient light: %s%%', value))
|
|
|
|
|
|
|
|
FrameRateScrollbar
|
|
|
|
id: ambientLight
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 3
|
|
|
|
minimum: 0
|
|
|
|
maximum: 100
|
|
|
|
|