-# $Id: playlist_item.rb 23 2005-05-28 19:59:03Z tilman $
+# $Id: playlist_item.rb 26 2005-06-22 20:19:41Z tilman $
TEXT_COLOR_HILIGHT = "#f0fafd"
d.color = color
d.outline_color = OUTLINE_COLOR
- d.font = "fonts/acknowledge2.ttf"
+ d.font = "acknowledge2.ttf"
d.font_size = 12
d.text = "Dark Tranquillity - Through Smudged Lenses"
d.set_text_align(0.0)
["hilighted", "unhilighted"].each do |state|
c.program("playlist_item.#{state}", :set_state) do |p|
p.signal = "playlist_item.#{state}"
+ p.source = "*"
p.state = state == "unselected" ? "default" : state
p.mode = state == "selected" ? :accelerate : :decelerate
p.time = 0.5
["selected", "unselected"].each do |state|
c.program("playlist_item.#{state}", :set_state) do |p|
p.signal = "playlist_item.#{state}"
+ p.source = "*"
p.state = state
p.targets << ProgramTarget.new(c.part("background"))
end