From c73f9e2632f9614bba748aed857e2a648126a963 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 20 Apr 2017 20:16:48 +0200 Subject: 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. --- plugingui/button.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugingui/button.h') diff --git a/plugingui/button.h b/plugingui/button.h index f6bb83c..52f22e2 100644 --- a/plugingui/button.h +++ b/plugingui/button.h @@ -43,22 +43,22 @@ protected: virtual void repaintEvent(RepaintEvent* e) override; private: - TexturedBox box_up{getImageCache(), ":pushbutton.png", + TexturedBox box_up{getImageCache(), ":resources/pushbutton.png", 0, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 - TexturedBox box_down{getImageCache(), ":pushbutton.png", + TexturedBox box_down{getImageCache(), ":resources/pushbutton.png", 15, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 - TexturedBox box_grey{getImageCache(), ":pushbutton.png", + TexturedBox box_grey{getImageCache(), ":resources/pushbutton.png", 30, 0, // atlas offset (x, y) 7, 1, 7, // dx1, dx2, dx3 6, 12, 9}; // dy1, dy2, dy3 - Font font{":fontemboss.png"}; + Font font{":resources/fontemboss.png"}; }; } // GUI:: -- cgit v1.2.3