Column boxes
This commit is contained in:
parent
a52e025096
commit
81f79d0822
@ -32,7 +32,7 @@ class ShardsOfPower
|
||||
pdf.font_size FONT_SIZE_CHAPTER
|
||||
pdf.font "Abess"
|
||||
puts "\tPrinting chapter to document"
|
||||
pdf.text "Chapter #{number_name}: #{chapter_name}"
|
||||
pdf.text "Chapter #{number_name}: #{chapter_name}", :align => :center
|
||||
|
||||
puts "\tRestoring body text"
|
||||
pdf.font "Goudy"
|
||||
@ -50,7 +50,7 @@ class ShardsOfPower
|
||||
|
||||
puts "\tSetting font size"
|
||||
pdf.font_size FONT_SIZE_SECTION
|
||||
pdf.text section_name
|
||||
pdf.text section_name, :align => :center
|
||||
|
||||
puts "\tRestoring body text"
|
||||
pdf.font_size FONT_SIZE_BODY
|
||||
@ -113,7 +113,7 @@ class ShardsOfPower
|
||||
pdf.image("cover.png", :width => 612, :height => 792)
|
||||
|
||||
puts "Printing inner cover..."
|
||||
pdf.start_new_page(:margin => 75)
|
||||
pdf.start_new_page(:margin => 50)
|
||||
|
||||
pdf.font "Abess"
|
||||
pdf.font_size 72
|
||||
@ -134,6 +134,7 @@ class ShardsOfPower
|
||||
|
||||
start_chapter "One", "Introduction"
|
||||
|
||||
pdf.column_box([0, pdf.cursor], :columns => 2, :width => pdf.bounds.width) do
|
||||
pdf.text "Like every supernatural entity in the Chronicles of Darkness, there is a boundless breadth and depth of topics to discuss within them. The Awakened are by no stretch of the imagination an exception to this rule. This book does not dare claim that this will cover all of them, but it does dare to cover the broad strokes on a certain subtopic of the lives of those touched by the Supernal who still reside in the Fallen World: their toolkit.\n\n<b>Mage: the Awakening</b> covered the broadest strokes on Awakened life in general, but there is so much more to the means by which Mages conduct their affairs and pursue their Obsessions that simply is not covered in that volume. There will be yet more that this one fails to consider. However, it is designed to touch on the high level ideas, and dig into some of the specifics for them, leaving you, the reader compelled, and hopefully, inspired as to where to explore next.", :inline_format => true
|
||||
|
||||
start_section "Tools Of Awakened Life"
|
||||
@ -149,6 +150,7 @@ class ShardsOfPower
|
||||
spell_authors = spells.collect { |spell| spell.authors }.flatten.uniq.sort
|
||||
|
||||
pdf.text "The following users have contributed to Shards of Power, in alphabetical order: #{spell_authors.to_list}"
|
||||
end
|
||||
|
||||
start_chapter("Two", "Spells")
|
||||
|
||||
@ -159,6 +161,7 @@ class ShardsOfPower
|
||||
|
||||
start_section("#{arcanum_name} Spells")
|
||||
|
||||
pdf.column_box([0, pdf.cursor], :columns => 2, :width => pdf.bounds.width) do
|
||||
arcanum_spells.group_by(&arcanum).sort_by { |rating, spells| rating }.to_h.each do |rating, rating_spells|
|
||||
rating_title = "#{rating.to_dots} #{Spell::RANKS[rating - 1]} of #{arcanum_name}"
|
||||
puts "\tCompiling #{rating_title} spells..."
|
||||
@ -233,6 +236,7 @@ class ShardsOfPower
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
pdf.start_new_page
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user