aboutsummaryrefslogtreecommitdiffstats
path: root/data/themes/edc/elm/map.edc
blob: c84533e74433d9e678cd9d955e741fbbe10ce770 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
group { name: "elm/map/base/default";
   inherit: "elm/photocam/base/default";
}

group { name: "elm/map/marker/radio/default";
   data.item: "size_w" 35;
   data.item: "size_h" 35;
   data.item: "size_max_w" 35;
   data.item: "size_max_h" 35;
   images.image: "map_marker.png" COMP;
   parts {
      part { name: "mark";
         description { state: "default" 0.0;
            fixed: 1 1;
            rel1.relative: 0.5 0.5;
            rel1.offset: 0 3;
            rel2.relative: 0.5 0.5;
            rel2.offset: 0 3;
            align: 0.5 1.0;
            min: 65 35;
            max: 65 35;
            image.normal: "map_marker.png";
         }
      }
      part { name: "elm.icon"; type: SWALLOW; mouse_events:  0;
         description { state: "default" 0.0;
            rel1.to: "mark";
            rel1.relative: (25/65) (5/35);
            rel2.to: "mark";
            rel2.relative: (40/65) (20/35);
            rel2.offset: 0 0;
         }
      }
      part { name: "elm.text"; type: TEXT;
         effect: SHADOW BOTTOM;
         description { state: "default" 0.0;
            fixed: 1 1;
            rel1.to: "elm.icon";
            rel2.to: "elm.icon";
            color_class: "map_radio";
            color: FN_COL_DISABLE_SHADOW;
            text { font: FNBD; size: 10;
               text_class: "map_radio";
               min: 1 1;
               ellipsis: -1;
            }
         }
      }
   }
}

group { name: "elm/map/marker/empty/default";
   data.item: "size_w" 16;
   data.item: "size_h" 16;
   data.item: "size_max_w" 24;
   data.item: "size_max_h" 24;
   parts {
      part { name: "knob"; type: SPACER;
         description { state: "default" 0.0;
            min: 16 16;
            max: 24 24;
         }
      }
      part { name: "elm.icon"; type: SWALLOW; mouse_events:  0;
         description { state: "default" 0.0;
            rel1.to: "knob";
            rel2.to: "knob";
         }
      }
      part { name: "elm.text"; type: TEXT;
         effect: SHADOW BOTTOM;
         description { state: "default" 0.0;
            rel1.to: "knob";
            rel2.to: "knob";
            color_class: "map_empty";
            color: FN_COL_DEFAULT;
            text { font: FNBD; size: 10;
               text_class: "map_empty";
               min: 1 1;
               ellipsis: -1;
            }
         }
      }
   }
}

group { name: "elm/map/circle/base/default";
   images.image: "map_circle.png" COMP;
   parts {
      part { name: "base";
         ignore_flags: ON_HOLD;
         description { state: "default" 0.0;
            image.normal: "map_circle.png";
         }
      }
   }
}

group { name: "elm/map/scale/base/default";
   data.item: "size_w" 100;
   data.item: "size_h" 22;
   images.image: "map_scale.png" COMP;
   parts {
      part { name: "scale";
         description { state: "default" 0.0;
            min: 16 16;
            image.border: 6 6 5 5;
            image.normal: "map_scale.png";
         }
      }
      part { name: "elm.text"; type: TEXT;
         effect: SHADOW BOTTOM;
         description { state: "default" 0.0;
            rel1.offset: 6 5;
            rel2.offset: -7 -5;
            color_class: "map_scale";
            color: FN_COL_DEFAULT;
            text { font: FNBD; size: 10;
               text_class: "map_scale";
               min: 1 1;
               ellipsis: -1;
               align: 0.0 0.0;
            }
         }
      }
   }
}

group { name: "elm/map/marker_bubble/default";
   data.item: "size_w" 320;
   data.item: "size_h" 160;
   images.image: "bub_base_b0.png" COMP;
   images.image: "bub_base_b1.png" COMP;
   images.image: "bub_base_b2.png" COMP;
   images.image: "bub_over_bot.png" COMP;
   images.image: "shine.png" COMP;
   parts {
      part { name: "base0";
         description { state: "default" 0.0;
            image.normal: "bub_base_b0.png";
            image.border: 12 0 8 13;
            image.middle: SOLID;
            fill.smooth: 0;
            rel2.relative: 0.0 1.0;
            rel2.to: "base1";
         }
      }
      part { name: "base1";
         description { state: "default" 0.0;
            image.normal: "bub_base_b1.png";
            image.border: 0 0 8 13;
            image.middle: SOLID;
            fill.smooth: 0;
            max: 17 99999;
            min: 17 22;
         }
      }
      part { name: "base2";
         description { state: "default" 0.0;
            image.normal: "bub_base_b2.png";
            image.border: 0 12 8 13;
            image.middle: SOLID;
            fill.smooth: 0;
            rel1.relative: 1.0 0.0;
            rel1.to: "base1";
         }
      }
      part { name: "elm.swallow.content"; type: SWALLOW;
         description { state: "default" 0.0;
            rel1.to: "base0";
            rel1.offset: 5 4;
            rel2.to: "base2";
            rel2.offset: -6 -12;
         }
      }
      part { name: "over"; mouse_events:  0;
         description { state: "default" 0.0;
            rel1.to: "base0";
            rel1.offset: 2 1;
            rel2.to: "base2";
            rel2.offset: -3 1;
            rel2.relative: 1.0 0.4;
            image.normal: "bub_over_bot.png";
            fill.smooth: 0;
         }
      }
      part { name: "shine_clip"; type: RECT;
         description { state: "default" 0.0;
            rel1.to: "over";
            rel1.offset: 0 -10;
            rel2.to: "over";
         }
      }
      part { name: "shine"; mouse_events: 0;
         clip_to: "shine_clip";
         description { state: "default" 0.0;
            image.normal: "shine.png";
            rel1.offset: 0 -2;
            rel1.to: "over";
            rel2.relative: 1.0 0.0;
            rel2.offset: -1 2;
            rel2.to: "over";
            FIXED_SIZE(69, 5)
         }
      }
   }
}