]> git.tdb.fi Git - r2c2.git/blobdiff - r2c2.res
Don't continue reserving until the turnout is done changing its path
[r2c2.git] / r2c2.res
index 642433fb1a6f6b2a843f280794af675fcd156206..d16f555e6bd452cca7a74620d62946705f39f4d6 100644 (file)
--- a/r2c2.res
+++ b/r2c2.res
@@ -1,25 +1,34 @@
-/* $Id$ */
-
 default_font "dejavu-12.font";
 
 style "root"
 {
-       special "children";
+       part "children";
 };
 
 style "label"
 {
        font_color 0 0 0;
-       special "text"
+       part "text"
        {
                align 0.0 0.5;
                fill 0.0 0.0;
        };
 };
 
+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"
 {
-       special "image"
+       part "image"
        {
                fill 1.0 1.0;
        };
@@ -29,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"
@@ -41,11 +50,11 @@ style "label-tooltip"
                graphic NORMAL "tooltip";
        };
 
-       special "text"
+       part "text"
        {
                align 0.0 0.5;
                fill 0.0 0.0;
-               margin { top 2; right 2; bottom 2; left 2; };
+               margin { horizontal 2; vertical 2; };
        };
 };
 
@@ -163,12 +172,14 @@ style "button"
                graphic ACTIVE "grey_button_pressed";
                align 0.5 0.0;
                fill 0.0 0.0;
+               margin { horizontal 5; };
        };
 
-       special "text"
+       part "text"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
+               margin { bottom 10; };
        };
 };
 
@@ -182,12 +193,14 @@ style "button-green"
                graphic ACTIVE "green_button_pressed";
                align 0.5 0.0;
                fill 0.0 0.0;
+               margin { horizontal 5; };
        };
 
-       special "text"
+       part "text"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
+               margin { bottom 10; };
        };
 };
 
@@ -201,12 +214,14 @@ style "button-red"
                graphic ACTIVE "red_button_pressed";
                align 0.5 0.0;
                fill 0.0 0.0;
+               margin { horizontal 5; };
        };
 
-       special "text"
+       part "text"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
+               margin { bottom 10; };
        };
 };
 
@@ -327,7 +342,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"
@@ -336,19 +351,19 @@ style "panel"
        {
                graphic NORMAL "raised_grey_bg";
        };
-       special "children";
+       part "children";
 };
 
 style "panel-group"
 {
-       special "children";
+       part "children";
 };
 
 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"
@@ -361,7 +376,7 @@ style "label-digital"
                graphic NORMAL "sunken_black_bg";
        };
 
-       special "text"
+       part "text"
        {
                fill 0.0 0.0;
                align 0.5 0.5;
@@ -373,7 +388,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"
@@ -391,14 +406,14 @@ style "entry"
                graphic NORMAL "sunken_white_bg";
        };
 
-       special "text"
+       part "text"
        {
                align 0.0 0.5;
                fill 0.0 0.0;
-               margin { left 3; right 3; };
+               margin { horizontal 3; vertical 2; };
        };
 
-       special "cursor"
+       part "cursor"
        {
                graphic FOCUS "cursor";
                align 0.0 0.5;
@@ -417,25 +432,25 @@ style "entry-multiline"
                graphic NORMAL "sunken_white_bg";
        };
 
-       special "text"
+       part "text"
        {
                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; };
        };
 
-       special "cursor"
+       part "cursor"
        {
                graphic FOCUS "cursor";
                size 2 12;
        };
 
-       special "slider"
+       part "slider"
        {
                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; };
        };
 };
 
@@ -443,7 +458,7 @@ 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"
@@ -455,24 +470,24 @@ style "list"
                graphic NORMAL "sunken_white_bg";
        };
 
-       special "selection"
+       part "selection"
        {
                graphic NORMAL "selection";
                fill 1.0 1.0;
-               margin { top 2; right 13; bottom 2; left 2; };
+               margin { vertical 2; right 13; left 2; };
        };
 
-       special "items"
+       part "items"
        {
-               margin { top 2; right 13; bottom 2; left 2; };
+               margin { vertical 2; right 13; left 2; };
        };
 
-       special "slider"
+       part "slider"
        {
                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; };
        };
 };
 
@@ -494,14 +509,14 @@ style "dropdown"
                fill 0.0 0.0;
        };
 
-       special "text"
+       part "text"
        {
                align 0.0 0.5;
                fill 0.0 0.0;
-               margin { left 2; };
+               margin { vertical 2; left 3; right 17; };
        };
 
-       special "list";
+       part "list";
 };
 
 graphic "switch_up"
@@ -522,7 +537,7 @@ style "toggle"
 {
        font_color 0.0 0.0 0.0;
 
-       special "text"
+       part "text"
        {
                align 0.5 1.0;
                fill 0.0 0.0;
@@ -541,7 +556,7 @@ graphic "horizontal_slot"
 {
        texture "gui.png";
        slice 32 97 12 2;
-       border { left 1; right 1; };
+       border { horizontal 1; };
 };
 
 graphic "horizontal_knob"
@@ -558,10 +573,10 @@ style "hslider"
                graphic NORMAL "horizontal_slot";
                align 0.5 0.5;
                fill 1.0 0.0;
-               margin { left 4; right 4; };
+               margin { horizontal 4; };
        };
 
-       special "slider"
+       part "slider"
        {
                graphic NORMAL "horizontal_knob";
                fill 0.0 0.0;
@@ -572,7 +587,7 @@ graphic "vertical_slot"
 {
        texture "gui.png";
        slice 32 75 2 12;
-       border { top 1; bottom 1; };
+       border { vertical 1; };
 };
 
 graphic "vertical_knob"
@@ -589,10 +604,10 @@ style "vslider"
                graphic NORMAL "vertical_slot";
                align 0.5 0.5;
                fill 0.0 1.0;
-               margin { top 4; bottom 4; };
+               margin { vertical 4; };
        };
 
-       special "slider"
+       part "slider"
        {
                graphic NORMAL "vertical_knob";
                fill 0.0 0.0;