mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Anim Editor: added particle frames to canvas, added mouse interactions to canvas
This commit is contained in:
@@ -37,6 +37,16 @@ class UIControls::ControlsContainer
|
||||
@viewport.dispose
|
||||
end
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def visible=(value)
|
||||
@visible = value
|
||||
@controls.each { |c| c[1].visible = value }
|
||||
repaint if @visible
|
||||
end
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def busy?
|
||||
return !@captured.nil?
|
||||
end
|
||||
@@ -49,12 +59,6 @@ class UIControls::ControlsContainer
|
||||
@values = nil
|
||||
end
|
||||
|
||||
def visible=(value)
|
||||
@visible = value
|
||||
@controls.each { |c| c[1].visible = value }
|
||||
repaint if @visible
|
||||
end
|
||||
|
||||
def get_control(id)
|
||||
ret = nil
|
||||
@controls.each do |c|
|
||||
|
||||
@@ -63,6 +63,7 @@ class UIControls::BaseControl < BitmapSprite
|
||||
def disable
|
||||
return if disabled?
|
||||
@disabled = true
|
||||
@hover_area = nil
|
||||
invalidate
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user