Skip to content

Commit

Permalink
Improved Slider control.
Browse files Browse the repository at this point in the history
Adjusted the background behind slider controls to better visualize to
users the bounds of the control.
  • Loading branch information
DirtDiglett committed Jul 6, 2015
1 parent c651719 commit 65c3827
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 4 deletions.
Binary file added graphics/sliders/bottomMiddle.tga
Binary file not shown.
Binary file added graphics/sliders/bottomRight.tga
Binary file not shown.
Binary file added graphics/sliders/bottomleft.tga
Binary file not shown.
Binary file added graphics/sliders/leftMiddle.tga
Binary file not shown.
Binary file added graphics/sliders/middle.tga
Binary file not shown.
Binary file added graphics/sliders/rightMiddle.tga
Binary file not shown.
Binary file added graphics/sliders/topLeft.tga
Binary file not shown.
Binary file added graphics/sliders/topMiddle.tga
Binary file not shown.
Binary file added graphics/sliders/topRight.tga
Binary file not shown.
20 changes: 16 additions & 4 deletions includes/controls.styles
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,22 @@
font-weight=400
textcolor = "white"
render_bg {
0="fill(x0-1, y1-1, x1+1, y1, black65)"
1="fill(x0-1, y1-2, x1+1, y1-1, grey50)"
2="fill(x0-1, y1-4, x0, y1-1, black65)"
3="fill(x1, y1-4, x1+1, y1-1, black65)"
0="image_scale(x0+5,y0+10,x1-5,y1-12, graphics/sliders/middle)"
// TOP
1="image(x0,y0+5,x0+5,y0+10, graphics/sliders/topLeft)"
2="image_scale(x0+5,y0+5,x1-5,y0+10, graphics/sliders/topMiddle)"
3="image(x1-5,y0+5,x1,y0+10, graphics/sliders/topRight)"

// LEFT
4="image_scale(x0,y0+10,x0+5,y1-12, graphics/sliders/leftMiddle)"

// RIGHT
5="image_scale(x1-5,y0+10,x1,y1-12, graphics/sliders/rightMiddle)"

// BOTTOM
6="image(x0,y1-12,x0+5,y1-8, graphics/sliders/bottomLeft)"
7="image_scale(x0+5,y1-12,x1-5,y1-7, graphics/sliders/bottomMiddle)"
8="image(x1-5,y1-12,x1,y1-8, graphics/sliders/bottomRight)"
}
}
Slider:focus {
Expand Down

0 comments on commit 65c3827

Please sign in to comment.