mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
Fixes in options, hotkeys and viplist
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
FrameRateScrollbar < HorizontalScrollBar
|
||||
step: 1
|
||||
@onValueChange: modules.client_options.setOption(self:getId(), self:getValue())
|
||||
@onSetup: |
|
||||
UIScrollBar.onSetup(self)
|
||||
local value = modules.client_options.getOption(self:getId())
|
||||
if value == 0 then value = self:getMaximum() end
|
||||
self:setValue(value)
|
||||
|
||||
Panel
|
||||
ButtonBox
|
||||
id: opengl1
|
||||
@@ -65,7 +56,7 @@ Panel
|
||||
|
||||
self:setText(tr('Game framerate limit: %s', text))
|
||||
|
||||
FrameRateScrollbar
|
||||
OptionScrollbar
|
||||
id: backgroundFrameRate
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
@@ -89,7 +80,7 @@ Panel
|
||||
|
||||
self:setText(tr('Interface framerate limit: %s', text))
|
||||
|
||||
FrameRateScrollbar
|
||||
OptionScrollbar
|
||||
id: foregroundFrameRate
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
@@ -108,7 +99,7 @@ Panel
|
||||
local value = modules.client_options.getOption('ambientLight')
|
||||
self:setText(tr('Ambient light: %s%%', value))
|
||||
|
||||
FrameRateScrollbar
|
||||
OptionScrollbar
|
||||
id: ambientLight
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
Reference in New Issue
Block a user