]> git.tdb.fi Git - r2c2.git/blobdiff - r2c2.res
Move gauge to TrackAppearance
[r2c2.git] / r2c2.res
index 2fbdb7826602d12108a30ed36d003d06feecad7a..c2f72c1a94c1ecf89c02dbc1c6f970baea8e04bd 100644 (file)
--- a/r2c2.res
+++ b/r2c2.res
@@ -15,6 +15,17 @@ style "label"
        };
 };
 
+style "label-title"
+{
+       font_color 0 0 0;
+       part "text"
+       {
+               align 0.5 1.0;
+               fill 0.0 0.0;
+               margin { bottom 5; };
+       };
+};
+
 style "image"
 {
        part "image"
@@ -27,7 +38,7 @@ graphic "tooltip"
 {
        texture "gui.png";
        slice 50 93 20 10;
-       border { top 2; right 2; bottom 2; left 2; };
+       border { horizontal 2; vertical 2; };
 };
 
 style "label-tooltip"
@@ -43,7 +54,7 @@ style "label-tooltip"
        {
                align 0.0 0.5;
                fill 0.0 0.0;
-               margin { top 2; right 2; bottom 2; left 2; };
+               margin { horizontal 2; vertical 2; };
        };
 };
 
@@ -151,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;
@@ -161,12 +186,14 @@ style "button"
                graphic ACTIVE "grey_button_pressed";
                align 0.5 0.0;
                fill 0.0 0.0;
+               margin { horizontal 5; };
        };
 
        part "text"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
+               margin { bottom 10; };
        };
 };
 
@@ -180,12 +207,14 @@ style "button-green"
                graphic ACTIVE "green_button_pressed";
                align 0.5 0.0;
                fill 0.0 0.0;
+               margin { horizontal 5; };
        };
 
        part "text"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
+               margin { bottom 10; };
        };
 };
 
@@ -199,12 +228,14 @@ style "button-red"
                graphic ACTIVE "red_button_pressed";
                align 0.5 0.0;
                fill 0.0 0.0;
+               margin { horizontal 5; };
        };
 
        part "text"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
+               margin { bottom 10; };
        };
 };
 
@@ -252,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";
@@ -325,7 +367,7 @@ graphic "raised_grey_bg"
 {
        texture "gui.png";
        slice 2 74 24 16;
-       border { top 4; right 4; bottom 4; left 4; };
+       border { horizontal 4; vertical 4; };
 };
 
 style "panel"
@@ -346,7 +388,7 @@ graphic "sunken_black_bg"
 {
        texture "gui.png";
        slice 2 110 24 16;
-       border { top 4; right 4; bottom 4; left 4; };
+       border { horizontal 4; vertical 4; };
 };
 
 style "label-digital"
@@ -363,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; };
        };
 };
 
@@ -371,7 +413,7 @@ graphic "sunken_white_bg"
 {
        texture "gui.png";
        slice 2 92 24 16;
-       border { top 4; right 4; bottom 4; left 4; };
+       border { horizontal 4; vertical 4; };
 };
 
 graphic "cursor"
@@ -393,7 +435,7 @@ style "entry"
        {
                align 0.0 0.5;
                fill 0.0 0.0;
-               margin { left 3; right 3; };
+               margin { horizontal 3; vertical 2; };
        };
 
        part "cursor"
@@ -419,7 +461,7 @@ style "entry-multiline"
        {
                align 0.0 1.0;
                fill 0.0 0.0;
-               margin { top 2; right 13; left 3; bottom 2; };
+               margin { vertical 2; right 13; left 3; };
        };
 
        part "cursor"
@@ -433,7 +475,7 @@ style "entry-multiline"
                align 1.0 0.0;
                fill 0.0 1.0;
                size 10 0;
-               margin { top 3; right 2; bottom 3; };
+               margin { vertical 3; right 2; };
        };
 };
 
@@ -441,28 +483,19 @@ graphic "selection"
 {
        texture "gui.png";
        slice 44 81 20 10;
-       border { top 4; right 4; bottom 4; left 4; };
+       border { horizontal 4; vertical 4; };
 };
 
 style "list"
 {
-       font_color 0.0 0.0 0.0;
-
        part
        {
                graphic NORMAL "sunken_white_bg";
        };
 
-       part "selection"
-       {
-               graphic NORMAL "selection";
-               fill 1.0 1.0;
-               margin { top 2; right 13; bottom 2; left 2; };
-       };
-
        part "items"
        {
-               margin { top 2; right 13; bottom 2; left 2; };
+               margin { vertical 2; right 13; left 2; };
        };
 
        part "slider"
@@ -470,7 +503,21 @@ style "list"
                align 1.0 0.0;
                fill 0.0 1.0;
                size 10 0;
-               margin { top 3; right 2; bottom 3; };
+               margin { vertical 3; right 2; };
+       };
+};
+
+style "listitem"
+{
+       part
+       {
+               graphic ACTIVE "selection";
+               fill 1.0 1.0;
+       };
+
+       part "children"
+       {
+               margin { vertical 1; horizontal 2; };
        };
 };
 
@@ -496,7 +543,7 @@ style "dropdown"
        {
                align 0.0 0.5;
                fill 0.0 0.0;
-               margin { left 2; };
+               margin { vertical 2; left 3; right 17; };
        };
 
        part "list";
@@ -524,6 +571,7 @@ style "toggle"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
+               margin { bottom 10; };
        };
 
        part
@@ -539,7 +587,7 @@ graphic "horizontal_slot"
 {
        texture "gui.png";
        slice 32 97 12 2;
-       border { left 1; right 1; };
+       border { horizontal 1; };
 };
 
 graphic "horizontal_knob"
@@ -556,12 +604,13 @@ style "hslider"
                graphic NORMAL "horizontal_slot";
                align 0.5 0.5;
                fill 1.0 0.0;
-               margin { left 4; right 4; };
+               margin { horizontal 4; };
        };
 
        part "slider"
        {
                graphic NORMAL "horizontal_knob";
+               align 0.0 0.5;
                fill 0.0 0.0;
        };
 };
@@ -570,7 +619,7 @@ graphic "vertical_slot"
 {
        texture "gui.png";
        slice 32 75 2 12;
-       border { top 1; bottom 1; };
+       border { vertical 1; };
 };
 
 graphic "vertical_knob"
@@ -587,7 +636,7 @@ style "vslider"
                graphic NORMAL "vertical_slot";
                align 0.5 0.5;
                fill 0.0 1.0;
-               margin { top 4; bottom 4; };
+               margin { vertical 4; };
        };
 
        part "slider"
@@ -597,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";
+       };
+};