]> git.tdb.fi Git - r2c2.git/blobdiff - data/r2c2.res
Better graphics for the clock
[r2c2.git] / data / r2c2.res
index fb673210f2a49ec69e23ef93ce876c7198ded5fd..9a00dd6c253f6e08182e438418bde92d1b623d87 100644 (file)
@@ -752,8 +752,42 @@ style "toggle-lever"
        };
 };
 
+graphic "clock_face"
+{
+       texture "clock.png";
+       slice 0 0 200 200;
+};
+
+graphic "clock_hour"
+{
+       texture "clock.png";
+       slice 202 0 10 63;
+};
+
+graphic "clock_minute"
+{
+       texture "clock.png";
+       slice 204 65 6 99;
+};
+
 style "clock"
 {
-       part "hourhand";
-       part "minutehand";
+       part
+       {
+               graphic NORMAL "clock_face";
+               align 0.5 0.5;
+               fill 0.0 0.0;
+       };
+
+       part "hourhand"
+       {
+               graphic NORMAL "clock_hour";
+               align 0.5 0.159;
+       };
+
+       part "minutehand"
+       {
+               graphic NORMAL "clock_minute";
+               align 0.5 0.101;
+       };
 };