lib/cyberarm_engine/ui/dsl.rb in cyberarm_engine-0.13.1 vs lib/cyberarm_engine/ui/dsl.rb in cyberarm_engine-0.14.0

- old
+ new

@@ -55,9 +55,16 @@ options[:theme] = current_theme add_element( Element::Progress.new(options, block) ) end + def slider(options = {}, &block) + options[:parent] = element_parent + options[:theme] = current_theme + + add_element( Element::Slider.new(options, block) ) + end + def background(color = Gosu::Color::NONE) element_parent.style.background = color end def theme(theme) \ No newline at end of file