-# $Id: Rakefile 1 2005-04-19 09:41:42Z tilman $
+# $Id: Rakefile 26 2005-06-22 20:19:41Z tilman $
require "rake/clean"
desc "Build #{EDJ}"
file EDJ => deps do |t|
- sh "redact #{SRC} -o #{EDJ}"
+ sh "redact --image_dir images --font_dir fonts #{SRC} -o #{EDJ}"
end
-# $Id: button.rb 1 2005-04-19 09:41:42Z tilman $
+# $Id: button.rb 26 2005-06-22 20:19:41Z tilman $
class Button
attr_reader :part
d.rel[0].set_offset(@x, @y)
d.auto_rel = true
- d.image = "images/#{@image}-#{state}.png"
+ d.image = "#{@image}-#{state}.png"
end
end
end
d.rel[0].set_offset(@x, @y)
d.auto_rel = true
- d.image = "images/#{@image}.png"
+ d.image = "#{@image}.png"
end
p.description("hover") do |d|
d.rel[0].set_offset(@x, @y)
d.auto_rel = true
- d.image = "images/#{@image}.png"
+ d.image = "#{@image}.png"
end
end
d.rel[0].set_offset(@x, @y)
d.auto_rel = true
- d.image = "images/#{@image}-#{state}.png"
+ d.image = "#{@image}-#{state}.png"
end
end
end
-# $Id: intro.rb 1 2005-04-19 09:41:42Z tilman $
+# $Id: intro.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
d.rel[1].set_rel(0.0, 0.0)
d.auto_rel = true
- d.image = "images/anim-intro_00.png"
+ d.image = "anim-intro_00.png"
1.upto(74) do |i|
- d.tweens << "images/anim-intro_%02i.png" % i
+ d.tweens << "anim-intro_%02i.png" % i
end
end
end
-# $Id: player-display-background.rb 1 2005-04-19 09:41:42Z tilman $
+# $Id: player-display-background.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
root = c.part("player.normal.group.display")
p.description do |d|
d.rel[0].to = d.rel[1].to = root
- d.image = "images/background-display.png"
+ d.image = "background-display.png"
end
end
p.description do |d|
d.rel[0].to = d.rel[1].to = root
- d.image = "images/background-display-overlay.png"
+ d.image = "background-display-overlay.png"
end
end
d.rel[0].set_offset(5, 3)
d.auto_rel = true
- d.image = "images/background-display-details.png"
+ d.image = "background-display-details.png"
end
end
-# $Id: player-display-seeker.rb 1 2005-04-19 09:41:42Z tilman $
+# $Id: player-display-seeker.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
parent = c.part("player.normal.group.display")
d.rel[0].set_offset(15, 80)
d.auto_rel = true
- d.image = "images/anim-seek-progress.png"
+ d.image = "anim-seek-progress.png"
end
end
-# $Id: player-display-track.rb 18 2005-04-29 14:31:10Z tilman $
+# $Id: player-display-track.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
parent = c.part("player.normal.group.display")
d.outline_color = OUTLINE_COLOR
d.text = "00:06:35"
- d.font = "fonts/acknowledge2.ttf"
+ d.font = "acknowledge2.ttf"
d.font_size = 15
d.set_text_align(1.0, 0.5)
end
d.set_align(0.0)
d.text = "Metallica - Battery"
- d.font = "fonts/acknowledge2.ttf"
+ d.font = "acknowledge2.ttf"
d.font_size = 14
d.set_text_min(true, true)
d.set_text_align(0.0)
-# $Id: player-drawer-bottom-eq.rb 1 2005-04-19 09:41:42Z tilman $
+# $Id: player-drawer-bottom-eq.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
parts = []
d.rel[0].set_offset(4, 41)
d.auto_rel = true
- d.image = "images/background-eq.png"
+ d.image = "background-eq.png"
end
h = {"preamp" => 11, "band01" => 28, "band02" => 42,
-# $Id: player-drawer-bottom.rb 1 2005-04-19 09:41:42Z tilman $
+# $Id: player-drawer-bottom.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
root = c.part("root")
p.description do |d|
d.rel[0].to = d.rel[1].to = bottom.first
- d.image = "images/background-drawer-bottom-shadow.png"
+ d.image = "background-drawer-bottom-shadow.png"
end
end
d.rel[0].to = d.rel[1].to = bottom.first
d.auto_rel = true
- d.image = "images/background-drawer-bottom-top.png"
+ d.image = "background-drawer-bottom-top.png"
end
end
d.rel[0].set_offset(0, 37)
d.auto_rel = true
- d.image = "images/background-drawer-bottom-bottom.png"
+ d.image = "background-drawer-bottom-bottom.png"
end
end
d.rel[0].set_offset(64, 0)
d.auto_rel = true
- d.image = "images/background-drawer-bottom-arm.png"
+ d.image = "background-drawer-bottom-arm.png"
end
end
d.rel[0].set_offset(9, 26)
d.auto_rel = true
- d.image = "images/background-drawer-bottom-title.png"
+ d.image = "background-drawer-bottom-title.png"
end
end
-# $Id: player-drawer-left.rb 21 2005-05-07 16:05:49Z tilman $
+# $Id: player-drawer-left.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
p.description do |d|
d.rel[0].to = d.rel[1].to = parts.first
- d.image = "images/background-drawer-left-shadow.png"
+ d.image = "background-drawer-left-shadow.png"
end
end
p.description do |d|
d.rel[0].to = d.rel[1].to = parts.first
- d.image = "images/background-drawer-left.png"
+ d.image = "background-drawer-left.png"
end
end
d.rel[0].set_offset(34, 49)
d.auto_rel = true
- d.image = "images/background-drawer-left-arm.png"
+ d.image = "background-drawer-left-arm.png"
end
end
-# $Id: player-drawer-volume.rb 1 2005-04-19 09:41:42Z tilman $
+# $Id: player-drawer-volume.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
root = c.part("root")
d.rel[0].to = d.rel[1].to = root
d.auto_rel = true
- d.image = "images/background-drawer-volume-shadow.png"
+ d.image = "background-drawer-volume-shadow.png"
end
end
d.rel[0].to = d.rel[1].to = root
d.auto_rel = true
- d.image = "images/background-drawer-volume.png"
+ d.image = "background-drawer-volume.png"
end
VerticalSlider.new(c, "player.slider.volume", p, 38, 21)
-# $Id: player-main-background.rb 2 2005-04-23 13:23:58Z tilman $
+# $Id: player-main-background.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("euphoria")
root = c.part("root")
p.description do |d|
d.rel[0].to = d.rel[1].to = root
- d.image = "images/background-shadow.png"
+ d.image = "background-shadow.png"
end
end
p.description do |d|
d.rel[0].to = d.rel[1].to = root
- d.image = "images/background-alpha.png"
+ d.image = "background-alpha.png"
end
end
d.rel[0].set_offset(45, 0)
d.auto_rel = true
- d.image = "images/background-titlebar.png"
+ d.image = "background-titlebar.png"
end
end
d.rel[0].set_offset(70, 6)
d.auto_rel = true
- d.image = "images/background-titlebar-title.png"
+ d.image = "background-titlebar-title.png"
end
end
d.rel[0].set_offset(46, 46)
d.auto_rel = true
- d.image = "images/background-bottom.png"
+ d.image = "background-bottom.png"
end
end
-# $Id: playlist-background.rb 16 2005-04-25 22:01:53Z tilman $
+# $Id: playlist-background.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("playlist")
root = c.part("root")
d.rel[0].to = d.rel[1].to = root
d.auto_rel = true
- d.image = "images/background-titlebar-left.png"
+ d.image = "background-titlebar-left.png"
end
end
d.rel[0].set_offset(-12, 0)
d.rel[1].set_offset(-1, 17)
- d.image = "images/background-titlebar-right.png"
+ d.image = "background-titlebar-right.png"
end
end
d.rel[0].set_rel(1.0, 0.0)
d.rel[1].set_rel(0.0, 1.0)
- d.image = "images/background-titlebar-middle.png"
+ d.image = "background-titlebar-middle.png"
end
end
d.rel[0].set_offset(25, 6)
d.auto_rel = true
- d.image = "images/background-title-pl.png"
+ d.image = "background-title-pl.png"
end
end
d.rel[0].set_offset(79, 6)
d.auto_rel = true
- d.image = "images/background-title-inset.png"
+ d.image = "background-title-inset.png"
end
end
d.rel[0].set_rel(0.0, 1.0)
d.rel[1].set_offset(-1, 11)
- d.image = "images/background-main-top#{id}.png"
+ d.image = "background-main-top#{id}.png"
end
end
end
d.rel[0].set_rel(1.0, 0.0)
d.rel[1].set_rel(0.0, 1.0)
- d.image = "images/background-main-topmiddle.png"
+ d.image = "background-main-topmiddle.png"
end
end
d.rel[0].set_rel(0.0, 1.0)
d.rel[1].set_offset(-1, -25)
- d.image = "images/background-main-middle#{id}.png"
+ d.image = "background-main-middle#{id}.png"
end
end
end
d.rel[0].set_offset(0, -26)
d.rel[1].set_offset(11, -1)
- d.image = "images/background-main-footer-left.png"
+ d.image = "background-main-footer-left.png"
end
end
d.rel[0].set_rel(1.0, 1.0)
d.rel[0].set_offset(-12, -26)
- d.image = "images/background-main-footer-right.png"
+ d.image = "background-main-footer-right.png"
end
end
d.rel[0].set_rel(1.0, 0.0)
d.rel[1].set_rel(0.0, 1.0)
- d.image = "images/background-main-footer-middle.png"
+ d.image = "background-main-footer-middle.png"
end
end
d.rel[0].set_offset(0, i.zero? ? -14 : -38)
img = (i.zero? ? "bottom#{id}" : "middle#{id}-2")
- d.image = "images/background-main-#{img}.png"
+ d.image = "background-main-#{img}.png"
end
end
end
d.rel[0].set_rel(1.0, 0.0)
d.rel[1].set_rel(0.0, 1.0)
- d.image = "images/background-main-bottommiddle.png"
+ d.image = "background-main-bottommiddle.png"
end
end
d.rel[0].set_rel(1.0, 1.0)
d.rel[1].set_rel(0.0, 0.0)
- d.image = "images/background-main-middle.png"
+ d.image = "background-main-middle.png"
end
end
-# $Id: playlist-scrollbar.rb 16 2005-04-25 22:01:53Z tilman $
+# $Id: playlist-scrollbar.rb 26 2005-06-22 20:19:41Z tilman $
c = EDJE.collection("playlist")
p.description(s) do |d|
d.set_size(13, 41)
- d.image = "images/scroll-grip-#{state}.png"
+ d.image = "scroll-grip-#{state}.png"
end
end
end
-# $Id: playlist_item.rb 25 2005-05-28 21:23:33Z 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)
-# $Id: slider.rb 1 2005-04-19 09:41:42Z tilman $
+# $Id: slider.rb 26 2005-06-22 20:19:41Z tilman $
class VerticalSlider
def initialize(c, name, rel, x, y, height = 95)
d.rel[1].set_rel(0.0, 0.0)
d.rel[1].set_offset(x + 6, y + height)
- d.image = "images/background-fillbar-vertical.png"
+ d.image = "background-fillbar-vertical.png"
end
end
s = state == "normal" ? "default" : state
p.description(s) do |d|
d.set_size(15, 12)
- d.image = "images/slider-grip-#{state}.png"
+ d.image = "slider-grip-#{state}.png"
end
end
end
d.rel[0].to = d.rel[1].to = main
d.auto_rel = true
- d.image = "images/slider-grip-led.png"
+ d.image = "slider-grip-led.png"
end
p.description("visible") do |d|
d.rel[0].to = d.rel[1].to = main
d.auto_rel = true
- d.image = "images/slider-grip-led.png"
+ d.image = "slider-grip-led.png"
end
end