Sha256: e6855572739d0d8f063efe0fd187b4ff4d9a47d78f06472d9c6ad83fc11c5be7
Contents?: true
Size: 335 Bytes
Versions: 4
Compression:
Stored size: 335 Bytes
Contents
$:.unshift File.expand_path(File.dirname(__FILE__) + "/../../lib") $:.unshift File.expand_path(File.dirname(__FILE__) + "/../../ext") require 'ray' Ray.game "Change title" do register { add_hook :quit, method(:exit!) } scene :main do on :text_entered do |text| window.title = text end end scenes << :main end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ray-0.2.1 | samples/window/change_title.rb |
ray-0.2.0 | samples/window/change_title.rb |
ray-0.1.1 | samples/window/change_title.rb |
ray-0.1.0 | samples/window/change_title.rb |