Skip to content

Instantly share code, notes, and snippets.

@Mon-Ouie
Created February 15, 2010 21:04
Show Gist options
  • Save Mon-Ouie/304984 to your computer and use it in GitHub Desktop.
Save Mon-Ouie/304984 to your computer and use it in GitHub Desktop.
require 'joyget'
Joyget.init
Joyget.input = Joyget::Input.new
Joyget.cursor = Joyau::Cursor.new("cursor.png", 20)
widget = Joyget::TabWidget.new do |tabs|
3.times do |i|
tab = Joyget::ButtonGroup.new("Compression for #{i}") do |group|
3.times { |j| Joyget::RadioBox.new("#{j}", group) }
group.set_minimum_size
end
tabs.add_tab("#{i}", tab)
end
tabs.resize(480, 272)
end
while Joyget.may_play?
Joyget.update_input
Joyau.draw do |buffer|
buffer.clear Joyau::Color::WHITE
widget.draw
Joyget.cursor.draw
end
end
Joyget.stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment