lib/cyberarm_engine/ui/elements/button.rb in cyberarm_engine-0.24.2 vs lib/cyberarm_engine/ui/elements/button.rb in cyberarm_engine-0.24.3

- old
+ new

@@ -32,10 +32,10 @@ def draw_text @text.draw end - def recalculate + def layout unless @enabled @style.background_canvas.background = @style.disabled[:background] @text.color = @style.disabled[:color] else @style.background_canvas.background = @style.background