Created
February 15, 2010 21:04
-
-
Save Mon-Ouie/304984 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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