1 # $Id: player-overlay.rb 1 2005-04-19 09:41:42Z tilman $
3 c = EDJE.collection("euphoria")
5 c.part("player.overlay", :rect) do |p|
11 d.rel[0].to = d.rel[1].to = c.part("root")
12 d.rel[1].set_rel(1.0, 0.0)
13 d.rel[1].set_offset(0, 170)
17 {"show" => "visible", "hide" => "default"}.each do |name, state|
18 c.program("player.normal.group.drawer.#{name}", :set_state) do |p|
23 ProgramTarget.new(c.part("player.normal.group.drawer.volume"))
25 ProgramTarget.new(c.part("player.normal.group.drawer.left"))
29 c.program("player.overlay.mouse.out", :exec_script) do |p|
31 p.source = "player.overlay"
34 cancel_timer (get_int (drawer_timer));
35 set_int (drawer_timer, timer (1.0, "drawer_timer_cb", 0));
39 c.program("player.overlay.mouse.in", :exec_script) do |p|
41 p.source = "player.overlay"
44 new i = get_int (drawer_timer);
48 set_int (drawer_timer, -1);
51 if (!get_int (toggle_state_drawer))
52 run_program (PROGRAM:"player.normal.group.drawer.show");