Parcourir la source

Add spells to the ToC

master
The Stranjer il y a 5 ans
Parent
révision
71328e4a0b
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. +4
    -0
      book_of_faces.rb

+ 4
- 0
book_of_faces.rb Voir le fichier

@@ -172,6 +172,10 @@ class BookOfFaces

rating_spells.sort_by { |spell| spell.name }.each do |spell|
puts "\t\tCompiling #{spell.full_title} by #{spell.authors.join(', ')}"
pdf.outline.add_subsection_to(rating_title) do
@pdf.outline.section spell.full_title, :destination => @pdf.page_number
end

spell_ary = [{:text => "#{spell.name} (", :font => "Lilith", :color => "004E6D", :size => FONT_SIZE_SUBSECTION}]



Chargement…
Annuler
Enregistrer