]> git.tdb.fi Git - r2c2.git/blobdiff - data/r2c2.res
Better graphics for the clock
[r2c2.git] / data / r2c2.res
index c2f72c1a94c1ecf89c02dbc1c6f970baea8e04bd..9a00dd6c253f6e08182e438418bde92d1b623d87 100644 (file)
@@ -409,6 +409,28 @@ style "label-digital"
        };
 };
 
+style "label-digital_borderless"
+{
+       font "digitalreadout-16.font";
+       font_color 0.3 1 0.3;
+
+       part "text"
+       {
+               fill 0.0 0.0;
+               align 0.0 0.5;
+       };
+};
+
+style "panel-digital_background"
+{
+       part
+       {
+               graphic NORMAL "sunken_black_bg";
+       };
+
+       part "children";
+};
+
 graphic "sunken_white_bg"
 {
        texture "gui.png";
@@ -729,3 +751,43 @@ style "toggle-lever"
                graphic ACTIVE "lever_up";
        };
 };
+
+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
+       {
+               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;
+       };
+};