Strict Standards: Non-static method phpbb_feed_factory::init() should not be called statically in /home/jacius/rubygame/forums/feed.php on line 66
[phpBB Debug] PHP Notice: in file /feed.php on line 171: Cannot modify header information - headers already sent by (output started at /feed.php:66)
[phpBB Debug] PHP Notice: in file /feed.php on line 172: Cannot modify header information - headers already sent by (output started at /feed.php:66)
Rubygame Forums 2009-02-10T20:46:52+00:00 http://rubygame.org/forums/feed.php?f=5&t=7 2009-02-10T20:46:52+00:00 http://rubygame.org/forums/viewtopic.php?t=7&p=9#p9 <![CDATA[Rubygoo: GUI framework for Rubygame]]> It features an easily extended Widget class for rolling custom widgets yourself.

Get it:
http://code.google.com/p/rubygoo/
or
Code:
gem install rubygoo


Sample code:
Code:
    my_app = goo_app :renderer => renderer do

      label "click the button to set the time", :id => :display_label do
        x 20
        y 30
      end

      button "Click Me!", :id => :clicky do
        x 70
        y 80
        padding_left 20
        padding_top 20
        icon_image joystick_icon
        enabled false
      end

      icon do
        x 280
        y 80
        icon_image joystick_icon
      end

      # or use a hash to specify
      check_box :x=>370,:y=>70, :w=>20,:h=>20,:id=>:checky  do
        label_text "Check me out!"
      end

      # setup events
      get(:clicky).on :pressed do
        get(:display_label).set_text(Time.now.to_s)
      end
      get(:checky).when :mouse_enter do
        puts "ENTERING"
      end
      get(:checky).when :checked do
        get(:display_label).set_text("CHECKED [#{get(:checky).checked?}]")
        if get(:checky).checked?
          get(:clicky).enable
        else
          get(:clicky).disable
        end
      end
    end



Screen shot:
Image

Statistics: Posted by shawn42 — Tue Feb 10, 2009 8:46 pm


]]>