]> git.tdb.fi Git - r2c2.git/blobdiff - r2c2.res
Complete rewrite of the engineer UI
[r2c2.git] / r2c2.res
index 20bae38b1c41ce7910a79e995822b8f453d29a3e..c2f72c1a94c1ecf89c02dbc1c6f970baea8e04bd 100644 (file)
--- a/r2c2.res
+++ b/r2c2.res
@@ -162,6 +162,20 @@ graphic "left_arrow_button_pressed"
        shadow { right 1; bottom 1; };
 };
 
+graphic "red_cross_button"
+{
+       texture "gui.png";
+       slice 74 2 13 14;
+       shadow { right 1; bottom 2; };
+};
+
+graphic "red_cross_button_pressed"
+{
+       texture "gui.png";
+       slice 89 3 13 13;
+       shadow { right 1; bottom 1; };
+};
+
 style "button"
 {
        font_color 0 0 0;
@@ -269,6 +283,17 @@ style "button-arrow_left"
        };
 };
 
+style "button-red_cross"
+{
+       part
+       {
+               graphic NORMAL "red_cross_button";
+               graphic ACTIVE "red_cross_button_pressed";
+               align 0.5 0.5;
+               fill 0.0 0.0;
+       };
+};
+
 graphic "yellow_lamp"
 {
        texture "gui.png";
@@ -380,7 +405,7 @@ style "label-digital"
        {
                fill 0.0 0.0;
                align 0.5 0.5;
-               margin { top 1; };
+               margin { horizontal 4; top 2; bottom 1; };
        };
 };
 
@@ -546,6 +571,7 @@ style "toggle"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
+               margin { bottom 10; };
        };
 
        part
@@ -584,6 +610,7 @@ style "hslider"
        part "slider"
        {
                graphic NORMAL "horizontal_knob";
+               align 0.0 0.5;
                fill 0.0 0.0;
        };
 };
@@ -619,3 +646,86 @@ style "vslider"
                align 0.0 1.0;
        };
 };
+
+style "draghandle";
+
+graphic "pointer_down"
+{
+       texture "gui.png";
+       slice 98 36 13 14;
+       shadow { right 1; bottom 2; };
+};
+
+graphic "pointer_up"
+{
+       texture "gui.png";
+       slice 83 36 13 14;
+       shadow { right 1; bottom 2; };
+};
+
+graphic "pointer_left"
+{
+       texture "gui.png";
+       slice 83 21 13 14;
+       shadow { right 1; bottom 2; };
+};
+
+graphic "pointer_right"
+{
+       texture "gui.png";
+       slice 98 21 13 14;
+       shadow { right 1; bottom 2; };
+};
+
+style "toggle-pointer_left"
+{
+       font_color 0.0 0.0 0.0;
+
+       part "text"
+       {
+               align 0.0 0.5;
+               fill 0.0 0.0;
+               margin { vertical 2; right 4; left 2; };
+       };
+
+       part
+       {
+               graphic NORMAL "vertical_slot";
+               align 1.0 0.0;
+               fill 0.0 1.0;
+       };
+
+       part
+       {
+               graphic ACTIVE "pointer_left";
+               align 1.0 0.5;
+               fill 0.0 0.0;
+       };
+};
+
+graphic "lever_down"
+{
+       texture "gui.png";
+       slice 103 52 20 22;
+       shadow { right 3; bottom 4; };
+};
+
+graphic "lever_up"
+{
+       texture "gui.png";
+       slice 103 76 20 22;
+       shadow { right 3; bottom 4; };
+};
+
+style "toggle-lever"
+{
+       font_color 0.0 0.0 0.0;
+
+       part
+       {
+               align 0.5 0.5;
+               fill 0.0 0.0;
+               graphic NORMAL "lever_down";
+               graphic ACTIVE "lever_up";
+       };
+};