Fixed wrong method called in DSL.progress, removed unneed line, and made DSL.background use element_parent

This commit is contained in:
2019-11-22 17:20:03 -06:00
parent c67d6f9d26
commit 5f359a8313
2 changed files with 3 additions and 5 deletions

View File

@@ -70,16 +70,14 @@ module CyberarmEngine
options[:parent] = element_parent
options[:theme] = current_theme
element_parent( Element::Progress.new(options, block) )
add_element( Element::Progress.new(options, block) )
end
def background(color = Gosu::Color::NONE)
@containers.last.style.background = color
element_parent.style.background = color
end
def theme(theme)
self.is_a?(CyberarmEngine::Element::Container) ? self : @containers.last
element_parent.options[:theme] = theme
end

View File

@@ -169,4 +169,4 @@ module CyberarmEngine
end
end
end
end
end