Fixed toggling Element enabled state not visually shown

This commit is contained in:
2021-11-18 15:37:57 -06:00
parent 5e5f8ba7ea
commit 6cf4cd73dd

View File

@@ -4,7 +4,7 @@ module CyberarmEngine
include Event
include Common
attr_accessor :x, :y, :z, :enabled, :tip
attr_accessor :x, :y, :z, :tip
attr_reader :parent, :options, :style, :event_handler, :background_canvas, :border_canvas
def initialize(options = {}, block = nil)
@@ -244,6 +244,14 @@ module CyberarmEngine
:handled
end
def enabled=(boolean)
@enabled = boolean
recalculate
@enabled
end
def enabled?
@enabled
end