lib/cyberarm_engine/ui/dsl.rb in cyberarm_engine-0.17.1 vs lib/cyberarm_engine/ui/dsl.rb in cyberarm_engine-0.18.0
- old
+ new
@@ -21,11 +21,12 @@
"Title",
"Subtitle",
"Tagline",
"Caption",
"Para",
- "Inscription"
+ "Inscription",
+ "Link"
].each do |const|
define_method(:"#{const.downcase}") do |text, options = {}, &block|
options[:parent] = element_parent
options[:theme] = current_theme
@@ -95,10 +96,10 @@
add_element(Element::Slider.new(options, block))
end
def background(color = Gosu::Color::NONE)
- element_parent.style.background = color
+ element_parent.style.default[:background] = color
end
def theme(theme)
element_parent.options[:theme] = theme
end