diff --git a/src/Autoload/ExtensionsApi.gd b/src/Autoload/ExtensionsApi.gd index 8805ef4d5..300c6349e 100644 --- a/src/Autoload/ExtensionsApi.gd +++ b/src/Autoload/ExtensionsApi.gd @@ -162,6 +162,9 @@ class GeneralAPI: func get_canvas() -> Canvas: return Global.canvas + func create_value_slider() -> ValueSlider: + return ValueSlider.new() + ## Gives ability to add/remove items from menus in the top bar. class MenuAPI: diff --git a/src/UI/TopMenuContainer/TopMenuContainer.gd b/src/UI/TopMenuContainer/TopMenuContainer.gd index 26e61e4bc..036011ef3 100644 --- a/src/UI/TopMenuContainer/TopMenuContainer.gd +++ b/src/UI/TopMenuContainer/TopMenuContainer.gd @@ -774,6 +774,8 @@ func image_menu_id_pressed(id: int) -> void: DrawingAlgos.crop_to_content() Global.ImageMenu.RESIZE_CANVAS: resize_canvas_dialog.popup() + _: + _handle_metadata(id, image_menu) func effects_menu_id_pressed(id: int) -> void: