@tool extends PopupMenu func _ready(): clear() add_icon_item(get_theme_icon("Help", "EditorIcons"), "Documentation") add_separator() add_icon_item(get_theme_icon("ArrowUp", "EditorIcons"), "Move up") add_icon_item(get_theme_icon("ArrowDown", "EditorIcons"), "Move down") add_separator() add_icon_item(get_theme_icon("Remove", "EditorIcons"), "Delete") var menu_background = load("res://addons/dialogic/Editor/Events/styles/ResourceMenuPanelBackground.tres") menu_background.bg_color = get_parent().get_theme_color("base_color", "Editor") theme.set_stylebox('panel', 'PopupMenu', menu_background) theme.set_stylebox('hover', 'PopupMenu', StyleBoxEmpty.new()) theme.set_color('font_color_hover', 'PopupMenu', get_parent().get_theme_color("accent_color", "Editor"))