X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=engineer.res;h=7f75ae494214146e84dc095614b84b2882c64d8e;hb=aead7f2da831199fbb8f6950b067656b2965c2fa;hp=191663f98c39a91c940850ab28cdd18d4c23777b;hpb=52cbe8d99669f843f8f75c51128e2748584dd03a;p=r2c2.git diff --git a/engineer.res b/engineer.res index 191663f..7f75ae4 100644 --- a/engineer.res +++ b/engineer.res @@ -1,226 +1,293 @@ -font "dejavu-12.font"; -font "digitalreadout-16.font"; +default_font "dejavu-12.font"; -texture "gui.png"; - -graphic "button" +graphic "greybutton" { - texture "gui"; - slice 8 112 21 10; + texture "gui.png"; + slice 0 54 21 10; border { top 2; right 3; bottom 4; left 2; }; shadow { top 0; right 1; bottom 2; left 0; }; }; -graphic "buttondown" +graphic "greybuttondown" { - texture "gui"; - slice 38 112 21 10; + texture "gui.png"; + slice 24 54 21 10; border { top 2; right 3; bottom 4; left 2; }; shadow { top 0; right 1; bottom 2; left 0; }; }; graphic "greenbutton" { - texture "gui"; - slice 8 97 21 10; + texture "gui.png"; + slice 0 42 21 10; border { top 2; right 3; bottom 4; left 2; }; shadow { top 0; right 1; bottom 2; left 0; }; }; graphic "greenbuttondown" { - texture "gui"; - slice 38 97 21 10; + texture "gui.png"; + slice 24 42 21 10; border { top 2; right 3; bottom 4; left 2; }; shadow { top 0; right 1; bottom 2; left 0; }; }; graphic "redbutton" { - texture "gui"; - slice 8 82 21 10; + texture "gui.png"; + slice 0 30 21 10; border { top 2; right 3; bottom 4; left 2; }; shadow { top 0; right 1; bottom 2; left 0; }; }; graphic "redbuttondown" { - texture "gui"; - slice 38 82 21 10; + texture "gui.png"; + slice 24 30 21 10; border { top 2; right 3; bottom 4; left 2; }; shadow { top 0; right 1; bottom 2; left 0; }; }; -graphic "panel" +graphic "panelbg" +{ + texture "gui.png"; + slice 0 68 30 20; + border { top 2; right 2; bottom 2; left 2; }; +}; + +graphic "entrybg" { - texture "gui"; - slice 8 158 30 20; + texture "gui.png"; + slice 32 72 20 16; border { top 2; right 2; bottom 2; left 2; }; }; +graphic "entrycursor" +{ + texture "gui.png"; + slice 54 74 2 12; +}; + +graphic "yellowlamp" +{ + texture "gui.png"; + slice 30 102 12 12; +}; + +graphic "yellowlamplit" +{ + texture "gui.png"; + slice 30 116 12 12; +}; + graphic "greenlamp" { - texture "gui"; - slice 87 222 12 12; + texture "gui.png"; + slice 44 102 12 12; }; graphic "greenlamplit" { - texture "gui"; - slice 87 236 12 12; + texture "gui.png"; + slice 44 116 12 12; }; graphic "redlamp" { - texture "gui"; - slice 101 222 12 12; + texture "gui.png"; + slice 58 102 12 12; }; graphic "redlamplit" { - texture "gui"; - slice 101 236 12 12; + texture "gui.png"; + slice 58 116 12 12; }; graphic "digidisplay" { - texture "gui"; - slice 14 226 48 24; + texture "gui.png"; + slice 0 108 28 20; border { top 5; right 5; bottom 5; left 5; }; }; graphic "hsliderslot" { - texture "gui"; - slice 8 188 60 10; + texture "gui.png"; + slice 0 90 60 10; border { top 0; right 5; bottom 0; left 5; }; }; -graphic "hslider" +graphic "hsliderknob" { - texture "gui"; - slice 73 105 32 13; + texture "gui.png"; + slice 0 15 32 13; shadow { top 0; right 2; bottom 3; left 0; }; }; -style "button" "" +style "button" { font_color 0 0 0; - part "button" + part { - graphic normal "button"; - graphic active "buttondown"; - align 0 -1; - fill false false; + graphic NORMAL "greybutton"; + graphic ACTIVE "greybuttondown"; + align 0.5 0.0; + fill 0.0 0.0; }; - part "text" + special "text" { - align 0 1; + align 0.5 1.0; + fill 0.0 0.0; }; }; -style "button" "green" +style "button-green" { font_color 0 0 0; - part "button" + part { - graphic normal "greenbutton"; - graphic active "greenbuttondown"; - align 0 -1; - fill false false; + graphic NORMAL "greenbutton"; + graphic ACTIVE "greenbuttondown"; + align 0.5 0.0; + fill 0.0 0.0; }; - part "text" + special "text" { - align 0 1; + align 0.5 1.0; + fill 0.0 0.0; }; }; -style "button" "red" +style "button-red" { font_color 0 0 0; - part "button" + part { - graphic normal "redbutton"; - graphic active "redbuttondown"; - align 0 -1; - fill false false; + graphic NORMAL "redbutton"; + graphic ACTIVE "redbuttondown"; + align 0.5 0.0; + fill 0.0 0.0; }; - part "text" + special "text" { - align 0 1; + align 0.5 1.0; + fill 0.0 0.0; }; }; -style "panel" "" +style "panel" { - part "background" + part { - graphic normal "panel"; + graphic NORMAL "panelbg"; }; - part "children"; + special "children"; }; -style "indicator" ""; +style "indicator" +{ + part + { + graphic NORMAL "yellowlamp"; + graphic ACTIVE "yellowlamplit"; + align 0.5 0.5; + fill 0.0 0.0; + }; +}; -style "indicator" "green" +style "indicator-green" { - part "lamp" + part { - graphic normal "greenlamp"; - graphic active "greenlamplit"; - fill false false; + graphic NORMAL "greenlamp"; + graphic ACTIVE "greenlamplit"; + align 0.5 0.5; + fill 0.0 0.0; }; }; -style "indicator" "red" +style "indicator-red" { - part "lamp" + part { - graphic normal "redlamp"; - graphic active "redlamplit"; - fill false false; + graphic NORMAL "redlamp"; + graphic ACTIVE "redlamplit"; + align 0.5 0.5; + fill 0.0 0.0; }; }; -style "label" "" +style "label" { font_color 0 0 0; - part "text"; + special "text"; }; -style "label" "digital" +style "label-digital" { - font "digitalreadout-16"; + font "digitalreadout-16.font"; font_color 0.3 1 0.3; - part "background" + part { - graphic normal "digidisplay"; + graphic NORMAL "digidisplay"; }; - part "text" + special "text" { - fill false false; - align 0 0; + fill 0.0 0.0; + align 0.5 0.5; }; }; -style "hslider" "" +style "hslider" { - part "background" + part { - graphic normal "hsliderslot"; - fill true false; + graphic NORMAL "hsliderslot"; + fill 1.0 0.0; }; - part "slider" + special "slider" { - graphic normal "hslider"; + graphic NORMAL "hsliderknob"; + fill 0.0 0.0; }; }; + +style "entry" +{ + font_color 0 0 0; + + part + { + graphic NORMAL "entrybg"; + }; + + special "text" + { + align 0.0 0.5; + fill 0.0 0.0; + margin { left 3; right 3; }; + }; + + special "cursor" + { + graphic FOCUS "entrycursor"; + align 0.0 0.5; + fill 0.0 0.0; + margin { left 3; right 3; }; + }; +}; + +style "root" +{ + special "children"; +};