Sha256: 239e4fcd4a3961404b48e0d6e8d6394143973445d7e23965bebfdaaaf6355c61

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

Shoes.app do
  para "Choose your class:"
  list_box :items => ["Wizard", "Warrior", "Rogue"],
    :width => 120, :choose => "Rogue" do |list|
      if list.text == "Wizard"
        @player.text = "I put on my robe and wizard hat."
      else
        @player.text = list.text
      end 
  end

  @player = para "No class selected."
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes-contrib/basic/list_box-select-class.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes-contrib/basic/list_box-select-class.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes-contrib/elements/list_box-select-class.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-contrib/elements/list_box-select-class.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-contrib/elements/list_box-select-class.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-contrib/elements/list_box-select-class.rb