Sha256: 289ca78ffe3af48313d5cbd728558559319b5d08d090a66914f6d71c76e0c16d

Contents?: true

Size: 746 Bytes

Versions: 6

Compression:

Stored size: 746 Bytes

Contents

require 'squib'
require_relative 'version'

# Note: run this code by running "rake" at the command line
# To see full list of options, run "rake -T"

data = Squib.xlsx file: 'data/game.xlsx', sheet: 0

Squib::Deck.new(cards: data.nrows) do
  background color: :white
  use_layout file: 'layouts/deck.yml'

  text str: data.name, layout: :name

  text str: data.atk.map { |s| "#{s} ATK" }, layout: :ATK
  text str: data.def.map { |s| "#{s} DEF" }, layout: :DEF

  svg file: 'example.svg'

  text str: MySquibGame::VERSION, layout: :version

  build(:proofs) do
    safe_zone
    cut_zone
  end

  save format: :png

  build(:pnp) do
    save_sheet prefix: 'pnp_sheet_',
               trim: '0.125in',
               rows: 3, columns: 3
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
squib-0.19.0 lib/squib/builtin/projects/advanced/src/deck.rb
squib-0.19.0b lib/squib/builtin/projects/advanced/src/deck.rb
squib-0.19.0a lib/squib/builtin/projects/advanced/src/deck.rb
squib-0.15.2 lib/squib/builtin/projects/advanced/src/deck.rb
squib-0.15.1 lib/squib/builtin/projects/advanced/src/deck.rb
squib-0.14.2 lib/squib/builtin/projects/advanced/src/deck.rb