diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-20 20:16:48 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-20 20:16:48 +0200 |
commit | c73f9e2632f9614bba748aed857e2a648126a963 (patch) | |
tree | 151bffe31dede7b17335004bad8014b3bb5b7837 /plugingui/slider.h | |
parent | 815d4eeae5a10bb1dbdd9e8810523644dfbadc5f (diff) |
Change resource paths to be relative to the plugingui folder instead of the resources folder. Make rcgen run atomatically to re-generate resource_data.cc if one of the resource files changes.
Diffstat (limited to 'plugingui/slider.h')
-rw-r--r-- | plugingui/slider.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugingui/slider.h b/plugingui/slider.h index 3398bb4..1543d6f 100644 --- a/plugingui/slider.h +++ b/plugingui/slider.h @@ -79,29 +79,29 @@ private: State state; - TexturedBox bar{getImageCache(), ":slider.png", + TexturedBox bar{getImageCache(), ":resources/slider.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 7, 1, 7 // dy1, dy2, dy3 }; - TexturedBox inner_bar_green{getImageCache(), ":slider.png", + TexturedBox inner_bar_green{getImageCache(), ":resources/slider.png", 30, 0, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; - TexturedBox inner_bar_red{getImageCache(), ":slider.png", + TexturedBox inner_bar_red{getImageCache(), ":resources/slider.png", 30, 5, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; - TexturedBox inner_bar_blue{getImageCache(), ":slider.png", + TexturedBox inner_bar_blue{getImageCache(), ":resources/slider.png", 30, 10, // atlas offset (x, y) 2, 1, 2, // dx1, dx2, dx3 2, 1, 2 // dy1, dy2, dy3 }; Texture button{ - getImageCache(), ":slider.png", 15, 0, // atlas offset (x, y) + getImageCache(), ":resources/slider.png", 15, 0, // atlas offset (x, y) 15, 15 // width, height }; |