2012-03-25 16:10:15 +02:00
|
|
|
Panel
|
2013-01-25 16:33:51 +01:00
|
|
|
ButtonBox
|
|
|
|
id: opengl1
|
2012-06-02 23:41:20 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
2013-01-25 16:33:51 +01:00
|
|
|
text: OpenGL 1
|
|
|
|
size: 80 20
|
2012-06-02 23:41:20 +02:00
|
|
|
|
|
|
|
ButtonBox
|
2013-01-25 16:33:51 +01:00
|
|
|
id: opengl2
|
2012-06-02 23:41:20 +02:00
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.verticalCenter: prev.verticalCenter
|
2013-01-25 16:33:51 +01:00
|
|
|
text: OpenGL 2
|
2012-06-02 23:41:20 +02:00
|
|
|
size: 80 20
|
2013-01-25 16:33:51 +01:00
|
|
|
margin-left: 4
|
2012-06-02 23:41:20 +02:00
|
|
|
|
|
|
|
ButtonBox
|
2013-01-25 16:33:51 +01:00
|
|
|
id: directx9
|
2012-06-02 23:41:20 +02:00
|
|
|
anchors.left: prev.right
|
|
|
|
anchors.verticalCenter: prev.verticalCenter
|
2013-01-25 16:33:51 +01:00
|
|
|
text: DirectX 9
|
2012-06-02 23:41:20 +02:00
|
|
|
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
|
2013-01-25 16:33:51 +01:00
|
|
|
id: enableLights
|
|
|
|
!text: tr('Enable lights')
|
2012-03-25 16:10:15 +02:00
|
|
|
|
2013-01-25 16:33:51 +01:00
|
|
|
OptionCheckBox
|
|
|
|
id: fullscreen
|
|
|
|
!text: tr('Fullscreen')
|
|
|
|
tooltip: Ctrl+Shift+F
|
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
|
2013-01-25 16:33:51 +01:00
|
|
|
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('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
|
|
|
|
2013-03-02 21:01:29 +01:00
|
|
|
OptionScrollbar
|
2012-07-05 20:49:10 +02:00
|
|
|
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
|
|
|
|
2013-03-02 21:01:29 +01:00
|
|
|
OptionScrollbar
|
2012-07-05 20:49:10 +02:00
|
|
|
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))
|
|
|
|
|
2013-03-02 21:01:29 +01:00
|
|
|
OptionScrollbar
|
2012-11-30 17:47:53 +01:00
|
|
|
id: ambientLight
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
margin-top: 3
|
|
|
|
minimum: 0
|
|
|
|
maximum: 100
|
|
|
|
|