mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
ui and graphics changes
* implement draw clipping using opengl stencil buffers * allow to create Widgets by style name with g_ui.createWidgetByStyle * styles can now have children widgets * make proper use of the isNotPathable in pathfinding * add scrollbar skin
This commit is contained in:
@@ -28,3 +28,4 @@ Module
|
||||
importStyle 'styles/comboboxes.otui'
|
||||
importStyle 'styles/spinboxes.otui'
|
||||
importStyle 'styles/messageboxes.otui'
|
||||
importStyle 'styles/scrollbars.otui'
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 179 B After Width: | Height: | Size: 197 B |
BIN
modules/core_styles/styles/images/vscrollbar.png
Normal file
BIN
modules/core_styles/styles/images/vscrollbar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 350 B |
30
modules/core_styles/styles/scrollbars.otui
Normal file
30
modules/core_styles/styles/scrollbars.otui
Normal file
@@ -0,0 +1,30 @@
|
||||
VerticalScrollBar < UIScrollBar
|
||||
width: 13
|
||||
image-source: images/vscrollbar.png
|
||||
image-clip: 0 39 13 32
|
||||
image-border: 1
|
||||
|
||||
UIButton
|
||||
id: upButton
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
image-source: images/vscrollbar.png
|
||||
image-clip: 0 0 13 13
|
||||
size: 13 13
|
||||
|
||||
UIButton
|
||||
id: downButton
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.right: parent.right
|
||||
size: 13 13
|
||||
image-source: images/vscrollbar.png
|
||||
image-clip: 0 13 13 13
|
||||
|
||||
//UIButton
|
||||
//id: middleButton
|
||||
//anchors.top: parent.top
|
||||
//anchors.right: parent.right
|
||||
//size: 13 13
|
||||
//margin-top: 30
|
||||
//image-source: images/vscrollbar.png
|
||||
//image-clip: 0 26 13 13
|
Reference in New Issue
Block a user