#--
-# $Id: part.rb 47 2005-06-08 20:05:19Z tilman $
+# $Id: part.rb 49 2005-06-09 17:21:05Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
image = EDJE.image_dir.find { |e| e.filename == im2 }
if image.nil?
- image = ImageDirectoryEntry.new(im2)
+ image = ImageDirectoryEntry.new(im, im2)
EDJE.image_dir << image
end
@image = EDJE.image_dir.find { |e| e.filename == im2 }
if @image.nil?
- @image = ImageDirectoryEntry.new(im2)
+ @image = ImageDirectoryEntry.new(im, im2)
EDJE.image_dir << @image
end
found = EDJE.font_dir.find { |font| font.filename == f2 }
if found.nil?
- EDJE.font_dir << FontDirectoryEntry.new(f2)
- @font = EDJE.font_dir.last.filename
+ EDJE.font_dir << FontDirectoryEntry.new(f, f2)
+ @font = EDJE.font_dir.last.alias
else
- @font = found.filename
+ @font = found.alias
end
else
@font = f