Browse Source

Add spells to the ToC

master
The Stranjer 5 years ago
parent
commit
71328e4a0b
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      book_of_faces.rb

+ 4
- 0
book_of_faces.rb View File

@@ -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}]



Loading…
Cancel
Save