1 # $Id: player-drawer-bottom.rb 1 2005-04-19 09:41:42Z tilman $
3 c = EDJE.collection("euphoria")
7 c.part("player.normal.group.drawer.bottom", :rect) do |p|
14 d.rel[0].to = d.rel[1].to = root
15 d.rel[0].set_offset(45, 0)
17 d.rel[1].set_rel(0.0, 0.0)
18 d.rel[1].set_offset(226, 177)
21 p.description("visible") do |d|
27 c.part("player.background.drawer.bottom.shadow", :image) do |p|
31 d.rel[0].to = d.rel[1].to = bottom.first
32 d.image = "images/background-drawer-bottom-shadow.png"
36 c.part("player.background.drawer.bottom.top", :image) do |p|
40 d.rel[0].to = d.rel[1].to = bottom.first
43 d.image = "images/background-drawer-bottom-top.png"
47 c.part("player.background.drawer.bottom.bottom", :image) do |p|
51 d.rel[0].to = d.rel[1].to = bottom.first
52 d.rel[0].set_offset(0, 37)
55 d.image = "images/background-drawer-bottom-bottom.png"
59 c.part("player.background.drawer.bottom.arm", :image) do |p|
63 d.rel[0].to = d.rel[1].to = bottom.first
64 d.rel[0].set_offset(64, 0)
67 d.image = "images/background-drawer-bottom-arm.png"
71 c.part("player.background.drawer.bottom.title", :image) do |p|
75 d.rel[0].to = d.rel[1].to = bottom.first
76 d.rel[0].set_offset(9, 26)
79 d.image = "images/background-drawer-bottom-title.png"
86 h.each do |name, (x, im)|
87 bottom << Button.new(c, "player.button." << name, bottom.first,
88 "button-#{im || name}", x, 151).part
91 c.part("player.background.drawer.bottom.clip", :rect) do |p|
93 d.rel[0].to = d.rel[1].to = root
94 d.rel[0].set_offset(45, 155)
95 d.rel[1].set_rel(0.0, 0.0)
96 d.rel[1].set_offset(226, 332)
99 bottom.each { |i| i.clip = p }
101 c.part("player.normal.group.drawer.bottom").description("visible") do |d|
102 d.rel[0].to = d.rel[1].to = p
106 {"show" => "visible", "hide" => "default"}.each do |prog, state|
107 c.program("player.normal.group.drawer.bottom.#{prog}",
112 ProgramTarget.new(c.part("player.normal.group.drawer.bottom"))