Simple UI Framework for Ruby
Where to start:
If you‘re not using it already, be sure to check out the Limelight Docs production. It‘s full of tutorials and examples that‘ll teach you everything you need to know to build your own Limelight productions.
Just install Limelight and let‘er rip.
jruby -S gem install gemcutter jruby -S gem tumble jruby -S gem install limelight jruby -S limelight create production my_first_production jruby -S limelight open my_first_production
git clone git://github.com/slagyr/limelight.git cd limelight ant jruby -S rake init jruby -S rake tests
Try it out:
bin/limelight open productions/examples/sandbox
Copyright 2008-2009 8th Light, Inc. All Rights Reserved. Limelight and all included source files are distributed under terms of the GNU LGPL.
ButtonGroupCache | = | UI::ButtonGroupCache #:nodoc: |
Main | = | Java::limelight.Main |
ResourceLoader | = | Java::limelight.ResourceLoader |
Context | = | Java::limelight.Context |
Studio | = | Java::limelight.Studio |
A trigger to build a Limelight::Scene using the PropBuilder DSL.
See Limelight::PropBuilder
# File lib/limelight/dsl/prop_builder.rb, line 15 15: def self.build_props(root, options={}, &block) 16: loader = options.delete(:build_loader) 17: instance_variables = options.delete(:instance_variables) 18: root.add_options(options) 19: builder = DSL::PropBuilder.new(root) 20: builder.__install_instance_variables(instance_variables) 21: builder.__loader__ = loader 22: builder.instance_eval(&block) if block 23: return root 24: end
A trigger to build/configure Stage objects using the StageBuilder DSL.
See Limelight::Stagesbuilder, Limelight::Stagebuilder
# File lib/limelight/dsl/stage_builder.rb, line 13 13: def self.build_stages(theater, &block) 14: builder = DSL::StagesBuilder.new(theater) 15: builder.instance_eval(&block) if block 16: return builder.__stages__ 17: end
A trigger to define Style objects using the StyleBuilder DSL.
See Limelight::Stylesbuilder, Limelight::Stylebuilder
# File lib/limelight/dsl/styles_builder.rb, line 12 12: def self.build_styles(extendable_styles = nil, &block) 13: builder = DSL::StylesBuilder.new(extendable_styles) 14: builder.instance_eval(&block) if block 15: return builder.__styles 16: end
# File lib/limelight/dsl/styles_builder.rb, line 18 18: def self.build_styles_from_file(filename, extendable_styles = nil) 19: content = IO.read(filename) 20: styles = Limelight.build_styles(extendable_styles) do 21: begin 22: eval content 23: rescue Exception => e 24: raise Limelight::DSL::BuildException.new(filename, content, e) 25: end 26: end 27: return styles 28: end