mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 01:29:21 +02:00

* 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
16 lines
337 B
Lua
16 lines
337 B
Lua
UIScrollArea = extends(UIWidget)
|
|
|
|
function UIScrollArea.create()
|
|
local scrollarea = UIScrollArea.internalCreate()
|
|
scrollarea:setClipping(true)
|
|
return scrollarea
|
|
end
|
|
|
|
function UIScrollArea:onStyleApply(styleName, styleNode)
|
|
for name,value in pairs(styleNode) do
|
|
if name == 'horizontal-scrollbar' then
|
|
|
|
end
|
|
end
|
|
end
|