}
}
part { name: "sky";
- mouse_events: 0;
+ mouse_events: 1;
clip_to: "clip";
description { state: "default" 0.0;
aspect: 2.6225 2.6225;
}
}
}
- group { name: "segment_test";
+ group { name: "segment_test";
parts{
part {
name: "bg";
type: RECT;
scale: 1; //allow scaling
description {
- state: "default" 0.0;
- color: 0 0 0 0;
+ state: "default" 0.0;
+ visible: 0;
+ visible: 0;
+ min: 480 400;
}
}
part { name: "top_padding";
scale: 1; //allow scaling
description {
state: "default" 0.0;
+ visible: 0;
min : 250 30; //minimum size for gap filler
fixed: 0 1;
- rel1 { relative: 0 0; }
- rel2 { relative: 1 0; }
- color: 0 0 0 0;
+ rel1 {
+ relative: 0 0;
+ }
+ rel2 {
+ relative: 1 0;
+ }
align: 0 0;
}
}
- part { name: "segment";
+ part { name: "segment1";
type: SWALLOW;
scale: 1;
description {
state: "default" 0.0;
fixed: 1 1;
- min: 360 50;
- max: 360 50;
- rel1 { relative: 0 1.0; to_y: "top_padding"; }
- align: 0.5 0;
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "bg";
+ to_y: "top_padding";
+ }
+ rel2 {
+ relative: 1.0 0.25;
+ to: "bg";
+ }
+ align: 0.5 0.0;
}
}
- part { name: "btn1_bottom_padding";
+ part { name: "segment1_bottom_padding";
type: RECT;
scale: 1;
description {
state: "default" 0.0;
- min : 250 30;
- max : 250 30;
+ visible: 0;
+ min : 250 10;
+ max : 250 10;
fixed: 1 1;
align: 0.5 0;
- rel1 { relative: 0 1.0; to_y: "segment"; }
- rel2 { relative: 1 1.0; to_y: "segment"; }
- color: 0 255 0 0;
+ rel1 {
+ relative: 0 1.0;
+ to_y: "segment1";
+ }
+ rel2 {
+ relative: 1 1.0;
+ to_y: "segment1";
+ }
}
}
- part { name: "add";
+ part { name: "segment2";
type: SWALLOW;
scale: 1;
description {
state: "default" 0.0;
fixed: 1 1;
- align: 0.5 0;
- min: 250 50;
- max: 250 50;
- rel1 { relative: 0 1.0; to_y: "btn1_bottom_padding"; }
- align: 0.5 0;
+ rel1 {
+ relative: 0.1 1.0;
+ to_x: "bg";
+ to_y: "segment1_bottom_padding";
+ }
+ rel2 {
+ relative: 0.9 160/400;
+ to: "bg";
+ }
+ align: 0.5 0.0;
}
}
- part { name: "btn2_bottom_padding";
+ part { name: "segment2_bottom_padding";
type: RECT;
scale: 1;
description {
state: "default" 0.0;
- min : 250 50;
- max : 250 50;
+ visible: 0;
+ min : 250 10;
+ max : 250 10;
fixed: 1 1;
align: 0.5 0;
- rel1 { relative: 0 1.0; to_y: "add"; }
- rel2 { relative: 1 1.0; to_y: "add"; }
- color: 0 0 0 0;
- }
+ rel1 {
+ relative: 0 1.0;
+ to_y: "segment2";
+ }
+ rel2 {
+ relative: 1 1.0;
+ to_y: "segment2";
+ }
+ }
}
- part { name: "del";
+ part { name: "segment3";
type: SWALLOW;
scale: 1;
description {
state: "default" 0.0;
fixed: 1 1;
- min: 250 50;
- max: 250 50;
- align: 0.5 0;
- rel1 { relative: 0 1.0; to_y: "btn2_bottom_padding"; }
- align: 0.5 0;
+ rel1 {
+ relative: 0.2 1.0;
+ to_x: "bg";
+ to_y: "segment2_bottom_padding";
+ }
+ rel2 {
+ relative: 0.8 0.6;
+ to: "bg";
+ }
+ align: 0.5 0.0;
}
}
- part { name: "btn3_bottom_padding";
+ part { name: "segment3_bottom_padding";
type: RECT;
scale: 1;
description {
state: "default" 0.0;
- min : 250 50;
- max : 250 50;
+ visible: 0;
+ min : 250 10;
+ max : 250 10;
fixed: 1 1;
align: 0.5 0;
- rel1 { relative: 0 1.0; to_y: "del"; }
- rel2 { relative: 1 1.0; to_y: "del"; }
- color: 0 0 0 0;
+ rel1 {
+ relative: 0 1.0;
+ to_y: "segment3";
+ }
+ rel2 {
+ relative: 1 1.0;
+ to_y: "segment3";
+ }
}
}
- part { name: "insert";
+ part { name: "segment4";
type: SWALLOW;
scale: 1;
description {
- fixed: 1 1;
- min: 250 50;
- max: 250 50;
state: "default" 0.0;
- rel1 { relative: 0 1.0; to_y: "btn3_bottom_padding"; }
- align: 0.5 0;
+ fixed: 1 1;
+ rel1 {
+ relative: 0.3 1.0;
+ to_x: "bg";
+ to_y: "segment3_bottom_padding";
+ }
+ rel2 {
+ relative: 0.7 340/400;
+ to: "bg";
+ }
+<<<<<<< HEAD
+=======
+ align: 0.5 0.0;
+>>>>>>> remotes/origin/upstream
}
}
- part { name: "btn_bottom_padding";
+ part { name: "btn1_bottom_padding";
type: RECT;
scale: 1;
description {
state: "default" 0.0;
- min : 0 30;
- rel1 { relative: 0 1.0; to_y: "insert"; }
- rel2 { relative: 1 1.0;}
- color: 0 0 0 0;
- align: 0.5 1;
+ visible: 0;
+ min : 250 100;
+ max : 250 100;
+ fixed: 1 1;
+ align: 0.5 0;
+ rel1 {
+ relative: 0 1.0;
+ to_y: "segment4";
+ }
+ rel2 {
+ relative: 1 1.0;
+ to_y: "segment4";
+ }
}
}
- }
+ }
}
group { name: "bg_overlay";
images {
}
}
}
+ group {
+ name: "test/layout";
+ images {
+ image: "sky.jpg" LOSSY 80;
+ }
+ parts {
+ part {
+ name: "bg";
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 100;
+ image.normal: "sky.jpg";
+ }
+ }
+ part {
+ name: "swallow";
+ type: SWALLOW;
+ description {
+ state: "default" 0.0;
+ rel1.offset: 8 8;
+ rel2.offset: -7 -7;
+ }
+ }
+ }
+ }
}
-