Audience on setlist cards
This commit is contained in:
parent
68cc57cc27
commit
68f84d33c6
@ -52,13 +52,16 @@ Squib::Deck.new(cards: data.nrows) do
|
||||
text layout: :description, str: data.effect.zip(data.blurb).map { |e, b|
|
||||
"#{e}#{b ? "\n<i>#{b}</i>" : nil}"
|
||||
} do |embed|
|
||||
embed.svg key: '{a}', width: 32, height: 32, data: Icons::AUDIENCE
|
||||
embed.svg key: '{A}', width: 32, height: 32, data: Icons::AUDIENCE
|
||||
embed.svg key: '{l}', width: 32, height: 32, data: Icons::LOVE
|
||||
embed.svg key: '{a}', width: 32, height: 32, data: Icons::ANGER
|
||||
embed.svg key: '{j}', width: 32, height: 32, data: Icons::JOY
|
||||
embed.svg key: '{s}', width: 32, height: 32, data: Icons::SAD
|
||||
end
|
||||
text layout: :type, markup: true, str: data.volume.map { |v| "<b><i>#{v} (#{VOLUMES[v]})</i></b>" }
|
||||
text layout: :volume, markup: true, str: data.volume.map { |v| "<b><i>#{v} (#{VOLUMES[v]})</i></b>" }
|
||||
text layout: :audience, ellipsize: :autoscale, str: data.audience.map { |au| "{A}#{au}"} do |embed|
|
||||
embed.svg key: '{A}', width: 48, height: 48, data: Icons::AUDIENCE
|
||||
end
|
||||
|
||||
save format: :png
|
||||
save_sheet prefix: "sheet",
|
||||
|
@ -0,0 +1,11 @@
|
||||
volume:
|
||||
x: 90
|
||||
y: 955
|
||||
width: 320
|
||||
height: 50
|
||||
align: left
|
||||
|
||||
audience:
|
||||
extends: volume
|
||||
x: += 329
|
||||
align: right
|
Loading…
Reference in New Issue
Block a user