Saving a wonky bug example for posterity

This commit is contained in:
Andy Meneely
2015-03-19 00:24:48 -04:00
parent c18096ecaf
commit c6cb0ca288
2 changed files with 24 additions and 19 deletions
+3 -2
View File
@@ -1,14 +1,15 @@
require 'squib'
Squib::Deck.new do
background color: :white
rect x: 0, y: 0, width: 825, height: 1125
rect x: 0, y: 0, width: 180, height: 180, stroke_color: :red
# embed_text = 'Take 1:tool:and gain 2 :health:. Take 2 :tool: if level 2'
embed_text = '1 :tool: 2 :health:'
embed_text = ' 1:tool: 2 :health:'
text(str: embed_text, font: 'Sans 18',
x: 0, y: 0, width: 180,
align: :center, ellipsize: false, justify: false) do |embed|
align: :right, ellipsize: false, justify: false) do |embed|
embed.svg key: ':tool:', width: 28, height: 28, file: 'spanner.svg'
embed.svg key: ':health:', width: 28, height: 28, file: 'glass-heart.svg'
end