// 480 x 920 //origin size 480x800 //HD size 720x1280 #define HD_SCALE 800/1280 #define WIDTH_OF_DAY_VIEW 480 #define HEIGHT_OF_DAY_VIEW 855*HD_SCALE group { name, "main/day"; parts { part { name, "base"; type, RECT; description { state, "default" 0.0; color, 0 0 0 0; } } part { name, "list/sw"; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1.to, "base"; rel2 { relative, 1.0 0.0; to, "base"; } align, 0.5 0.0; } description { state, "line1" 0.0; inherit, "default" 0.0; min, 0 120; fixed, 0 1; } description { state, "line2" 0.0; inherit, "default" 0.0; min, 0 240; fixed, 0 1; } } part { name, "cont/sw"; type, SWALLOW; scale, 1; description { state, "default" 0.0; rel1 { relative, 0.0 1.0; to_x, "base"; to_y, "list/sw"; } rel2.to, "base"; align, 0.5 0.0; } } part { name, "line/top"; type, RECT; description { state, "default" 0.0; min, 0 2; fixed, 0 1; rel1.to, "base"; rel2 { relative, 1.0 0.0; to, "base"; } color, COLOR_OF_TOP_LINE_FOR_DAY; align, 0.5 0.5; } } } programs { program { name, "list/line0"; signal, "go,line0"; source, "prog"; action, STATE_SET "default" 0.0; target, "list/sw"; transition, SINUSOIDAL 0.5; } program { name, "list/line1"; signal, "go,line1"; source, "prog"; action, STATE_SET "line1" 0.0; target, "list/sw"; transition, SINUSOIDAL 0.5; } program { name, "list/line2"; signal, "go,line2"; source, "prog"; action, STATE_SET "line2" 0.0; target, "list/sw"; transition, SINUSOIDAL 0.5; } } }