mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Added canvas to new animation editor (isn't interactive yet), improved example animations
This commit is contained in:
@@ -9,7 +9,7 @@ class UIControls::DropdownList < UIControls::BaseControl
|
||||
TEXT_BOX_WIDTH = 200
|
||||
TEXT_BOX_HEIGHT = 24
|
||||
TEXT_BOX_PADDING = 4 # Gap between sides of text box and text
|
||||
MAX_LIST_ROWS = 8
|
||||
MAX_LIST_ROWS = 10
|
||||
|
||||
# NOTE: options is a hash: keys are symbols, values are display names.
|
||||
def initialize(width, height, viewport, options, value)
|
||||
@@ -32,6 +32,11 @@ class UIControls::DropdownList < UIControls::BaseControl
|
||||
invalidate
|
||||
end
|
||||
|
||||
def values=(new_vals)
|
||||
@options = new_vals
|
||||
@dropdown_menu.values = @options if @dropdown_menu
|
||||
end
|
||||
|
||||
def set_interactive_rects
|
||||
@button_rect = Rect.new(TEXT_BOX_X, (height - TEXT_BOX_HEIGHT) / 2,
|
||||
[@box_width, width - (TEXT_BOX_X * 2)].min, TEXT_BOX_HEIGHT)
|
||||
|
||||
Reference in New Issue
Block a user