Changeset View
Changeset View
Standalone View
Standalone View
data/elementary/themes/edc/efl/button.edc
Show First 20 Lines • Show All 307 Lines • ▼ Show 20 Line(s) | 305 | script { | |||
---|---|---|---|---|---|
308 | eval_mode(m); | 308 | eval_mode(m); | ||
309 | } | 309 | } | ||
310 | } | 310 | } | ||
311 | program { name: "button_unclick"; | 311 | program { name: "button_unclick"; | ||
312 | signal: "mouse,up,1"; source: "event"; | 312 | signal: "mouse,up,1"; source: "event"; | ||
313 | action: SIGNAL_EMIT "efl,action,unpress" "efl"; | 313 | action: SIGNAL_EMIT "efl,action,unpress" "efl"; | ||
314 | after: "button_unclick_anim"; | 314 | after: "button_unclick_anim"; | ||
315 | } | 315 | } | ||
316 | program { name: "button_pressed_out"; | ||||
317 | signal: "mouse,pressed,out"; source: "event"; | ||||
318 | action: SIGNAL_EMIT "efl,action,mouse_out" "efl"; | ||||
319 | } | ||||
316 | program { name: "button_unclick_anim"; | 320 | program { name: "button_unclick_anim"; | ||
317 | script { | 321 | script { | ||
318 | new m = get_int(btmode); | 322 | new m = get_int(btmode); | ||
319 | m &= ~PRESSED; set_int(btmode, m); | 323 | m &= ~PRESSED; set_int(btmode, m); | ||
320 | eval_mode(m); | 324 | eval_mode(m); | ||
321 | } | 325 | } | ||
322 | } | 326 | } | ||
323 | program { name: "buttonactivate"; | 327 | program { name: "buttonactivate"; | ||
324 | signal: "efl,anim,activate"; source: "efl"; | 328 | signal: "efl,anim,activate"; source: "efl"; | ||
325 | action: STATE_SET "pressed" 0.0; | 329 | action: STATE_SET "pressed" 0.0; | ||
326 | target: "base"; | 330 | target: "base"; | ||
327 | after: "button_unpressed_anim"; | 331 | after: "button_unpressed_anim"; | ||
328 | } | 332 | } | ||
329 | program { name: "button_unpressed_anim"; | 333 | program { name: "button_unpressed_anim"; | ||
330 | action: STATE_SET "default" 0.0; | 334 | action: STATE_SET "default" 0.0; | ||
331 | in: 0.5 0.0; | 335 | in: 0.5 0.0; | ||
332 | target: "base"; | 336 | target: "base"; | ||
333 | } | 337 | } | ||
334 | program { | | |||
335 | signal: "mouse,clicked,1"; source: "event"; | | |||
336 | action: SIGNAL_EMIT "efl,action,click" "efl"; | | |||
337 | } | | |||
338 | program { name: "button_text_visible"; | 338 | program { name: "button_text_visible"; | ||
339 | signal: "efl,state,text,set"; source: "efl"; | 339 | signal: "efl,state,text,set"; source: "efl"; | ||
340 | script { | 340 | script { | ||
341 | new m = get_int(btmode); | 341 | new m = get_int(btmode); | ||
342 | m |= LABEL; set_int(btmode, m); | 342 | m |= LABEL; set_int(btmode, m); | ||
343 | eval_mode(m); | 343 | eval_mode(m); | ||
344 | } | 344 | } | ||
345 | } | 345 | } | ||
▲ Show 20 Lines • Show All 438 Lines • Show Last 20 Lines |