Anim Editor: added particle frames to canvas, added mouse interactions to canvas

This commit is contained in:
Maruno17
2024-03-31 00:12:51 +00:00
parent 323b62b7d5
commit 76e2b5a4fb
5 changed files with 316 additions and 38 deletions

View File

@@ -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|

View File

@@ -63,6 +63,7 @@ class UIControls::BaseControl < BitmapSprite
def disable
return if disabled?
@disabled = true
@hover_area = nil
invalidate
end