mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 15:26:49 +01:00
scrollbar, options and widgets changes
* complete scrollbar skin * implement scrollbar functionality (scrolling with mouse) * fix onMouseClick issues * add tabs in options (graphics and general tab) * add new option for limiting frame rate using scrollbar * add new widget property "clipping" that will be used on scrollable areas
This commit is contained in:
32
modules/client_options/graphics.otui
Normal file
32
modules/client_options/graphics.otui
Normal file
@@ -0,0 +1,32 @@
|
||||
Panel
|
||||
OptionCheckBox
|
||||
id: vsync
|
||||
text: Enable vertical synchronization
|
||||
tooltip: Limits FPS to 60
|
||||
|
||||
OptionCheckBox
|
||||
id: showfps
|
||||
text: Show frame rate
|
||||
|
||||
OptionCheckBox
|
||||
id: fullscreen
|
||||
text: Fullscreen
|
||||
|
||||
Label
|
||||
text: Frame rate limit
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 6
|
||||
|
||||
HorizontalScrollBar
|
||||
id: frameRateScrollBar
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 3
|
||||
minimum: 0
|
||||
maximum: 50
|
||||
value: 0
|
||||
step: 1
|
||||
@onValueChange: g_app.setFrameSleep(self:getValue())
|
||||
Reference in New Issue
Block a user