Sha256: 7290bc9d4a5863e9bad1e34969d068ef77cb5aa654458775e99439dc0d77867d

Contents?: true

Size: 828 Bytes

Versions: 12

Compression:

Stored size: 828 Bytes

Contents

#  frozen_string_literal: true
b = box({ drag: true, id: :the_b, top: 63, left: 63 })
c = b.circle({ left: 99, id: :the_c })
b.box({left: 99, top: 99, width: 33, height: 33, id: :second_one})
t = b.text({ data: 'touch the circle', left: 44, top: 44, id: :the_t })
c.touch(:down) do
  b.unfasten([c.id])
  b.color(:green)
  t.data('circle unfasten')
  grab(:infos).data("number of item(s) fasten to the box : #{b.fasten}")
  wait 2 do
    grab(:second_one).delete((true))
    grab(:infos).data("number of item(s) fasten to the box : #{b.fasten}")
    wait 2 do
      b.color(:red)
      t.data('unfasten all attached atomes')
      b.unfasten(:all)
      grab(:infos).data("number of  item fasten to the box : #{b.fasten}")
    end
  end
end

text({id: :infos,left: 155, data: "number of  item fasten to the box : #{b.fasten}"})

Version data entries

12 entries across 11 versions & 1 rubygems

Version Path
atome-0.5.7.6.5 vendor/assets/src/medias/utils/examples/particles/unfasten/example.rb
atome-0.5.7.6.5 vendor/assets/src/medias/utils/examples/particles/fasten/example.rb
atome-0.5.7.6.0 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.5.9 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.5.4 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.5.3 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.5.1 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.4.8 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.4.7 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.4.6 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.4.3 vendor/assets/application/examples/unfasten.rb
atome-0.5.7.4.2 vendor/assets/application/examples/unfasten.rb