mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-13 07:54:59 +00:00
Fleshing out animation editor's code
This commit is contained in:
@@ -19,8 +19,8 @@ class UIControls::ControlsContainer
|
||||
attr_reader :values
|
||||
attr_reader :visible
|
||||
|
||||
LINE_SPACING = 32
|
||||
OFFSET_FROM_LABEL_X = 80
|
||||
LINE_SPACING = 28
|
||||
OFFSET_FROM_LABEL_X = 90
|
||||
OFFSET_FROM_LABEL_Y = 0
|
||||
|
||||
def initialize(x, y, width, height)
|
||||
@@ -61,6 +61,15 @@ class UIControls::ControlsContainer
|
||||
repaint if @visible
|
||||
end
|
||||
|
||||
def get_control(id)
|
||||
ret = nil
|
||||
@controls.each do |c|
|
||||
ret = c[1] if c[0] == id
|
||||
break if ret
|
||||
end
|
||||
return ret
|
||||
end
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def add_label(id, label, has_label = false)
|
||||
|
||||
Reference in New Issue
Block a user